Skip to content

Instantly share code, notes, and snippets.

View cczona's full-sized avatar

Carina C. Zona cczona

View GitHub Profile
@cczona
cczona / Quicksilver_2012-03-08-110052_office.crash
Created March 8, 2012 19:06
Quicksilver_2012-03-08-110052_office.crash
Process: Quicksilver [5115]
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver
Identifier: com.blacktree.Quicksilver
Version: ß61 (3900)
Code Type: X86 (Native)
Parent Process: launchd [258]
Date/Time: 2012-03-08 11:00:51.379 -0800
OS Version: Mac OS X 10.7.3 (11D50b)
Report Version: 9
@cczona
cczona / ruby-for-beginners-workshop
Created August 24, 2012 02:10
Ruby for Beginners workshop slide deck
## This page's URL http://bit.ly/PB5ptc
$ git clone git://github.com/cczona/railsbridge-docs.git
$ cd railsbridge-docs/sites/workshop
$ bundle install
$ gem install rerun
@cczona
cczona / git-rvm-prompt.sh
Created August 25, 2012 19:08
My Git/RVM bash shell prompt
### Bash shell prompt with RVM and Git info ###
### REQUIRES git-prompt.sh provided with Git ###
# $ cp git-prompt.sh ~/.git-prompt.sh
# $ echo source ~/.git-completion.sh >> ~/.bashrc
# in ~/.bashrc
BLACK="\e[30m"
RED="\e[31m"
GREEN="\e[32m"
@cczona
cczona / guard297
Created September 23, 2012 05:07
Guardfile & Gemfile for guard/gaurd #297
## Gemfile ##
source 'https://rubygems.org'
gem 'rails', '3.2.8'
group :development, :test do
gem 'sqlite3'
gem 'rspec-rails'
gem 'guard-rspec'
gem 'listen', github: 'guard/listen', branch: 'polling/double'

Capybara Cheat Sheet

Navigating

  visit('/projects')
  visit(comments_path)
  visit(post_comments_path(post))
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
@user.errors[:email].should include("is invalid") # check for the error format message
#Rendering
response.should render_template(:index)
#Redirecting
@cczona
cczona / rspec_rails_cheetsheet.rb
Created December 19, 2012 16:19 — forked from them0nk/rspec_rails_cheetsheet.rb
#rspec #rails #testing
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
@cczona
cczona / .irbrc
Created January 28, 2013 05:16 — forked from zzak/.irbrc
# Custom prompt. Based on <https://gist.github.com/4652812> by Zachary Scott
IRB.conf[:PROMPT][:PERSONAL] = IRB.conf[:PROMPT][:RVM].merge(
:PROMPT_I => "\n#{RUBY_VERSION} >> ",
:PROMPT_S => "%l >> ",
:PROMPT_C => "? >> ",
:RETURN => "RETURNS> %s\n\n"
)
IRB.conf[:PROMPT_MODE] = :PERSONAL
@cczona
cczona / technical_interviewing.md
Last active December 11, 2015 21:59 — forked from econchick/interview_tips.md
Technical Interviewing Guide Resources and tips collected from January 28, 2013 Women Who Code workshop
@cczona
cczona / pycon-2014-abstract-1
Last active December 23, 2015 02:28
PyCon 2014 abstract #1
The Pythonista’s Essential Travel Guidebook to Ruby’s Shorelines
For the coder accustomed to Pythonic ways, stepping into the world of Ruby is justifiably puzzling. Is the real documentation hidden or something? What's up with all the dogma? How do I learn to do things in accepted Ruby fashion? Do I really need to adhere to all these conventions, anyway...? Which Ruby groups, conferences, and docs are most approachable for the polished Pythonista who voyages into this foreign land?
We'll cover Ruby community essentials: code practices, culture, religious convictions, memes, lore, influential voices, and spiritual leaders. You'll find out why the #pairwithme hashtag is always where to gravitate. And we'll delve into the deepest of existential questions: why is the why of _why so darned fascinating?
Warning: explanations contained herein require foxes, cat pictures, and exactly two spaces.