This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HashHack = { | |
PREFIX: '#hhMessage=', | |
postMessage: function(el, sMessage) { | |
if ('string' === typeof el) { | |
el = document.getElementById(el); | |
} | |
var sUrl = el.src.replace(/#.*/, ''); | |
el.src = sUrl + HashHack.PREFIX + encodeURIComponent(sMessage); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This tool can be used to mirror files from a source directory to a destination | |
directory. You can specify one file using `destination` and `source` or define | |
many files using `source_map` (a csv with source,destination file per line). | |
""" | |
import argparse | |
import os | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HashHack = { | |
PREFIX: '#hhMessage=', | |
aCallbacks: [], | |
sLastHash: '', | |
handleInterval: function() { | |
var sHash = window.location.hash, | |
sDecodedHash, sMessage, i; | |
if (sHash !== HashHack.sLastHash) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modified from http://mattsnider.com/cross-browser-and-legacy-supported-requestframeanimation/ | |
// LICENSE: MIT: http://mattsnider.com/projects/license/ | |
(function(w) { | |
"use strict"; | |
// most browsers have an implementation | |
w.requestAnimationFrame = w.requestAnimationFrame || | |
w.mozRequestAnimationFrame || w.webkitRequestAnimationFrame || | |
w.msRequestAnimationFrame; | |
w.cancelAnimationFrame = w.cancelAnimationFrame || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# expects python is installed with OS distribution | |
# single line command for execution | |
# wget -O - <RAW_URL> | bash | |
# determine environment | |
if hash apt-get 2>/dev/null; then | |
echo "Bootstrapping UBUNTU" | |
UBUNTU=true |
OlderNewer