I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*---------- Declare gulp variables ----------*/ | |
var gulp = require('gulp'), | |
jshint = require('gulp-jshint'), | |
csslint = require('gulp-csslint'), | |
compass = require('gulp-compass'), | |
connect = require('gulp-connect'), path = require('path'), | |
livereload = require('gulp-livereload'), | |
clean = require('gulp-clean'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) { | |
$httpProvider.responseInterceptors.push([ | |
'$q', '$templateCache', 'activeProfile', | |
function($q, $templateCache, activeProfile) { | |
// Keep track which HTML templates have already been modified. | |
var modifiedTemplates = {}; | |
// Tests if there are any keep/omit attributes. | |
var HAS_FLAGS_EXP = /data-(keep|omit)/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SalesAppContextProvider : EFContextProvider<SalesAppContext> | |
{ | |
private readonly ServiceFactory _serviceFactory; | |
public SalesAppContextProvider(ServiceFactory serviceFactory) | |
{ | |
_serviceFactory = serviceFactory; | |
} | |
protected override bool BeforeSaveEntity(EntityInfo entityInfo) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('angular-snap', []) | |
.directive('snap', function() { | |
var parseBoolean = function(attrValue, defaultValue) { | |
var strValue = '' + attrValue; | |
if (strValue === 'true' || | |
strValue === 'yes' || | |
strValue === '1') return true; | |
if (strValue === 'false' || |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// balancer node | |
var httpProxy = require('http-proxy'); | |
var uuid = require('node-uuid'); | |
var Cookies = require('cookies'); | |
var redis = require('redis'); | |
var connect = require('connect'); | |
var express = require('express'); | |
var RedisStore = require('connect-redis')(express); | |
var redisClient = redis.createClient(); | |
var port = 8000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var install_hook_to = function(obj) { | |
if (obj.hook || obj.unhook) { | |
throw new Error('Object already has properties hook and/or unhook'); | |
} | |
obj.hook = function(_meth_name, _fn, _is_async) { | |
var self = this, | |
meth_ref; | |