This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
puts "We'd have %s beans, %s jars, and %s crates." % [jelly_beans, jars, crates] |
This Gist shows how to set up a Rails project to practice BDD with CoffeeScript, Guard and Jasmine. You can see this setup in action on Vimeo
bundle install
mate Guardfile
bundle exec jasmine init
mate spec/support/yasmine.ym
bundle exec guard
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
# define a specific string | |
my_string = "I'm a string!" | |
# call #reverse | |
# 1) this first checks to see if my_string has a method called reverse | |
# 2) it doesn't find one | |
# 3) it then checks for reverse on my_string's parent class, which is String | |
# 4) it finds the method and executes it and outputs the following: | |
my_string.reverse | |
=> "!gnirts a m'I" |
# string substitution | |
puts "We'd have %s beans, %s jars, and %s crates." % [jelly_beans, jars, crates] |
Requires:
Homebrew (http://mxcl.github.io/homebrew/)
Ruby
Verify Homebrew is not sick:
brew doctor
Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
namespace popular_bikes | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |