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
EASY MARSHMALLOWS | |
----------------- | |
Marshmallows are perhaps one of the simplest confections you can make. They only | |
require a handful of ingredients, a batch can be thrown together in 10-15 minutes | |
(plus *cough* 3 hours for them to set), and you can flavor them however you like. | |
(You haven't LIVED until you've had coconut marshmallows!) | |
Hardware needed: |
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 is a snippet from my ~/.irbrc | |
# You need to gem install ruby2ruby ParseTree | |
# This is what you do with it | |
# | |
# > class Bar; define_method(:foo) { 'ou hai' }; end | |
# > puts Bar.to_ruby | |
# class Bar < Object | |
# def foo | |
# "ou hai" |
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
_why the lucky stiff | |
his brain was rare in the world | |
hackety hack -- brilliant | |
_why the lucky stiff | |
we miss him even today | |
how very poignant | |
_why the lucky stiff | |
sometimes didn't make much sense |
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
BEGIN { | |
require 'net/http' | |
Net::HTTP.module_eval do | |
alias_method '__initialize__', 'initialize' | |
def initialize(*args,&block) | |
__initialize__(*args, &block) |
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 evolve(generation) | |
live_neighbor_stats = generation_stats(generation) | |
live_neighbor_stats[3] + (live_neighbor_stats[2] & generation) | |
end | |
def generation_stats(live_cells) | |
live_cells.each_with_object(Hash.new(0)) {|live_cell, counter| | |
neighbors(*live_cell).each {|neighbor| counter[neighbor] += 1 } | |
}.each_with_object(Hash.new {|h,k| h[k] = []}) {|(cell, count), collector| collector[count] << cell} | |
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
def evolve(generation) | |
live_neighbor_stats = generation_stats(generation) | |
live_neighbor_stats[3] + (live_neighbor_stats[2] & generation) | |
end | |
def generation_stats(live_cells) | |
live_cells.each_with_object(Hash.new(0)) {|live_cell, counter| | |
neighbors(*live_cell).each {|neighbor| counter[neighbor] += 1 } | |
}.each_with_object(Hash.new {|h,k| h[k] = []}) {|(cell, count), collector| collector[count] << cell} | |
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
ul.console { | |
font-size : 0.85em; | |
color : #FFF; | |
text-shadow : 0 1px #000; | |
position : fixed; | |
top : 70%; | |
right : 10px; | |
z-index : 10000; | |
width : 200px; | |
height : 25%; |
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 'json' | |
require 'open-uri' | |
user = 'GITHUB_USERNAME' | |
pass = 'GITHUB_PASSWORD' | |
repo = 'user/repo' | |
pulls = JSON.parse(open("https://api.github.com/repos/#{repo}/pulls", :http_basic_authentication => [user, pass]).read) | |
pulls.each do |pull| |
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 bash | |
for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23; do echo $( echo -e "$i\t"; git shortlog -n --format='%ad %s' | grep " $i:" | wc -l); done |
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 bash | |
for i in $(seq -f %02g 0 23); do echo $( echo -e "$i\t"; git shortlog -n --format='%ad %s' | grep " $i:" | wc -l); done |
OlderNewer