A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
factorygirl* | |
new* | |
Gemfile.lock |
class TracJob | |
def initialize action, repo, rev | |
@action, @repo, @rev = action, repo, rev | |
end | |
attr :action, :repo, :rev, :failures | |
def run trac_projs | |
trac_projs.each do |project| | |
success = trac_admin_success? project | |
failures << tp unless success |
# Defining main variables for translator | |
pyg = 'ay' | |
original = raw_input('Enter a word:') | |
word = original.lower() | |
first = word [0] | |
#Beginning of if/else statements | |
if len(original) > 0 and original.isalpha(): |
LazyStruct.new({:a=>1, :b => 2}).a # => 2 | |
# That's wrong. Why? |
# | |
# = SuperStruct | |
# | |
# SuperStruct is an enhanced version of the Ruby Standard library <tt>Struct</tt>. | |
# | |
# Compared with the original version, it provides the following additional features: | |
# * ability to initialize an instance from Hash | |
# * ability to pass a block on creation | |
# | |
# You can read more at http://www.simonecarletti.com/blog/2010/01/ruby-superstruct/ |