Skip to content

Instantly share code, notes, and snippets.

View thefotolander's full-sized avatar

Jonathan Acosta thefotolander

View GitHub Profile
@HenrikJoreteg
HenrikJoreteg / ajaxfileupload.js
Created April 26, 2012 19:47
AJAX file uploading using jQuery and XMLHttpRequest 2.0 and adding listener for progress updates
// grab your file object from a file input
$('#fileInput').change(function () {
sendFile(this.files[0]);
});
// can also be from a drag-from-desktop drop
$('dropZone')[0].ondrop = function (e) {
e.preventDefault();
sendFile(e.dataTransfer.files[0]);
};
anonymous
anonymous / gist:4747864
Created February 10, 2013 01:14
TPB AFK Subtítulos en español
10:01:47:24 10:01:51:10 
Tres suecos fueron detenidos el día de hoy,
sospechosos de administrar-
10:01:51:14 10:01:57:10
-uno de los sitios web de descargas
ilegales más grandes del mundo... -
10:01:57:14 10:02:02:01
Buenas noches. EE.UU. amenazó
@seanislegend
seanislegend / map-reverse.scss
Created November 19, 2014 14:00
Reverse the order of a SASS map.
@function mapReverse ($map) {
$result: null;
@if type-of($map) == "map" {
$keys: map-keys($map);
$map-reversed: ();
@for $i from length($keys) through 1 {
$map-reversed: map-merge(
$map-reversed,