Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
| Cuba.define do | |
| on get, 'assets' do | |
| run Assets::Routes | |
| end | |
| on root do | |
| res.write view("home/index") | |
| end | |
| end |
| /* | |
| AngularUI for AngularJS | |
| v0.1.0 | |
| @link http://angular-ui.github.com/ | |
| */ | |
| angular.module("ui.config", []).value("ui.config", {}); | |
| angular.module("ui.filters", ["ui.config"]); |
| function! GetVisual() | |
| let reg_save = getreg('"') | |
| let regtype_save = getregtype('"') | |
| let cb_save = &clipboard | |
| set clipboard& | |
| normal! ""gvy | |
| let selection = getreg('"') | |
| call setreg('"', reg_save, regtype_save) | |
| let &clipboard = cb_save | |
| return selection |
| Process: java [13096] | |
| Path: /usr/bin/java | |
| Identifier: com.apple.javajdk16.cmd | |
| Version: 1.0 (1.0) | |
| Code Type: X86-64 (Native) | |
| Parent Process: Jar Launcher [13094] | |
| PlugIn Path: /var/folders/*/libJNativeHook.jnilib | |
| PlugIn Identifier: libJNativeHook.jnilib | |
| PlugIn Version: ??? (???) |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| # I created this because the headless webkit doesn't handle click/mouse events very well | |
| # so when using jquery events/binds like click/focus/mousedown etc... the tests weren't passing | |
| # because the javascript wasn't being executed because no mosue event was triggered | |
| # this gets around that and works just like fill_in | |
| def jquery_fill_in(selector, options) | |
| page.execute_script %Q{ | |
| $('body').focus; | |
| if((selector = $('##{selector}')).length || ($selector = $('label:contains(#{selector})').parent().find(':input')).length) { | |
| $selector.focus().click().val('#{options[:with]}').keydown(); | |
| } else { |
| module Helpers | |
| def sign_in(user) | |
| @user_session = UserSession.create user | |
| end | |
| def fill_in_autocomplete(selector, value) | |
| page.execute_script %Q{$('#{selector}').val('#{value}').keydown()} | |
| end | |
| def choose_autocomplete(text) |
Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
| augroup taskpaper | |
| au! BufRead,BufNewFile *.taskpaper setfiletype taskpaper | |
| au FileType taskpaper setlocal noexpandtab shiftwidth=4 tabstop=4 | |
| augroup END |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |