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
[user] | |
name = Name Nameson | |
email = name@example.com | |
[core] | |
editor = /Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl -n -w | |
[push] | |
default = simple | |
[alias] | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) |
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
Promise = require 'bluebird' | |
getName = -> | |
return new Promise((resolve) -> resolve('Luke')) | |
getAge = (name) -> | |
data = | |
'Luke': 27 |
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
<snippet> | |
<content><![CDATA[{ | |
"name": "${1:Project}", | |
"version": "${2:0.0.1}", | |
"private": ${3:true}, | |
"dependencies": { | |
} | |
}]]></content> | |
<tabTrigger>bower</tabTrigger> | |
<scope></scope> |
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
tell application "Xcode" | |
activate | |
tell application "System Events" | |
perform (keystroke "r" using command down) | |
end tell | |
end tell |
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
#!/bin/bash | |
if [ "$#" -le "1" ]; then | |
echo "Usage: nvhgen [hostname] [location]" | |
exit 1 | |
fi | |
NGINXSA="/etc/nginx/sites-available/" | |
NGINXSE="/etc/nginx/sites-enabled/" | |
FILENAME="$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
$.ajax({ | |
url: url, | |
success: function (response) { | |
var html = $('<div>').html(response).find('.something'); | |
} | |
}); |
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
/* Highlight everything below, drag to bookmarks bar */ | |
javascript:(function(b){var a=b.getElementsByTagName("img"),f=a.length,d,c,e;for(d=0;d<f;d++){a[d].src="http://placekitten.com/"+a[d].width+"/"+a[d].height;}})(document); |
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
server { | |
listen 80; | |
server_name thepiratebay.example.com; | |
location / { | |
proxy_pass http://thepiratebay.se/; | |
} | |
} |
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
tell application "Mail" | |
set selected_messages to selection | |
repeat with a_message in selected_messages | |
set a_message_mailbox to name of mailbox of a_message | |
if a_message_mailbox is "INBOX" then | |
tell application "Mail" | |
move the a_message to mailbox "INBOX/Archive" of account "FastMail" | |
end tell | |
else if a_message_mailbox is "anotherinbox" then |
NewerOlder