I was just curious how much I would be saving by mixing my own Red Bull-like energy drink using a Sodastream.
Change these to fit your situation.
tax rate = 9.375% serving size = 12 fl oz
tell application "Finder" | |
set FolderPath to (choose folder default location alias ((home as text) & "RailsApps")) | |
set PosixPath to POSIX path of FolderPath | |
end tell | |
tell application "Terminal" | |
activate |
module Jekyll | |
class ArchiveGenerator < Generator | |
safe true | |
def generate(site) | |
collate_by_month(site.posts).each do |month, posts| | |
page = ArchivePage.new(site, month, posts) | |
site.pages << page | |
end | |
end |
module Jekyll | |
class ArchivePage < Page | |
include Convertible | |
attr_accessor :site, :pager, :name, :ext, :basename, :dir, :data, :content, :output | |
# Initialize new ArchivePage | |
# +site+ is the Site | |
# +month+ is the month | |
# +posts+ is the list of posts for the month |
for FILENAME in `ls`; do perl -pi -e "print \"# `ruby -e \"require 'active_support/inflector'; puts '${FILENAME%.md}'.titleize\"`\n\n\" if $. == 1" $FILENAME; done; |
#!/bin/sh | |
if test $# -ne 2 | |
then | |
echo "Usage: swap <filename> <filename>" | |
exit 1 | |
fi | |
if test ! -w "$1" | |
then |
#!/bin/bash | |
git status -su | cut -d' ' -f2- | tr '\n' '\0' | xargs -0 rm |
'.source.js': | |
'BDD Test Case': | |
'prefix': 'gwt' | |
'body': """ | |
describe('Given $1', function() { | |
describe('When $2', function() { | |
it('Then $3', function(done) { | |
$4 | |
done(); | |
}); |