Skip to content

Instantly share code, notes, and snippets.

View fedegl's full-sized avatar

Federico Gonzalez fedegl

  • Tijuana, Baja California
View GitHub Profile
@fedegl
fedegl / vidgenie_api_docs.md
Last active August 29, 2015 13:55
VidGenie API Documentation
@fedegl
fedegl / find_replacer.rb
Created January 15, 2013 03:04
Descrifalo!
class FindReplacer < AbstractModifier
attr_reader :regexp, :replacement_rules
def initialize(original_value, replacement_rules={})
@original_value = original_value
@replacement_rules = replacement_rules
end
def modify
values = original_value.map do |value|
@fedegl
fedegl / gist:3941694
Created October 23, 2012 21:25
Natlib Homepage
<div class="row">
<div class="four columns">
<div class="full_imgage">
{% pagePart home, featured %}
</div>
</div>
</div>
<div class="row">
@fedegl
fedegl / gist:1667614
Created January 24, 2012 03:31
IGovt documentation for setting up a rails project

IGovt ruby docs

IGovt authorization implementation is built on top of the omniauth gem (https://github.com/intridea/omniauth) which is a library that provides a standardized multi-provider authentication for web applications.

The current version of Omniauth is 1.x, but this implementation was created for version 0.3.2

Setting up Igovt in a rails project

Add the custom omniauth gem to your Gemfile