start new:
tmux
start new with session name:
tmux new -s myname
| define( ['jquery'], function ( $ ) { | |
| var token = $( 'meta[name="csrf-token"]' ).attr( 'content' ); | |
| $.ajaxSetup( { | |
| beforeSend: function ( xhr ) { | |
| xhr.setRequestHeader( 'X-CSRF-Token', token ); | |
| } | |
| }); | |
| return token; |
| # A class-based template for jQuery plugins in Coffeescript | |
| # | |
| # $('.target').myPlugin({ paramA: 'not-foo' }); | |
| # $('.target').myPlugin('myMethod', 'Hello, world'); | |
| # | |
| # Check out Alan Hogan's original jQuery plugin template: | |
| # https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
| # | |
| (($, window) -> |
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
| ; A REPL-based, annotated Seesaw tutorial | |
| ; Please visit https://github.com/daveray/seesaw for more info | |
| ; | |
| ; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
| ; Seesaw's basic features and philosophy, but only scratches the surface | |
| ; of what's available. It only assumes knowledge of Clojure. No Swing or | |
| ; Java experience is needed. | |
| ; | |
| ; This material was first presented in a talk at @CraftsmanGuild in | |
| ; Ann Arbor, MI. |
| RSpec.configure do |config| | |
| config.before(:suite) do | |
| ActiveRecord::Base.establish_connection database['one'] | |
| DatabaseCleaner.strategy = :deletion | |
| ActiveRecord::Base.establish_connection config.database['two'] | |
| DatabaseCleaner.strategy = :deletion | |
| end | |
| config.before(:each) do |