- ice cream
- 1/2 cup milk
- 2 tbsp Ovaltine
- 1-2 tbsp peanut butter
- 1-2 raw eggs
- 1 banana
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 'underscore' | |
module.exports = (robot) -> | |
class Leaderboard | |
constructor: -> | |
robot.brain.once 'loaded', => | |
robot.brain.data.leaderboard ?= {} | |
@games = robot.brain.data.leaderboard.games ?= [] | |
addGame: (winner, loser) -> | |
@games.push |
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 sh | |
# This transforms the 13 answers to the WORKING column | |
# into integers 0-12, 5 answers to MUSIC into 0-4, | |
# normailizes LIST_OWN, and LIST_BACK into integer values | |
# and drops rows with variations of "16+ hours" | |
# (loses 2.623031698% of the data) | |
INFILE=$1 | |
sed -e " | |
s/\"Employed 30+ hours a week\"/0/g; | |
s/\"Employed 8-29 hours per week\"/1/g; |
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 'objspace' | |
require 'set' | |
class ObjectAllocationTracer | |
include ObjectSpace | |
def initialize(app) | |
@app = app | |
@sources = Set.new | |
@traces = [] |
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 PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.15 (Darwin) | |
mQINBFC7ikIBEAC/ps60Orp8iuX2CH3JD/VfjqPVVlqWBh40aa9dayMKTHRCHXLC | |
hTttTcHKeCsLnvmIHqxCxNBJu18kgX6Vvrc2xFO8KHldFxpQOX2oCVVOrDm7Sfc/ | |
eRk61Ey0KCGQca3gNjlYzWOvtYhvL0yMyA/VLQcBdgm5vlkDFaBzvbRmhUZx2sZ1 | |
nzhW7dyTbGOf6TD101MS3otrVxy3Tx4cm5lBdMxvNwutgqtGy75AElzOHg9zZ6kk | |
4ZF2Ll76wHSQOgrLShIEu2ymQLoS+VwpZeA4ab4FoP1CqxQd3GYPa5dhe6EakDf8 | |
XH+x3CncV/cO2gDIwqE/lZv2yq004yrHAO4bhia8ndTJboNIQvwJICjJy5WIgU4s | |
MXs5YUZv8su4T1f95+xSSjEjfI6X2zA4WnekzCLUFfGHkr+KMOKUHRQIRVHOwP/X |
A while ago I hit a lull in my skill advancement as a Rails developer. I had long since learned to think of my resources as resources. I did my best to limit my controller actions the basic CRUD methods. I considered the "fat model, skinny controller" mantra to be sacrosanct. But I was still often finding myself going way out of my way to implement otherwise mundane features, for example sending mail after saving an object or adding a routine accept/reject to something.
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
Verifying that +zacstewart is my blockchain ID. https://onename.com/zacstewart |
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 TapTransformer(TransformerMixin): | |
def __init__(self, fn): | |
self.fn = fn | |
def transform(self, X, **transform_params): | |
self.fn(x) | |
return X | |
def fit(self, X, y=none, **fit_params): | |
return self |
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
class MinecraftAccountVerifier | |
require 'net/http' | |
require 'uri' | |
AUTH_URI = URI.parse('https://login.minecraft.net/').freeze | |
CLIENT_VERSION = 13 | |
attr_reader :error | |
# Public: verify an account as a true Minecraft account this user has access to. |
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 the msttcorefonts spec file as distributed from | |
# http://corefonts.sourceforge.net/. | |
%define name msttcorefonts | |
# nowdays most (all?) distributions seems to use this. Oh the joys of the FHS | |
%define ttmkfdir /usr/bin/ttmkfdir | |
%define fontdir /usr/share/fonts/%{name} |