Skip to content

Instantly share code, notes, and snippets.

View cspeer's full-sized avatar

Chris cspeer

  • Berlin, Germany
  • 22:17 (UTC +01:00)
View GitHub Profile
### Keybase proof
I hereby claim:
* I am cspeer on github.
* I am cspeer (https://keybase.io/cspeer) on keybase.
* I have a public key whose fingerprint is E069 0F4B AEEF 425F 79D4 7300 D97A 14D5 D258 0D88
To claim this, I am signing this object:
@cspeer
cspeer / config_initializers_willPaginateRenderer.rb
Last active June 28, 2017 22:22
Will Paginate Semantic UI Renderer
require 'will_paginate/view_helpers/link_renderer'
module WillPaginate
module ViewHelpers
class LinkRenderer
protected
def page_number(page)
page == current_page ? tag(:span, page, class: 'active item') : link(page, page, class: 'item', rel: rel_value(page))
end
@cspeer
cspeer / instructions.md
Created December 2, 2012 17:44 — forked from terenceponce/instructions.md
Setting up Thinking-Sphinx on Mac OS X using Homebrew

Out of the box, Homebrew does a default installation on Sphinx:

$ brew install sphinx

However, if you're using MySQL, the thinking-sphinx gem won't work because it needs to use MySQL libraries.

If you managed to screw up the first time, uninstall sphinx first:

$ brew remove sphinx