I hereby claim:
- I am ysadka on github.
- I am yarons (https://keybase.io/yarons) on keybase.
- I have a public key whose fingerprint is FC47 9BBF B07D FB2E EB21 DA70 85F8 DD1F 0183 BBF5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Why use git flow?
How does it work?
How do we implement it? Link to article: http://nvie.com/posts/a-successful-git-branching-model/
Scott Chacon: http://scottchacon.com/2011/08/31/github-flow.html
If you try running any git command without git installed then you'll get an error message.
###Already have GIT installed? Skip to the next file
You have two options:
Install XCode from the app store and then download the commandline tools
Download the most recent version of 'commandline tools' without installing XCode
Rails Routes ‘n Shit | |
When your rails app receives an incoming request | |
GET /patients/17 | |
it asks the router to match it to a controller action. | |
match “/patients/:id” => “patients#show” | |
If the first matching route is the request, it is dispatched to the patients controller’s show action with { :id => “17” } as params. | |
RESOURCES creates = | |
GET: index (Display a list of all photos) |
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
</head> |
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
function Animal(nameOfAnimal, legs){ | |
var animal = []; | |
this.nameOfAnimal = nameOfAnimal; | |
this.legs = legs; | |
} |
/* Here is your chance to take over Socrates! | |
Spend 10 minutes on each of the following hacks to the socrates website. | |
Enter them in the console to make sure it works and then save | |
your results here. | |
Choose a new pair for each. Add your names to the section you complete. | |
*/ |
def median(array) | |
sorted_array = array.sort | |
even_or_odd = array.length % 2 | |
odd = (sorted_array.length - 1) / 2 | |
median_odd = sorted_array[odd] | |
even = sorted_array.length / 2 | |
even_value1 = sorted_array[even] | |
even_value2 = sorted_array[even - 1] |