Skip to content

Instantly share code, notes, and snippets.

bitlist = [
1, 0, 1
0, 0, 1
1, 1, 0
]
bitlist = [
1, 0, 1
0, 0, 1
1, 1, 0
]
song = ["do", "re", "mi", "fa", "so"]
singers = {Jagger: "Rock", Elvis: "Roll"}
bitlist = [
1, 0, 1
0, 0, 1
1, 1, 0
]
bitlist = [1, 0, 1, 0, 0, 1, 1, 1, 0];
kids = {
brother: {
name: "Max",
age: 11
},
(function() {
var bitlist, kids, singers, song;
song = ["do", "re", "mi", "fa", "so"];
singers = {
Jagger: "Rock",
Elvis: "Roll"
};
bitlist = [1, 0, 1, 0, 0, 1, 1, 1, 0];
kids = {
brother: {
@sid137
sid137 / test.coffee
Created April 9, 2011 03:55
.vimrc
" Many settings taken from
" http://nvie.com/posts/how-i-boosted-my-vim/
"
" Most general settings first
set nocompatible " Set Vim rather than Vi settings; must go first
set noeb " Set no audio or visual error beep
set bs=2
set bs=indent,eol,start " Allow backspacing over everything in insert mode
set history=1000 " Keep 1000 lines of command line history
set undolevels=1000
@sid137
sid137 / gist:736492
Created December 10, 2010 17:27
SnipMate
"""""""""""""""""""""""""""""""""""""""""""""
""Snipmate Mod
"""""""""""""""""""""""""""""""""""""""""""""
" Reload snippets and close snippet buffer on snippet save
autocmd BufWritePost *.snippet :call ReloadAllSnippets() | :Bclose
"shortcuts to quickly create new snippet
map <Leader>ca :call MakeSnippet()<CR>
imap <Leader>ca <ESC> :call MakeSnippet()<CR>
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Ohai Attribute: uptime_seconds - 21470
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Ohai Attribute: platform - "ubuntu"
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Platform is ubuntu version 9.10
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Compiling recipes for node i7
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Loading cookbook openssl library file: /tmp/chef-solo/cookbooks/openssl/libraries/secure_password.rb
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Loading cookbook packages library file: /tmp/chef-solo/cookbooks/packages/libraries/packages.rb
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Loading attributes from /tmp/chef-solo/cookbooks/apache2/attributes/apache.rb
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Loading attributes from /tmp/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Not setting bootstrap/chef/url_type to "http" because it has a default value already
[Sat, 03 Apr 2010 19:29:29 +0200] DEBUG: Not setting bootstrap/chef/init_st
module Devise
module Orm
module MongoMapper
module Hook
def devise_modules_hook!
extend Schema
include Compatibility
yield
return unless Devise.apply_schema
devise_modules.each { |m| send(m) if respond_to?(m, true) }
defaults: &defaults
host: 127.0.0.1
development:
<<: *defaults
database: test_dev
test:
<<: *defaults
database: test_test