I have set up the gitignore to ignore almost everything apart from .org
files.
*
!.gitattributes
!.gitignore
!README.md
!.gitkeep
var adjacencyOperators = { | |
append: 'beforeEnd', | |
prepend: 'afterBegin', | |
before: 'beforeBegin', | |
after: 'afterEnd' | |
}; | |
for (key in adjacencyOperators) | |
$.fn[key] = (function(operator) { | |
return function(html){ |
#SRC_BASE_DIR = "public/javascripts/backbone" | |
#DEST_BASE_DIR = "app/coffeescripts/backbone" | |
SRC_BASE_DIR = "spec/javascripts" | |
DEST_BASE_DIR = "spec/coffeescripts" | |
JS2COFFEE = "~/node_modules/js2coffee/bin/js2coffee" | |
dirs = [] | |
files = [] | |
Dir.glob("#{SRC_BASE_DIR}/**/*.js").each do |file| |
node-inspector & | |
coffee --nodejs --debug app.coffee & | |
google-chrome http://127.0.0.1:8080/debug?port=5858 & | |
google-chrome http://127.0.0.1:3000 & |
- title "#{@game.name}" | |
%h1= yield(:title) | |
#documents | |
= form_tag(assessment_game_documents_path(@game)) do | |
%ul | |
%script{ type: "text/x-handlebars" } | |
{{#collection Game.DocumentsCollectionView contentBinding="Game.documentsController"}} | |
%li {{content.name}} | |
{{/collection}} |
var fs = require('fs') | |
var vm = require('vm') | |
var handlebarsjs = fs.readFileSync('path/to/handlebars.js', 'utf8') | |
var emberjs = fs.readFileSync('path/to/ember.js', 'utf8') | |
var templatesDir = 'path/to/template/dir' | |
desc('Compile all .handlebars templates') | |
task({ 'handlebars': [] }, function () { | |
process.stdout.write('Compiling .handlebars templates') |
sysPath = require 'path' | |
express = require 'express' | |
oauth = require 'oauth' | |
_appSecret = "myawesomesecret" | |
_githubUrl = "https://github.com/login" | |
_githubKey = "xxxxxxxxxxxxxx" | |
_githubSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
_githubCallBack = "http://my.app/signin/callback" |
module FactoryGirlStepHelpers | |
def convert_human_hash_to_attribute_hash(human_hash, associations = []) | |
HumanHashToAttributeHash.new(human_hash, associations).attributes | |
end | |
class HumanHashToAttributeHash | |
attr_reader :associations | |
def initialize(human_hash, associations) | |
@human_hash = human_hash |
(emacs-version nil) | |
; => | |
;"GNU Emacs 24.0.97.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) | |
; of 2012-05-16 on bob.porkrind.org" | |
(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet") | |
; => | |
; ("~/.emacs.d/plugins/yasnippet" "~/.emacs.d/rc-site-lisp" "/Users/cmmagid/.emacs.d/el-get/package/elpa/idle-highlight-mode-1.1.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/rainbow-mode-0.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/ruby-electric-1.1" "/Users/cmmagid/.emacs.d/el-get/package/elpa/save-visited-files-1.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/wrap-region-0.6.0" "/Users/cmmagid/.emacs.d/el-get/yasnippet" "/Users/cmmagid/.emacs.d/el-get/yaml-mode" "/Users/cmmagid/.emacs.d/el-get/vline" "/Users/cmmagid/.emacs.d/el-get/tree-mode" "/Users/cmmagid/.emacs.d/el-get/rinari/util/jump/" ...) | |
(require 'yasnippet) | |
; => |
#------------------------------------------------------------------------------ | |
# Make things VirtualEnv aware (Linux version). | |
# More info: http://www.swegler.com/becky/blog/2011/08/28/python-django-mysql-on-windows-7-part-3-ipython-virtual-environments/ | |
# add this to the end of ipython_config | |
# (or course, for virtualenvs created via --no-site-packages, it would | |
# be much easier just to install iPython) | |
# | |
# Also consider sourcing this file from ipython_config with execfile(). | |
# | |
#------------------------------------------------------------------------------ |