View dabblet.css
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
View twitnoise
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 | |
# | |
# This script encapsulates my process for keeping up with Twitter: | |
# | |
# 1. Create a private list called Signal, add everyone you currently follow to | |
# it, and begin curating it. | |
# 2. Follow everyone you meet or find interesting. | |
# 3. Create a private list called Noise, containing everyone you follow that are | |
# not in Signal. | |
# 4. Use Signal as your timeline in tweetbot. Switch to Noise when you are bored |
View gist:10735826
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 |
View keybase.md
Keybase proof
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:
View gist:8337479
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(); | |
} |
View api_spec.rb
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 |
View gist:6502229
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
/$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$$$ /$$$$$$ /$$$$$$ | |
/$$__ $$ /$$__ $$| $$$ | $$| $$_____/|_ $$_/ /$$__ $$ | |
| $$ \__/| $$ \ $$| $$$$| $$| $$ | $$ | $$ \__/ | |
| $$ | $$ | $$| $$ $$ $$| $$$$$ | $$ | $$ /$$$$ | |
| $$ | $$ | $$| $$ $$$$| $$__/ | $$ | $$|_ $$ | |
| $$ $$| $$ | $$| $$\ $$$| $$ | $$ | $$ \ $$ |
View gist:6002211
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]) |