Skip to content

Instantly share code, notes, and snippets.

Avatar
Software is art

Pavel Volgarev volpav

Software is art
View GitHub Profile
@volpav
volpav / url-cache-interceptor.js
Last active Sep 30, 2015
Caching HTTP requests with Angular
View url-cache-interceptor.js
angular.module('MyApp').factory('UrlCacheInterceptor',
function () {
'use strict';
/**
* Returns value indicating whether required
* features are supported by the browser.
*/
var featuresSupported = function () {
return ['URL', 'Blob', 'WeakMap'].every(function (feature) {
@volpav
volpav / gist:5332226
Created Apr 7, 2013
An example of illegal interface definition.
View gist:5332226
public interface IMyContract
{
IMyContract();
IMyContract(string test);
}