Skip to content

Instantly share code, notes, and snippets.

View SoxFace's full-sized avatar

Sonya SoxFace

View GitHub Profile

#A team

##What is Rails?

Rails is an open source web application framework written in Ruby. It is a full-stack framework that has been optimised for programmer happiness and sustainable productivity. It emphasises the use of well-known software engineering patterns and paradigms, including convention over configuration (CoC), don't repeat yourself (DRY), the active record pattern, and model–view–controller (MVC).

Extra: David Heinemeier Hansson (DHH) is the creator of Rails, having extracted it from his work on Basecamp. He first released Rails as open source in July 2004.

Useful Links:

v = Vimeo::Advanced::Video.new("api_key", "secret_key")
response = v.get_list_by_tag("dog")
# returns:
# {
# "rsp"=> {
# "videos" => {
# "perpage"=>"25", "on_this_page"=>"25", "page"=>"1",
# "video"=>
# [{"title"=>"Arduino Web Controlled Dog Waterer", "id"=>"4620716", "owner"=>"76289", "privacy"=>"anybody", "is_hd"=>"1"},
@SoxFace
SoxFace / readme.md
Last active August 29, 2015 14:16 — forked from taryneast/readme.md

Burning Airlines

#####Prerequisites:

  • Ruby
  • Rails
  • HTML
  • CSS
  • git
  • pivotal tracker
@SoxFace
SoxFace / readme.md
Last active August 29, 2015 14:16 — forked from ga-wolf/readme.md

Nucleotide Count

DNA is represented by an alphabet of the following symbols: 'A', 'C', 'G', and 'T'.

Each symbol represents a nucleotide, which is a fancy name for the particular molecules that happen to make up a large part of DNA.

Shortest intro to biochemistry EVAR:

  • twigs are to birds nests as
  • nucleotides are to DNA and RNA as
@SoxFace
SoxFace / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@SoxFace
SoxFace / quiz_dice.md
Last active August 29, 2015 14:14 — forked from epoch/quiz_dice.md

Quiz - Dice

Write a program to generate a standard dice roll.

Dice.roll
# => 6

It should give you a different result each time.

@SoxFace
SoxFace / bob.md
Last active August 29, 2015 14:14 — forked from epoch/bob.md

Bob

Bob is a lackadaisical teenager. In conversation, his responses are very limited.

He answers 'Sure.' if you ask him a question. He answers 'Whatever.' if you tell him something. He answers 'Woah, chill out!' if you yell at him (ALL CAPS). He says 'Fine. Be that way!' if you address him without actually saying anything.

Write Bob so that you can have an interactive conversation with him.

@SoxFace
SoxFace / say.md
Last active August 29, 2015 14:14 — forked from epoch/say.md

Say

Write a program that will take a number from 0 to 99 and spell out that number in English.

In other words, if the input to the program is 22, then the output should be 'twenty-two'

e.g.

Say.new(22).in_english
@SoxFace
SoxFace / school.md
Last active August 29, 2015 14:14 — forked from epoch/school.md

Grade School

Write a small archiving program that stores students along with the grade that they are in.

school = School.new("Haleakala Hippy School")

If no students have been added, the db should be empty: