This file has been truncated, but you can view the full file.
This file contains 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 dictionary = ["aa", | |
"aah", | |
"aahed", | |
"aahing", | |
"aahs", | |
"aal", | |
"aalii", | |
"aaliis", | |
"aals", | |
"aardvark", |
This file contains 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
#!/usr/bin/env bash | |
ORGNAME="hackreactor" | |
GIT_CREDENTIAL_HELPER=$(git config --global --get credential.helper) | |
REPOS=('layout' 'twittler' 'paybuddy' 'data-structures' 'n-queens' 'more-data-structures' 'javascript_koans' 'subclass-dance-party' 'underbar' 'mytunes' 'chat-server' 'chat-client' 'recursion' 'regexen' 'web-historian' 'blackjack' 'databases' 'more-databases' 'meteor') | |
github_username=0 | |
github_password=0 | |
spacedPrint() { |
This file contains 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
/** | |
* Appointment | |
* | |
* @module :: Model | |
* @description :: TODO | |
* @docs :: http://sailsjs.org/#!documentation/models | |
*/ | |
module.exports = { | |
attributes: { |
This file contains 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
'use strict'; | |
var kue = require('kue'); | |
var util = require('sails-util'); | |
var ConfigurationError = function(message) { | |
this.name = 'ConfigurationError'; | |
this.message = message || ''; | |
}; | |
ConfigurationError.prototype = Error.prototype; |
This file contains 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
/** | |
* Assignment.js | |
*/ | |
module.exports = { | |
attributes: { | |
users: { | |
collection: 'user', | |
via: 'assignments', | |
dominant: true | |
} |
This file contains 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
// config/policies.js | |
module.exports = { | |
'*': false, | |
user: { | |
create: true, | |
find: true, | |
update: true, | |
destroy: true | |
}, |
This file contains 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
javascript:(function(global) {if (!global.jQuery) {var elem = document.createElement('script'); elem.src = '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; document.getElementsByTagName('head')[0].appendChild(elem);}})(this); console.log('jQuery injected into page as `$` and `jQuery`.'); |
This file contains 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
/** | |
* Example 1 | |
*/ | |
var Proto = Object.create(HTMLElement.prototype); | |
Proto.attachedCallback = function(){ | |
// Using a generalized function is clearer and has many maintainability advantages IMHO | |
if(this.readAttributeAsJson('config-ready')){ | |
// do something |
This file contains 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 config = nodemonConf('cluster-web.js'); | |
var newArgs = ['--debug']; | |
config.options.nodeArgs = Array.isArray(config.options.nodeArgs) ? config.options.nodeArgs.concat(newArgs) : newArgs; | |
grunt.initConfig({ | |
nodemon: { | |
web: config, | |
objodb: nodemonConf('lib/objodb/objodbServer.js'), | |
topology: nodemonConf('lib/topology.js'), | |
scheduler: nodemonConf('lib/scheduler.js'), |
OlderNewer