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 |
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
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
- 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
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
<script type="text/javascript"> | |
// *** EXPERIMENTAL *** | |
// | |
// This is an experimental method to be notified when Typekit's fonts have loaded. | |
// | |
// It will almost certainly change! Please do not use this on a live site. Please | |
// do let us know what you think by forking this gist, contacting us at | |
// support@typekit.com or on Get Satisfaction - http://getsatisfaction.com/typekit | |
// |
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
Scenario: Choose a free plan, then create an account | |
When I go to the homepage | |
And I follow "Register" | |
Then I should see "Find the plan that's right for you" | |
When I follow "signup-trial" | |
Then I fill in "First Name" with "Joe" | |
And I fill in "Last Name" with "Johnson" | |
And I fill in "Email" with "joe@joe.com" | |
And I fill in "Password" with "test" | |
And I fill in "user[password_confirmation]" with "test" |
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
def perform | |
if payload_class.respond_to?(:before_perform) | |
result = args ? payload_class.before_perform(*args) : payload_class.before_perform | |
return if result == false | |
end | |
begin | |
args ? payload_class.perform(*args) : payload_class.perform | |
if payload_class.respond_to?(:after_perform) | |
args ? payload_class.after_perform(*args) : payload_class.after_perform | |
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
#!/usr/bin/env ruby | |
# A very simple script to republish all of your kits at Typekit. Just pass your | |
# api token as the first argument to this script. | |
# | |
# Sign up for Typekit http://typekit.com/ | |
# Get an api token at https://typekit.com/account/tokens | |
require 'net/http' | |
require 'net/https' |
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
check: build test vet lint | |
test: start-dynamodb | |
DYNAMODB_HOSTPORT=$$(docker-machine ip ${docker-machine-env}):${dynamodb-port} \ | |
go test ./... | |
vet: | |
go vet ./... | |
lint: |
OlderNewer