[ Launch: Tributary inlet ] 5972394 by eighteyes
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
Show hidden characters
[ | |
{ "button": "scroll_down", "modifiers": ["ctrl"], "command": "increase_font_size" }, | |
{ "button": "scroll_up", "modifiers": ["ctrl"], "command": "decrease_font_size" } | |
] |
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
<meta name="viewport" content="initial-scale=1.0, width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densityDpi=medium-dpi"> | |
@media only screen and (min-width:240px) and (max-width: 720px), screen and (-webkit-min-device-pixel-ratio : 1.5 ) and (max-device-width:800px) |
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
document.addEventListener("hashchange", function(e) { e.preventDefault(); }); | |
var str = "|/-\\"; | |
var i = 0; | |
var interval = setInterval( function() { add = ""; | |
for ( j=0; j<i; j++) { add += " "; } | |
window.location.hash = add + str[i % 4]; | |
i++; | |
if (i > 100) { clearInterval(interval); } | |
} , 100); |
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
# Open log files x number of times back : glo 1 | |
function __glo(){ | |
subl `git log --name-only -n $1 --format=format: | xargs`; | |
} | |
alias glo='__glo' | |
# Open and grep log files x number of times back : glgo 1 query | |
function __glgo(){ | |
subl `git log --name-only -n $1 --grep '$2' --format=format: | xargs`; | |
} |
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
# Show files in log | |
alias glf='git log --oneline --name-only' | |
alias glg='git log --graph --oneline --decorate --all' | |
alias gls='git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate' | |
# What files were touched x number of times back : glfn 3 | |
alias glfn='git log --oneline --name-only -n' | |
# Open log files x number of times back : glo 1 |
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
{ | |
"working_dir" : "$file_path/../", | |
"cmd": ["make", "test", "test=$file_base_name"] | |
} |
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
limit=3; | |
num=$(ps -a | grep -c "node"); | |
if [[ $num -lt $limit ]]; | |
then | |
exit 1; | |
fi | |
echo $num; |
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 http = require('http'), | |
fileSystem = require('fs'), | |
path = require('path') | |
util = require('util'); | |
http.createServer(function(request, response) { | |
var filePath = 'path_to_file.mp3'; | |
var stat = fileSystem.statSync(filePath); | |
response.writeHead(200, { |
OlderNewer