Skip to content

Instantly share code, notes, and snippets.

View joemsak's full-sized avatar

Joe Sak joemsak

View GitHub Profile
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
#= require game
#= require player
#= require match
describe Match, ->
it 'starts the game', ->
game = new Game
players = [new Player, new Player]
new Match(game, players)
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
# 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
require 'spec_helper'
RSpec.describe FileStorage do
end
require 'spec_helper'
class FileStorage
end
RSpec.describe FileStorage do
end
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
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
#!/bin/sh
brew update
brew install qt
brew install imagemagick
bundle
rake db:create db:migrate

Installation

$ git clone git@github.com:username/repo.git
$ cd repo
$ ./bin/setup