Skip to content

Instantly share code, notes, and snippets.

@afonso-praca
afonso-praca / gist:b920cbd7c50f3f6fd53fd742bd734636
Created September 19, 2016 20:14
Bootstrap Migration from 2 to 3
** nested cols will just works if they have a row on each level
@afonso-praca
afonso-praca / gist:4235341
Created December 7, 2012 18:33
Set max size to a string
getShortName = function(name, size){ return name.length < size ? name : name.substr(0, size) + '...'; };
@afonso-praca
afonso-praca / jquery.ba-tinypubsub.js
Created September 21, 2012 17:45 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);