Skip to content

Instantly share code, notes, and snippets.

View jamesmartin's full-sized avatar
🤫
Shhh

James Martin jamesmartin

🤫
Shhh
View GitHub Profile
$:.unshift(File.dirname(__FILE__), ".")
require 'spec_helper'
module Butler
def self.included base
base.instance_eval { @place = [] }
end
def put_fork_on_the_left
module RadioChannels
def self.get_data(url)
# Some code
end
def mixed_in_method(url)
RadioChannels.get_data(url)
end
end
ls _posts/* | grep -c -E '[0-9]{4}-[0-9]{2}-[0-9]{2}' | while read fn; do day=`grep '#postdate\|#date' $fn | cut -d '-' -f 3 | cut -d ' ' -f 1`; git mv $fn `echo $fn | sed -E "s/-\([0-9]{2}\)-/-\1-$day-/"`; done