Skip to content

Instantly share code, notes, and snippets.

@Tasha25
Tasha25 / Git Clone
Created November 13, 2013 13:52
Steps to pulling a git file
Example of Git Cloning
mkdir Projects
cd Projects
git clone git@github.com:ml242/courtPO.git
cd courtPO
cd courtPO //just in case it is two files deep
bundle install // You need to install any gems
rake db:create //create database
rake db:migrate // migrate any models
@Tasha25
Tasha25 / gist:7103282
Created October 22, 2013 15:59
This will help to configure rspec in documentation
# Configure Rspec to print nice
RSpec.configure do |config|
# Use color in STDOUT
config.color_enabled = true
# Use color not only in STDOUT but also in pagers and files
config.tty = true
# Use the specified formatter
config.formatter = :documentation # :progress, :html, :textmate
# immediately stop running upon first failure
config.fail_fast = true
@Tasha25
Tasha25 / A reusable gist for database.yml
Created October 17, 2013 13:45
A reusable gist for database.yml
development:
adapter: postgresql
encoding: unicode
database: <%= File.basename(Rails.root) %>_development
pool: 5
host: localhost
username: <%= ENV['PG_USERNAME'] %>
password:
test:
@Tasha25
Tasha25 / Useful gems for development
Created October 17, 2013 13:25
Useful gems for development
#Gemfile
group :development, :test do
gem 'pry-rails' # Causes rails console to open pry
# https://github.com/rweng/pry-rails
gem 'pry-debugger' # Adds step, next, finish, and continue commands and breakpoints
# https://github.com/nixme/pry-debugger
gem 'pry-stack_explorer' # Navigate the call-stack
# https://github.com/pry/pry-stack_explorer
gem 'annotate' # Annotate all your models, tests, fixtures, and factories
# https://github.com/ctran/annotate_models
@Tasha25
Tasha25 / drill.md
Created September 25, 2013 14:43
Drills for day 3 during week 1

Drill!

###On your computer Create a new folder in ~/ga_wdi called drills Initalize a new git repo in drills Add a Ruby file called first_date.rb Add and commit the file

###On Github Create a new repo called drills