-
Open your .oh-my-zsh file in Sublime:
subl ~/.oh-my-zsh
-
Find lib/aliases.zsh
-
Add aliases in the following manner:
alias [shortcut]='[what you would type into terminal]'
alias ohmyzsh='subl ~/.oh-my-zsh'
alias programs='cd ~/dropbox/programs'
require 'pry' | |
array = [1,2,3] | |
class Array | |
def hamburger(&block) | |
i = 0 | |
while i < self.length | |
yield(self[i]) | |
i += 1 |
Open your .oh-my-zsh file in Sublime: subl ~/.oh-my-zsh
Find lib/aliases.zsh
Add aliases in the following manner: alias [shortcut]='[what you would type into terminal]'
alias ohmyzsh='subl ~/.oh-my-zsh'
alias programs='cd ~/dropbox/programs'
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
http://pgexercises.com/questions/basic/selectall.html | |
http://pgexercises.com/questions/basic/selectspecific.html | |
http://pgexercises.com/questions/basic/where.html | |
http://pgexercises.com/questions/basic/where2.html | |
http://pgexercises.com/questions/basic/where3.html | |
http://pgexercises.com/questions/basic/where4.html |
--color |
class PigLatinTranslation | |
def initialize(phrase) | |
@phrase = phrase | |
end | |
#provide the pig latin translation | |
def translate | |
@words = words | |
@words.collect! do |word| | |
if starts_with_vowel?(word) |
# Grade, contains the name of the assignment and the score | |
class AssignmentGrade | |
attr_accessor :numeric_grade, :assignment | |
def initialize(assignment, grade) | |
@assignment = assignment | |
@numeric_grade = grade.to_f | |
end | |
end |
change = { | |
:dollars => 100, | |
:quarters => 25, | |
:dimes => 10, | |
:nickels => 5, | |
:pennies => 1 | |
} | |
puts "What is the amount due?" | |
amount_due = gets.chomp.to_f | |
change_types = {} |