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
# Is request needed? | |
grep -rn 'request\.' ./lib/*.js | |
# Uninstall and remove from package.json | |
npm uninstall proxy-out --save-dev | |
# Delete npm_modules folders that aren't assigned in package.json | |
npm prune |
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
function command(cmd, shouldEnd, shouldDetach) { | |
var args = cmd.trim().split(' '); | |
var cmdName = args.shift(); | |
var opts = shouldDetach ? {detached: true, stdio: ['ignore', out, err] } : {}; | |
var child = require('child_process').spawn(cmdName, args, opts); | |
if (shouldDetach) { | |
console.log('Spawned child ' + cmdName + ' with pid ' + child.pid); | |
child.unref(); |
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 stream = require('stream'); | |
var util = require('util'); | |
function Clean(options) { | |
if (!(this instanceof Clean)) { | |
return new Clean(options); | |
} | |
stream.Transform.call(this, options); | |
} |
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
http://auth.api.sonyentertainmentnetwork.com/2.0/oauth/authorize?response_type=code&client_id=55950157-ae9d-4b10-b0de-94dbef199f2c&scope=openid&state=eyJjYW5jZWxVUkwiOiJodHRwczovL2FsZy5uZG1kaHMuY29tL2NvbXBvbmVudD9hPW4mZj1lJnM9bnAmcD1vMiZ0eXBlPWF1dGhvcml6YXRpb25fY29kZSZlbnRpdHlJZD0wMDAwMDAwMDAwMDAwMDM1Jm5wRW52PW5wJm89YyZhaz0yMWkyYWJvVDdXQTAwUFkxcE1mZlhlVzFoU3EwMDkwMDBPRU1FeUdIT3VRMzQwSjFxSE9xaERnMTBEMGkwc1dlQWVEMEFwQTBrTWxlZ095cXpJaVV5NVMzbCZyPXImcmV0dXJuVVJMPWh0dHBzJTNBJTJGJTJGcGxheW1lbW9yaWVzb25saW5lLmNvbSUyRmFjY291bnQlMkZsb2dpbiZuZXdUb2tlbj10cnVlIiwic2VydmljZUVudGl0eSI6Im5wIiwidGhlbWUiOiJsaXF1aWQiLCJmbG93IjoiY3JlYXRlQWNjb3VudEV4dGVybmFsIiwicmV0dXJuVVJMIjoiaHR0cHM6Ly9hbGcubmRtZGhzLmNvbS9jb21wb25lbnQ%2FYT1uJmY9ZSZzPW5wJnA9bzImdHlwZT1hdXRob3JpemF0aW9uX2NvZGUmZW50aXR5SWQ9MDAwMDAwMDAwMDAwMDAzNSZucEVudj1ucCZvPWMmYWs9MjFpMmFib1Q3V0EwMFBZMXBNZmZYZVcxaFNxMDA5MDAwT0VNRXlHSE91UTM0MEoxcUhPcWhEZzEwRDBpMHNXZUFlRDBBcEEwa01sZWdPeXF6SWlVeTVTM2wmcj1yJnJldHVyblVSTD1odHRwcyUzQSUyRiUyRnBsYXltZW1vcmllc29ubGluZS5jb20lMkZhY2NvdW50 |
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
function Students(classroom){ | |
this.relationships = {}; | |
this.reverseSearchMap = {}; | |
this.students = classroom.students; | |
} | |
Students.prototype.populate = function(){ | |
for(var index = 0; index < this.students.length; index++){ | |
var student = students[index]; | |
var studentName = this.fullNameForStudent(student); |
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
new (function weAreAnonymous(){ | |
console.log(this.constructor.name); | |
})() // weAreAnonymous |
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
/* WRONG */ | |
function Sobachi(){ | |
this.prefecture = 'Iwate'; | |
this.characterName = 'Sobatchi'; | |
this.friends = []; | |
} | |
Sobachi.prototype.addFriends = function(friends){ | |
var self = this; |
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
package.json | |
Gulpfile.js | |
index.js | |
lib | |
-> foo.js | |
-> bar.js | |
-> baz.js | |
node_modules | |
config | |
-> index.js |
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
mooshoo() | |
background url('mooshoo.png') | |
foo(i) | |
-webkit-foo: i; | |
-opera-foo: i; | |
-mozilla-foo: i; | |
foo: i; | |
#foo |
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
heroku keys:add ~/.ssh/id_rsa.pub | |
heroku git:clone -a app-name-here |