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
defaults write com.google.Chrome NSUserKeyEquivalents '{"Quit Google Chrome"="@$Q";}' |
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 e = document.getElementsByTagName("div"); | |
for (var i = 0; i < e.length; i++) { | |
e[i].onclick = function() { | |
console.log("Div number " + i); | |
} | |
} |
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
for (var count = 0; count < 15000; count++) { | |
document.getElementById('recipe_content').innerHTML += 'ingredients'; | |
} |
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
function returnPerson (name) { | |
return | |
{ | |
name : name | |
}; | |
} |
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
function getCookie() { | |
var cookie = Makimoto.cookie; | |
if (your_good_answers >=1) { | |
go(_7F); | |
cookie.size = your_good_answers; | |
return cookie; | |
} else { | |
return NO_COOKIE; | |
} |
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
prompt = function() { | |
return db+"@"+db.serverStatus().host+"$ "; | |
} | |
DBQuery.shellBatchSize = 300 |
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 http = require('http'); | |
var numResults = 3, | |
numIteration = 3; | |
function fetchColors(offset, numResults, successHandler) { | |
http.get({ | |
host: 'www.colourlovers.com', | |
port: 80, |
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
# Instead of Control-a, make the escape/command character be Control-x | |
escape ^Xx | |
# Autodetach session on hangup instead of terminating screen completely | |
autodetach on | |
# Turn off the splash screen | |
startup_message off | |
# Use a 30000-line scrollback buffer |
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
// num - number of items | |
// start - starting point | |
https://www.google.com/history/lookup?q=&output=rss&num=1000&start=0 | |
// the first 1000 history items started from the 100th | |
https://www.google.com/history/lookup?q=&output=rss&num=1000&start=100 |
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
// get a list of stashes | |
git stash list | |
// stash diff where the number is the index in the stash list | |
git diff stash@{0} | |
// stash@{0} is the default | |
git diff stash |