Skip to content

Instantly share code, notes, and snippets.

Stef Lewandowski stefl

Block or report user

Report or block stefl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@stefl
stefl / foundation_paginate.rb
Last active Dec 13, 2015 — forked from mariszin/foundation_paginate.rb
Zurb Foundation now uses 'current' instead of 'active' for the active page.
View foundation_paginate.rb
# Based on https://gist.github.com/1182136 and https://gist.github.com/1586384
# Make the will_paginate generate markup for Zurb Foundation
# Put this in config/initializers/foundation_paginate.rb
module WillPaginate
module ViewHelpers
class LinkRenderer < LinkRendererBase
protected
def html_container(html)
tag(:ul, html, container_attributes)
View uk-postcodes.rb
require 'rubygems'
require 'weary'
class Postie
def get(code)
(Weary.get "http://www.uk-postcodes.com/postcode/#{code.gsub(' ', '')}.json").perform
end
end
postie = Postie.new
You can’t perform that action at this time.