Skip to content

Instantly share code, notes, and snippets.

View rgarro's full-sized avatar

Rolando Garro rgarro

View GitHub Profile
@rgarro
rgarro / word_count.rb
Created April 25, 2016 16:47
word_count test
# Word count Module
#
#
# @author Rolando Garro <[email protected]>
#
module Wc
@testStr = "Darkness in a blink engine mantra roaring storm gray evening raindrops in a rain gray spot"
@rgarro
rgarro / jquery.observer.js
Created May 7, 2012 18:07 — forked from dharFr/jquery.observer.js
jQuery based observer pattern
;(function($) {
/*
* jQuery Observer pattern
* inspired by @addyosmani 's code
* see: http://addyosmani.com/resources/essentialjsdesignpatterns/book/#highlighter_506612
*/
var topics = [];
function getTopic(id) {
var callbacks;
topic = id && topics[id];