Skip to content

Instantly share code, notes, and snippets.

@nicalpi
nicalpi / 1.Gemfile
Created July 22, 2011 14:54
Creates easy shorten UUID in your RAILS APP
## See http://
gem 'base32-crockford', :require => 'base32/crockford'
@nicalpi
nicalpi / embed2.rb
Created July 7, 2011 08:46
test embed 2
def try_me
a = 12
end
@nicalpi
nicalpi / gist:1010363
Created June 6, 2011 14:27
result of first search
Search for? :paul or linux
Found 65 documents in total
** Pages: 3 **
*we cannot find anymore information for the moment*
** Interactions: 39 **
Type not provided
Type not provided
Migrating 012 move items to datas
rake aborted!
undefined method `klass' for nil:NilClass
/home/nicolas/.rvm/gems/ree-1.8.7-2010.02@rails3/gems/activesupport-3.0.0.rc/lib/active_support/whiny_nil.rb:48:in `method_missing'
/home/nicolas/.rvm/gems/ree-1.8.7-2010.02@rails3/bundler/gems/mongoid-f400f271b874/lib/mongoid/associations/embeds_many.rb:232:in `build_children_from_attributes'
/home/nicolas/.rvm/gems/ree-1.8.7-2010.02@rails3/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:434:in `each_with_index'
/home/nicolas/.rvm/gems/ree-1.8.7-2010.02@rails3/bundler/gems/mongoid-f400f271b874/lib/mongoid/associations/embeds_many.rb:231:in `each'
/home/nicolas/.rvm/gems/ree-1.8.7-2010.02@rails3/bundler/gems/mongoid-f400f271b874/lib/mongoid/associations/embeds_many.rb:231:in `each_with_index'
/home/nicolas/.rvm/gems/ree-1.8.7-2010.02@rails3/bundler/gems/mongoid-f400f271b874/lib/mongoid/associations/embeds_many.rb:231:in `build_children_from_attributes'
/home/nicolas/.rvm/gems/ree-1.8.7-2010.02@rails3/bundl
#Config is there http://github.com/spyou/vim-config
#Give a go to vimtutor in order to have a little overview of Vim.
"open/save"
#:w (save)
#:q (quit)
#:qa (quit all buffers)
#:q! (quit without saving)
#:wq (save and quit)
def self.down
drop_table :posts
end
Testing gist on VIM
Testing gist on VIM
Using :Gist
Testing gist on VIM
Using :Gist
gist:78094