Use git hooks to automatically add JIRA ID at the start of each commit message.
Navigate to the root of the main project repository.
Create a copy of .git/hooks/commit-msg.sample
and name it commit-msg
.
######################### | |
# config/initializers/doorkeeper.rb | |
######################### | |
Doorkeeper.configure do | |
# Change the ORM that doorkeeper will use. | |
# Currently supported options are :active_record, :mongoid2, :mongoid3, :mongo_mapper | |
orm :active_record | |
# This block will be called to check whether the resource owner is authenticated or not. |
// Creates a UIColor from a Hex string. | |
func colorWithHexString (hex:String) -> UIColor { | |
var cString:String = hex.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()).uppercaseString | |
if (cString.hasPrefix("#")) { | |
cString = cString.substringFromIndex(1) | |
} | |
if (countElements(cString) != 6) { | |
return UIColor.grayColor() |
// FINDING OUR WAY | |
show dbs | |
use examples | |
show collections | |
// DATA LOADING | |
function loadData() { | |
db.users.insert([ |
#!/usr/bin/env ruby | |
require 'english' | |
require 'rubocop' | |
ADDED_OR_MODIFIED = /A|AM|^M/.freeze | |
changed_files = `git status --porcelain`.split(/\n/). | |
select { |file_name_with_status| | |
file_name_with_status =~ ADDED_OR_MODIFIED |
[2012-03-15 11:28:24] make | |
CC = clang | |
LD = ld | |
LDSHARED = clang -dynamiclib | |
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe | |
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT | |
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/x86_64-darwin11.3.0 -I./include -I. | |
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/ukondo/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_* -Wl,-u,_objc_msgSend | |
SOLIBS = | |
compiling main.c |
As configured in my dotfiles.
start new:
tmux
start new with session name: