Skip to content

Instantly share code, notes, and snippets.

@asadakbar
asadakbar / gist:2991892
Created June 25, 2012 22:36
Booster with Robert - Monday June 25th
class List
def initialize(file_path)
file_text = File.read(file_path)
parse_tasks(file_text)
end
def parse_tasks(text)
@tasks = []
text.split("\n").each do |line|
@tasks << Task.new(line.split[1..-1].join(' '))
@soemarko
soemarko / theme.html
Created November 26, 2011 16:18
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->