Skip to content

Instantly share code, notes, and snippets.

View macjohnny's full-sized avatar

Esteban Gehring macjohnny

View GitHub Profile
@macjohnny
macjohnny / gap-free-shuffle.js
Last active October 23, 2017 12:36
GapFreeShuffle
(function(window) {
'use strict';
/**
* Creates new instance of GapFreeShuffle that extends Shuffle (https://vestride.github.io/Shuffle/)
* Implements a sorting algorithm that tries to fill empty gaps with subsequent blocks
* See https://github.com/Vestride/Shuffle/issues/189
*
* @param {Element} element An element which is the parent container for the grid items.
@macjohnny
macjohnny / index.html
Created January 28, 2022 12:04
podJVEw
<button onclick="javascript:downloadFileAnchor(pdfData)">downloadFileAnchor in new window</button>
<button onclick="downloadFileWindow(pdfData)">downloadFileWindow</button>