View the original gist: https://gist.github.com/428105
visit "/projects"
visit post_comments_path(post)
#!/bin/sh | |
# Install ImageMagick on Snow Leopard: by kain, improved by mislav and samsoffes | |
# http://www.icoretech.org/2009/08/install-imagemagick-in-leopard-snow-leopard/ | |
# Work with 64bit kernel mode | |
set -e | |
PREFIX=/usr/local | |
# Passenger users: amend your Apache global configuration with the following directive | |
# SetEnv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin |
# Capistrano Deploy Recipe for Git and Phusion Passenger | |
# | |
# After issuing cap deploy:setup. Place server specific config files in | |
# /home/#{user}/site/[staging|production]/shared | |
# Set :config_files variable to specify config files that should be | |
# copied to config/ directory (i.e. database.yml) | |
# | |
# To deploy to staging server: | |
# => cap deploy | |
# => Deploys application to /home/#{user}/site/staging from master branch |
worker_processes 2; | |
user root; | |
error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
# NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://gist.github.com/3052776 | |
$ cd /usr/src | |
$ wget http://nginx.org/download/nginx-1.2.1.tar.gz | |
$ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz | |
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz | |
$ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz | |
$ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz |
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
"default_line_ending": "unix", | |
"fade_fold_buttons": false, | |
"fallback_encoding": "Shift_JIS", | |
"font_options": "subpixel_antialias", | |
"font_size": 10, | |
"format_on_save": true, | |
"gutter": true, |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# NewFileAtCurrentFolder | |
import sublime_plugin | |
import os.path | |
class NewFileListener(sublime_plugin.EventListener): | |
def on_new_async(self, view): | |
if not view.window().active_view(): | |
print("NF: no view") | |
return |
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
View the original gist: https://gist.github.com/428105
visit "/projects"
visit post_comments_path(post)
***RSPEC*** | |
Equivalence | |
actual.should eq(expected) # passes if actual == expected | |
actual.should == expected # passes if actual == expected | |
actual.should eql(expected) # passes if actual.eql?(expected) | |
Identity | |
actual.should be(expected) # passes if actual.equal?(expected) | |
actual.should equal(expected) # passes if actual.equal?(expected) |