$ git clone git@github.com:username/repo.git
$ cd repo
$ ./bin/setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'dude_weak' | |
describe Week do | |
let(:today) { Time.parse('Jul 11, 2012') } | |
let(:week) { Week.new(today) } | |
it "returns its monday" do | |
week.monday.should == Time.parse('Jul 9, 2012') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= require game | |
#= require player | |
#= require match | |
describe Match, -> | |
it 'starts the game', -> | |
game = new Game | |
players = [new Player, new Player] | |
new Match(game, players) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "google_drive" | |
# Logs in. | |
# You can also use OAuth. See document of | |
# GoogleDrive.login_with_oauth for details. | |
session = GoogleDrive.login("username@gmail.com", "mypassword") | |
# Gets list of remote files. | |
for file in session.files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We'll create our rails app, called 'resource_library' | |
cd ~/code | |
rvm use 2.1.2 | |
gem update rails | |
rails new resource_library | |
# Please note my rails default template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
RSpec.describe FileStorage do | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
class FileStorage | |
end | |
RSpec.describe FileStorage do | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
class FileStorage | |
end | |
RSpec.describe FileStorage do | |
it 'is empty when no files are uploaded' do | |
storage = FileStorage.new | |
expect(storage).to be_empty | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmux has-session -t jamby | |
if [ $? != 0 ] | |
then | |
tmux new-session -s jamby -n editor -d | |
tmux send-keys -t jamby 'cd ~/work/jamby' C-m | |
tmux send-keys -t jamby 'vim' C-m | |
tmux new-window -n server -t jamby | |
tmux send-keys -t jamby:2 'cd ~/work/jamby' C-m | |
tmux send-keys -t jamby:2 'git pull' C-m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
brew update | |
brew install qt | |
brew install imagemagick | |
bundle | |
rake db:create db:migrate |