Skip to content

Instantly share code, notes, and snippets.

# Translation note:
# init() will not be needed. Our input is already ready to be read. (Alliteration :D)
# Translated from http://compilers.iecc.com/crenshaw/tutor1.txt
TAB = "\t"
class scanner:
def __init__(self):
self.input = list(raw_input())
@psi
psi / gist:331
Created July 21, 2008 21:58 — forked from julien51/gist:327
puts "yo!"
def test
end
<% fields_for @public_key do |f| -%>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %><br /><br />
</p>
<p>
<%= f.label :key %><br />
<%= f.text_area :key %>
</p>
<% end -%>
@marcus
marcus / gist:336
Created July 21, 2008 21:59 — forked from psi/gist:331
puts "yo momma!"
find . -name ".git" -exec rm -rf {} \;
find . -name ".git" -exec rm -rf {} \;
require 'find'
require 'rubygems'
require 'digest/md5'
gem 'net-sftp', '<2.0.0'
require 'net/sftp'
class SftpDirPublisher
CHECKSUM_FILENAME = ".checksums"
attr_reader :host, :username, :password, :remote_dir, :local_dir, :exclude
We couldn’t find that file to show.
We couldn’t find that file to show.