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
module Job | |
extend self | |
def low(klass, *args) | |
queue.enqueue(:low, klass, *args) | |
end | |
def high(klass, *args) | |
queue.enqueue(:high, klass, *args) | |
end |
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
- render " ", :status => 304 | |
+ render "", :status => 304 |
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
git push origin master | |
ssh ryancarver.com "cd ryancarver.com && git pull origin master" |
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
"i" "i.chr" "URI.escape" "CGI.escape" | |
32 " " "%20" "+" | |
33 "!" "!" "%21" | |
36 "$" "$" "%24" | |
38 "&" "&" "%26" | |
39 "'" "'" "%27" | |
40 "(" "(" "%28" | |
41 ")" ")" "%29" | |
42 "*" "*" "%2A" | |
43 "+" "+" "%2B" |
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).ready(function() { | |
$('form').submit(function() { | |
var q = $("input#q").val(); | |
$.getJSON("http://en.wikipedia.org/w/api.php?callback=?", { | |
search: q, | |
action: "opensearch", | |
format: "json" }, | |
function(result) { | |
var suggestions = result[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
# Set environment variables authorizing AWS for a specific account. Data is stored in: | |
# ~/.amazon_keys_[account] | |
# ~/.ec2_[account]/pk-*.pem | |
# ~/.ec2_[account]/cert-*.pem | |
# ~/.ec2_[account]/id_rsa-* | |
function aws { | |
export AWS_CURRENT=$1 | |
# AWS | |
if [[ -f "$HOME/.amazon_keys_$1" ]]; then |
NewerOlder