This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set formatoptions+=a # auto reformat paragraphs | |
set formatoptions+=t # enable auto line wraping | |
set tw=100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:let @* = @% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Highlight searches | |
set hlsearch | |
" Case sensitivity | |
set ignorecase | |
set smartcase | |
" Automatic Indenting | |
set autoindent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hardClick(node) { | |
triggerMouseEvent (node, "mouseover"); | |
triggerMouseEvent (node, "mousedown"); | |
triggerMouseEvent (node, "mouseup"); | |
triggerMouseEvent (node, "click"); | |
} | |
function triggerMouseEvent (node, eventType) { | |
var clickEvent = document.createEvent ('MouseEvents'); | |
clickEvent.initEvent (eventType, true, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bundle | |
db/*.sqlite3* | |
log/*.log | |
*.log | |
/tmp/ | |
doc/ | |
*.swp | |
*~ | |
.DS_Store | |
.rvmrc* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails new APP_NAME -m http://railswizard.org/48c15b50eff428bc421f.rb | |
rails generate mongoid:config | |
rails generate jquery:install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Spike</title> | |
<%= csrf_meta_tag %> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %> | |
<%= stylesheet_link_tag 'blueprint/print', :media => 'print' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mongoid/Hierarchy | |
# Get all child +Documents+ to this +Document+, going n levels deep if | |
# necessary. This is used when calling update persistence operations from | |
# the root document, where changes in the entire tree need to be | |
# determined. Note that persistence from the embedded documents will | |
# always be preferred, since they are optimized calls... This operation | |
# can get expensive in domains with large hierarchies. | |
# | |
# @example Get all the document's children. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macbook:bs_portal Ben$ rails g migration add_translations_table --orm=active_record |
OlderNewer