Skip to content

Instantly share code, notes, and snippets.

View ivillamil's full-sized avatar

Iván Villamil ivillamil

View GitHub Profile
@ivillamil
ivillamil / backbone_sample.html
Created January 9, 2014 16:05
Ejemplo sencillo de backbone que muestra las dos formas en las que se puede asignar un valor al attributo "el" de las vistas.
<!doctype html>
<html lang="es">
<head><title>Backbone</title></head>
<body>
<div id="app">
<form>
<input name="name" placeholder="Tu Nombre">
<button type="submit">Agregar</button>
</form>
<ul class="list"></ul>
@ivillamil
ivillamil / dabblet.css
Created June 11, 2013 18:49
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
@ivillamil
ivillamil / index.html
Created May 17, 2013 15:13
A CodePen by Iván Villamil. Restart Timeout - A simple snippet that shows how to restart a timeout.
<input type="number" id="delay" placeholder="Seconds" size="8" />
<input type="button" id="start-btn" value="iniciar" />
<input type="button" id="reset-btn" value="resetear" />
<span id="output">0</span>
@ivillamil
ivillamil / dabblet.html
Created December 5, 2012 20:56
Untitled
<table width=500 cellpadding=0 cellspacing=0>
<thead><tr><td align=center>
<img src="http://www.montejocarrental.com/images/logo.gif" width="500">
</td></tr></thead>
<thead>
<tr>
<td style="background-color:#00135f;color:#fff;font-family:verdana;padding:5px 10px" align=center>
DATOS GENERALES
</td>
</tr>
@ivillamil
ivillamil / dabblet.css
Created November 30, 2012 02:17
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
@ivillamil
ivillamil / dabblet.css
Created November 29, 2012 16:37 — forked from anonymous/dabblet.css
Untitled
body{ background: #efefef; font-family: sans-serif; }
ul{ margin:0; padding:0; list-style:none; }
.nav > li{
display: inline-block;
position: relative;
}
.nav > li > a {
text-decoration: none;
color: #222;
background: #fff;
@ivillamil
ivillamil / pubsub.js
Created November 28, 2012 15:53
PubSub [observer pattern with jQuery]
/*
| Include this snippet before your scripts in order to get access to the pubSub pattern
| USAGE:
| $.publish('myApp:customEvent');
| $.suscribe('myApp:customEvent', yourCallbackFunction);
**/
(function( $ ) {
var o = $( {} );