Mensch font, Source Code Pro, Webkit, Chrome, Firefox, Kaleidoscope, iTerm, Sublime Text, Sequel Pro, Codekit,
require 'rubygems' | |
require 'twitter' | |
# see https://github.com/sferik/twitter | |
def twitter_client | |
Twitter::REST::Client.new do |config| | |
config.consumer_key = "XXXXXX" | |
config.consumer_secret = "XXXXXX" | |
config.access_token = "XXXXXX" |
#!/bin/sh | |
# | |
# Copyright (c) 2005 Junio C Hamano | |
# | |
# Fetch one or more remote refs and merge it/them into the current HEAD. | |
USAGE='[-n | --no-stat] [--[no-]commit] [--[no-]squash] [--[no-]ff|--ff-only] [--[no-]rebase|--rebase=preserve] [-s strategy]... [<fetch-options>] <repo> <head>...' | |
LONG_USAGE='Fetch one or more remote refs and integrate it/them with the current HEAD.' | |
SUBDIRECTORY_OK=Yes | |
OPTIONS_SPEC= |
#!/bin/sh | |
# Copyright (c) 2007, Nanako Shiraishi | |
dashless=$(basename "$0" | sed -e 's/-/ /') | |
USAGE="list [<options>] | |
or: $dashless show [<stash>] | |
or: $dashless drop [-q|--quiet] [<stash>] | |
or: $dashless ( pop | apply ) [--index] [-q|--quiet] [<stash>] | |
or: $dashless branch <branchname> [<stash>] | |
or: $dashless [save [--patch] [-k|--[no-]keep-index] [-q|--quiet] |
# This shell scriplet is meant to be included by other shell scripts | |
# to set up some variables pointing at the normal git directories and | |
# a few helper shell functions. | |
# Having this variable in your environment would break scripts because | |
# you would cause "cd" to be taken to unexpected places. If you | |
# like CDPATH, define it for your interactive shell sessions without | |
# exporting it. | |
# But we protect ourselves from such a user mistake nevertheless. | |
unset CDPATH |
##References
##Create Rails App
command to make new directory:
mkdir AppName
Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.
I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
#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) |
source 'http://rubygems.org' | |
gem 'rails', '3.1.0' | |
gem 'unicorn' | |
gem "mongoid", "~> 2.4" | |
gem "bson_ext", "~> 1.5" | |
gem 'jquery-rails' | |
gem 'sorcery' | |
gem 'cancan' | |
gem 'twitter-bootstrap-rails', :git => 'http://github.com/seyhunak/twitter-bootstrap-rails.git' |
<? | |
class MySQL { | |
/** | |
* The DB Host to connect to | |
* | |
* @var string | |
*/ | |
protected $host; |