Skip to content

Instantly share code, notes, and snippets.

View zog's full-sized avatar

Johan Van Ryseghem zog

View GitHub Profile
@zog
zog / .vimrc
Last active August 29, 2015 14:07
" for testing different rgb mappings for colors
"let rgb_file = "~/.vim/rgb.txt"
" don't worry about trying to stick to vi/ex conventions
set nocompatible
" disable modelines, as I don't use them
set modelines=0
set nomodeline
set term=ansi
@zog
zog / controller.rb
Created December 21, 2010 14:56
In order to use highlights w/ Sunspot
# in the controller (or wherever you perform the search), enable highlights
@search = Sunspot.search(Model) do
keyword 'foo', :highlights => true
end
# or
@search = Sunspot.search(Model) do
keyword 'foo', :highlights => :name
end