Skip to content

Instantly share code, notes, and snippets.

View ignacioiglesias's full-sized avatar

ignacioiglesias ignacioiglesias

View GitHub Profile
<!--
Author: @fat
Translated by: @ignacioiglesias with lots of help from @rtohme.
-->
<p>Ofrecí este pequeño consejo en twitter.</p>
<blockquote class="twitter-quote">
<p>Dejen la escuela o estudien Inglés. Así es como triunfan en
javascript</p>
— ♒∆✝ (@fat)
@ignacioiglesias
ignacioiglesias / gist:2844244
Created May 31, 2012 15:40
My (very) liberal interpretation of JavaScript Module Pattern: In-Depth by Ben Cherry
// This is my (very) liberal interpretation of
// JavaScript Module Pattern: In-Depth by Ben Cherry
// http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
"use strict";
var api = (function(a) {
// I will use `a` as the API, so let's say I want to add some stuff,
// for instance, a logging module.
function privateDebugMethod(message) {