Skip to content

Instantly share code, notes, and snippets.

Matt Weppler mweppler

Block or report user

Report or block mweppler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@edfuh
edfuh / fibo.js
Created May 19, 2011
fibonacci functions
View fibo.js
/// RECURSIVE
var fib = function (n) {
return n < 2 ? n : fib(n-1) + fib(n-2);
}
/// MEMOIZED
var memo = [0,1];
var fib = function(n) {
View capybara cheat sheet
=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')
You can’t perform that action at this time.