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
print("PMM is awesome"); |
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
Compress: yes | |
Static: yes | |
Cache-Control: yes | |
Express: yes | |
St: no | |
Cluster: yes | |
Transactions: 16053 hits | |
Availability: 100.00 % | |
Elapsed time: 9.25 secs |
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
// try requiring some modules from NPM and then hit Run | |
require('cat-picture') | |
if(foo) { | |
bar = foo.bar; | |
} | |
foo && (bar = foo.bar); |
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
init() { | |
local GITHUB_USERNAME=jameswomack | |
local AUTHOR_FULLNAME="James J. Womack" | |
mkcd $1 | |
git init | |
echo "{ | |
\"name\": \"$1\", | |
\"version\": \"0.0.0\", |
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
{ | |
"name": "jshint_post-install", | |
"version": "0.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"postinstall": "curl -o .jshintrc https://raw2.github.com/airbnb/javascript/master/linters/jshintrc" | |
}, | |
"author": "Sony", |
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
LC_CTYPE=C find ./test/unit/ -type f -exec sed -i ".original" "s#'../../../../..#process.cwd() + '#g" {} \; |
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
merges-introducing() { | |
local introducing; | |
if introducing=`git rev-parse $1`; then | |
shift | |
git rev-list --ancestry-path --parents --reverse $introducing...$2 \ | |
| awk '{seen[$1]=1} NR>1 && !seen[$2] {print $1}' \ | |
| xargs git show --oneline --no-patch | |
fi | |
} |
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 CircularJSON = require('circular-json'); | |
var jsdom = require("jsdom"); | |
var $ = require("jquery")(jsdom.jsdom().createWindow()); | |
var print = console.log; | |
var LocalStorage = { | |
store: {}, | |
setItem: function (key, value) { | |
this.store[key] = CircularJSON.stringify(value); |
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 kStatCount = 'data-tweet-stat-count'; | |
var kScreenName = 'data-screen-name'; | |
var kProfileTweet = '.ProfileTweet'; | |
jQuery.fn.extend({ | |
statCount: function() { | |
return parseInt(this.attr(kStatCount)); | |
}, | |
statCountIsGreaterThan: function(n) { | |
return this.statCount() > n; |