This file contains hidden or 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 'fog' | |
| require 'yaml' | |
| require 'colorize' | |
| # This script is for provisioning ebs and ec2 compute instances | |
| ami_ebs = {:image_id => "ami-a2f405cb", :flavor_id => 't1.micro'} | |
| ami_ec2 = {:image_id => "ami-88f504e1", :flavor_id => 'm1.small'} | |
| repo = "git@github.com:user/repo.git" |
This file contains hidden or 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 | |
| cd ~ | |
| git clone git://github.com/slimgems/slimgems.git | |
| cd slimgems && ruby -Ilib -S gem build slimgems.gemspec | |
| echo "Now, change to your folder where you are running RVM \ | |
| \ | |
| gem install ~/slimgems/slimgems-1.3.8.gem" |
This file contains hidden or 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
| module ActiveRecordOverrides | |
| module ClassMethods | |
| def find(*args) | |
| super | |
| rescue ActiveRecord::RecordNotFound | |
| find_by_url!(*args) | |
| end | |
| end | |
| def self.included(base) |
This file contains hidden or 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
| // Based on http://www.cocos2d-iphone.org/forum/topic/9473 | |
| - (void) addSpriteWithColor:(NSString *)frameName { | |
| CGSize winSize = [CCDirector sharedDirector].winSize; | |
| CCSprite *spr = [CCSprite spriteWithSpriteFrameName:frameName]; | |
| spr.visible = YES; | |
| // Center sprite | |
| spr.anchorPoint = ccp(0, 0); |
This file contains hidden or 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 File.expand_path(File.dirname(__FILE__) + '/../spec_helper') | |
| describe InterestsController do | |
| render_views | |
| before :each do | |
| @interest = Factory(:interest, :name => 'interest') | |
| end |
This file contains hidden or 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
| var caseCarriers = [ | |
| "Angelides, Laura", | |
| "Amendarez, Manuel", | |
| "Arvidson, Sofia", | |
| "Bamberger, Sally", | |
| "Banks, Jacqueline", | |
| "Bates, Shirleyne", | |
| "Batie, Julie", | |
| "Beaird-Rucker, Lisa", | |
| "Beigle, Rebecca", |
This file contains hidden or 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
| Vagrant::Config.run do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. | |
| # Every Vagrant virtual environment requires a box to build off of. | |
| config.vm.box = "base" | |
| # The url from where the 'config.vm.box' box will be fetched if it | |
| # doesn't already exist on the user's system. |
This file contains hidden or 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
| #!/usr/bin/env sh | |
| # Script will watch the current working folder every $interval seconds for changes (modifications, | |
| # deletions, additions and do something cool if a change is detected. By default it will always | |
| # run once on start | |
| watch=`pwd` | |
| interval="1" | |
| verbose="0" | |
| if [ $verbose -eq "1" ] ;then echo "Watching: $watch"; fi |
This file contains hidden or 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
| Autotest.add_discovery { "rails" } | |
| Autotest.add_discovery { "rspec2" } | |
| Autotest.add_hook :initialize do |at| | |
| at.add_mapping(%r%^spec/(workers|services)/.*rb$%) { |filename, _| | |
| filename | |
| } | |
| at.add_mapping(%r%^app/workers/(.*)\.rb$%) { |_, m| | |
| ["spec/workers/#{m[1]}_spec.rb"] | |
| } | |
| at.add_mapping(%r%^app/services/(.*)\.rb$%) { |_, m| |
This file contains hidden or 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 'active_support' | |
| require 'active_record' | |
| require 'rake' | |
| require 'yaml' | |
| task :default => :setup | |
| task :load do | |
| # Change application as needed... |