Skip to content

Instantly share code, notes, and snippets.

View jfreites's full-sized avatar

Jonathan Freites jfreites

View GitHub Profile
@jfreites
jfreites / demo.html
Created August 22, 2013 03:35 — forked from insin/index.html
<!DOCTYPE html>
<html>
<head>
<title>tableToExcel Demo</title>
<script src="tableToExcel.js"></script>
</head>
<body>
<h1>tableToExcel Demo</h1>
<p>Exporting the W3C Example Table</p>
@jfreites
jfreites / JS Redirect
Created July 25, 2013 15:10
Un práctico snippet para hacer un redirect usando javascript. Gracias a Zahir Gudiño por compartir (http://gplus.to/zgudino)
// Redirect.js
// Original from: Zahir Gudiño - http://gplus.to/zgudino
// Use:
// var redirect = new redirect('302', 'Upps, the site was moved!');
// redirect.to('http://new-url-to-redirect').run(2000);
//
function Redirect(err, msg) {
this.httpstatus = err;
this.message = msg;