- a
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
* [ ] a |
I hereby claim:
- I am bkeepers on github.
- I am bkeepers (https://keybase.io/bkeepers) on keybase.
- I have a public key whose fingerprint is 8AF6 4385 E45B 03AA 72D7 DE72 F524 D391 D545 3EF9
To claim this, I am signing this object:
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
//= require lib/jquery | |
//= require csrf | |
function openWithoutReferrer(url) { | |
var site = window.open("", "hide_referrer"); | |
site.document.open(); | |
site.document.writeln('<script type="text/javascript">window.location = "' + url + '";</script>'); | |
site.document.close(); | |
} |
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
# spec/features/api_spec.rb | |
require 'spec_helper' | |
describe 'API' do | |
class TestClient < Hyperclient::EntryPoint | |
def default_faraday_block | |
lambda do |faraday| | |
faraday.request :json | |
faraday.response :json, content_type: /\bjson$/ | |
faraday.adapter :rack, Capybara.app |
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
/$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$$$ /$$$$$$ /$$$$$$ | |
/$$__ $$ /$$__ $$| $$$ | $$| $$_____/|_ $$_/ /$$__ $$ | |
| $$ \__/| $$ \ $$| $$$$| $$| $$ | $$ | $$ \__/ | |
| $$ | $$ | $$| $$ $$ $$| $$$$$ | $$ | $$ /$$$$ | |
| $$ | $$ | $$| $$ $$$$| $$__/ | $$ | $$|_ $$ | |
| $$ $$| $$ | $$| $$\ $$$| $$ | $$ | $$ \ $$ |
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 dress(dog_or_dogs) | |
dressed_dogs = Array(dog_or_dogs).map {|dog| DogSweater.new(dog) } | |
dog_or_dogs.respond_to?(:each) ? dressed_dogs : dressed_dogs.first | |
end | |
one_dog = dress(Dog.new) | |
all_my_dogs = dress([Dog.new, Dog.new, Dog.new]) |
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/sh | |
# | |
# Requires the `t` gem: https://github.com/sferik/t | |
# | |
# gem install t | |
# | |
if [ -z $(t lists | grep -i githubbers) ] | |
then | |
t list create GitHubbers |
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
[alias] | |
fixup = !sh -c 'REV=$(git rev-parse $1) && git commit --fixup $@ && git rebase -i --autosquash $REV^' - | |
squash = !sh -c 'REV=$(git rev-parse $1) && git commit --squash $@ && git rebase -i --autosquash $REV^' - |