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
describe('When using the SocketClient provider', function () { | |
var client, mockEngineio, globalComms; | |
beforeEach(module(function ($provide) { | |
mockEngineio = { | |
connect: function (data) { | |
throw new Error('blarg!'); | |
}, | |
$get: function () { | |
console.log('boogers'); |
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
module.exports = function (grunt) { | |
/** | |
* Load required Grunt tasks. These are installed based on the versions listed | |
* in `package.json` when you do `npm install` in this directory. | |
*/ | |
grunt.loadNpmTasks('grunt-recess'); | |
grunt.loadNpmTasks('grunt-contrib-clean'); | |
grunt.loadNpmTasks('grunt-contrib-copy'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); |
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
#!/bin/bash | |
if [ ! -f .git/hooks/pre-commit ] | |
then | |
echo "Adding pre-commit hook" | |
echo "#!/bin/sh" > .git/hooks/pre-commit | |
echo "grunt jshint; exit \$?" >> .git/hooks/pre-commit | |
chmod ug+x .git/hooks/pre-commit | |
fi |
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
{ | |
"name": "youproject", | |
"version": "0.0.1", | |
"description": "some cool stuff", | |
"main": "index.js", | |
"scripts": { | |
"install": "bash scripts/pre-commit.sh" | |
} | |
} |
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
#!/bin/bash | |
cd /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources | |
sudo ./airport en0 prefs DisconnectOnLogout=NO |
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
# find the pid, in this case 4333. | |
# this will start the debug port on 5858 | |
kill -s SIGUSR1 4333 | |
# start the command line debugger | |
node debug -p 4333 | |
# or start node-inspector | |
node-inspector |
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
alias idunnolol="echo -n '¯\(°_o)/¯' | pbcopy" | |
alias disapproval="echo -n 'ಠ_ಠ' | pbcopy" | |
alias fliptable="echo -n '(╯°□°)╯︵ ┻━┻' | pbcopy" |
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
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
PATH=$PATH:$HOME/bin | |
# source ~/.profile, if available |
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
{ | |
"esnext": true, | |
"node": true, | |
"laxcomma": true, | |
"laxbreak": true, | |
"camelcase": false, | |
"indent": 2, | |
"newcap": true, | |
"quotmark": "single", | |
"unused": "vars", |
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
{ | |
"esnext": true, | |
"node": true, | |
"laxcomma": true, | |
"laxbreak": true, | |
"camelcase": false, | |
"indent": 2, | |
"newcap": true, | |
"quotmark": "single", | |
"unused": "vars", |
OlderNewer