Skip to content

Instantly share code, notes, and snippets.

View markprovan's full-sized avatar

Mark Provan markprovan

View GitHub Profile
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p195.tar.bz2
tar xvjf ruby-2.0.0-p195.tar.bz2
cd ruby-2.0.0-p195/
./configure --prefix=/usr/local
make
make install
@markprovan
markprovan / example.html
Last active December 16, 2015 21:58 — forked from jonbca/example.html
<table>
<thead><tr><th>foo</th></tr></thead>
<tbody>
{{#each item in controller}}
<tr><td>{{item.name}}</td></tr>
{{else}}
<tr><td>You have no documents. How about you {{#linkTo create}}create one now{{/link}}?</td></tr>
{{/each}}
</tbody>
</table>
def find_links(page)
links = find_links()
links.each do |link|
find_links()
end
end