Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "yo!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 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 -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "yo momma!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name ".git" -exec rm -rf {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name ".git" -exec rm -rf {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |