This will make enough for a 2lb loaf tin. If you want something smaller, just use 2 medium eggs and halve the rest of the ingredients.
- 3 large eggs
- 180g Gluten-free self-raising flour
- 180g Caster sugar
- 180g Unsalted softened butter
# Run with: | |
# | |
# curl -fsSL https://gist.github.com/timblair/5919255/raw | bash | |
$( which brew >/dev/null ) || ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
brew update | |
$( which rbenv >/dev/null) || brew install rbenv --HEAD | |
$( which ruby-build > /dev/null ) || brew install ruby-build --HEAD | |
brew upgrade ruby-build |
cd /tmp | |
brew update | |
brew upgrade ruby-build | |
rbenv install 2.0.0-p0 | |
rbenv shell 2.0.0-p0 | |
curl -fsSL curl.haxx.se/ca/cacert.pem -o "$(ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE')" | |
gem install bundler --pre # Successfully installed bundler-1.3.0.pre.8 | |
gem install rails # Successfully installed rails-3.2.12 | |
rails new test-app | |
cd test-app |
component { | |
public string function encode(required any data) { | |
var json = serializeJSON(arguments.data); | |
if (!find("00", json)) { return json; } | |
if (left(json, 2) == "00") { json = '"#json#"'; } // just a simple value | |
// value in a structure | |
if (find('":00', json)) { json = rereplace(json, '[^\\]":([0]+)', '":"\1"', "ALL"); } | |
// value in an array (beginning, end, middle) | |
if (find('[00', json)) { json = rereplace(json, '[^\\]?\[([0]+)', '["\1"', "ALL"); } | |
if (find('00]', json)) { json = rereplace(json, ',([0]+)\]', ',"\1"]', "ALL"); } |
<cfsetting enablecfoutputonly="true"> | |
<cfset variables.test_cases = { | |
raw_numeric = 123, | |
raw_float = 123.456, | |
zero_numeric = 000, | |
prefixed_numeric = 000123, | |
prefixed_float = 000123.456, | |
string_numeric = "123", | |
string_float = "123.456", |
d652de5c2ad34f4eb0ac89709559309c$0291b4935aa804fdb72d9da9a96ed80c |
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "Please supply a commit SHA to tag." | |
exit 1 | |
fi | |
git tag -af deployed $1 -m "Deployed to production." && git push origin tag deployed |
/* Based on http://kevinburke.bitbucket.org/markdowncss/ */ | |
body{ | |
margin: 0 auto; | |
font-family: Georgia, Palatino, serif; | |
color: #444444; | |
line-height: 1; | |
max-width: 960px; | |
padding: 30px; | |
} |
#!/usr/bin/env ruby | |
# A simple wrapper to the command-line `markdown` tool which wraps | |
# HTML header and footer, including any style references you choose. | |
require 'open3' | |
require 'erb' | |
# Define the ERB template to wrap the HTML content in. | |
template = ERB.new <<-EOS |