Skip to content

Instantly share code, notes, and snippets.

@vitorhsb
vitorhsb / jquery.ba-tinypubsub.js
Created June 20, 2012 10:56 — 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);
@vitorhsb
vitorhsb / tab.bash
Last active August 29, 2015 14:16 — forked from bobthecow/tab.bash
#!/bin/bash
#
# Open new Terminal tabs from the command line
#
# Author: Justin Hileman (http://justinhileman.com)
#
# Installation:
# Add the following function to your `.bashrc` or `.bash_profile`,
# or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc`
#
@vitorhsb
vitorhsb / ErrorHandler.php
Created May 18, 2016 18:23 — forked from bastman/ErrorHandler.php
PHP ErrorHandler Example: Extended Symfony2 AND Custom Errors
<?php
/**
* Created by JetBrains PhpStorm.
* User: seb
* Date: 11/20/12
* Time: 4:05 PM
* To change this template use File | Settings | File Templates.
*/
namespace Symfony\Component\HttpKernel\Debug;
class ErrorHandler