- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
This file contains hidden or 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
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 = {} |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
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) |
This file contains hidden or 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
--color |
This file contains hidden or 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
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 |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
-
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'
This file contains hidden or 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 'pry' | |
array = [1,2,3] | |
class Array | |
def hamburger(&block) | |
i = 0 | |
while i < self.length | |
yield(self[i]) | |
i += 1 |