Skip to content

Instantly share code, notes, and snippets.

<sendEmail
xmlns="http://schemas.blinkbox.com/books/emails/sending/v1"
xmlns:r="http://schemas.blinkbox.com/books/routing/v1"
r:originator="bookStore"
r:instance="book-store.mobcast.co.uk"
r:messageId="9678170f7c21-47dc-d8f3-a60f-c73e4c58">
<template>password_reset</template>
<to>
@githubmo
githubmo / Gemfile
Last active December 17, 2015 05:49
Example starting gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.12'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# Use PostGres for both development and production, keeping the same database with both
gem 'pg'

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@githubmo
githubmo / gist:4685291
Created January 31, 2013 18:50
Create database and do migrations.
bundle exec rake db:create:all
bundle exec rake db:migrate
@githubmo
githubmo / rail_install.sh
Created January 31, 2013 18:01
Installing Ruby and Ruby on Rails on OSX Mountain Lion
- Install Xcode from the App Store
- Open Xcode, go to preferences > Additional downloads, install Command line tools
- Install Homebrew, the command for installing it can be found at http://mxcl.github.com/homebrew/ under the "Install Homebrew" section
class C
@v = "Bah bah"
def m
p @v
p @@v # The Class instance variable is not the same as a class variable
end
def self.m
p @v