Skip to content

Instantly share code, notes, and snippets.

View volpav's full-sized avatar
Software is art

Pavel Volgarev volpav

Software is art
View GitHub Profile
@volpav
volpav / gist:5332226
Created April 7, 2013 19:55
An example of illegal interface definition.
public interface IMyContract
{
IMyContract();
IMyContract(string test);
}
@volpav
volpav / url-cache-interceptor.js
Last active September 30, 2015 04:52
Caching HTTP requests with Angular
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) {