Skip to content

Instantly share code, notes, and snippets.

Demo

console.log 'hello'
print 'world!'
/**
* Based conceptually on the _.extend() function in underscore.js ( see http://documentcloud.github.com/underscore/#extend for more details )
* Copyright (C) 2012 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
**/
@wulftone
wulftone / gist:1573449
Created January 7, 2012 01:49 — forked from mikegehard/gist:954537
Waiting until all jquery ajax calls are done
//Useful if you have a slow CI server...
When /^I wait until all Ajax requests are complete$/ do
wait_until do
page.evaluate_script('$.active') == 0
end
end
@wulftone
wulftone / description
Created January 4, 2012 02:05 — forked from irrationalidiot/description
Cucumber, rspec and spork setup using watchr for rails
Gems:
gem 'cucumber'
gem 'cucumber-rails'
gem 'rspec'
gem 'rspec-rails'
gem 'capybara'
gem 'database_cleaner'
gem 'spork'
gem 'watchr'
@wulftone
wulftone / view-manager-example.js.coffee
Created December 24, 2011 01:36
Creating a Backbone.js View Manager
((Account) ->
Account.Route.Registration = Backbone.Router.extend(
routes:
"": "index"
"!/choose": "choose"
initialize: (args) ->
if args.view_managers
_.each args.view_managers, ((view_manager, name) ->
this[name] = view_manager