A vanilla node proxy that gives webpages a treat.
Clone this gist and simply run node index.js
. Then configure
127.0.0.1:8484
as a proxy and you're good to go.
Have fun and be sure to report any pranks!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
window.a = function() { | |
throw new Error("expected"); | |
}; | |
try { | |
window.a(); | |
} catch (ex) { | |
alert(ex.message); | |
} |
#!/bin/bash | |
UGLIFY=`which uglifyjs` | |
ARGS="--beautify" | |
F1=/tmp/$RANDOM | |
F2=/tmp/$RANDOM | |
cat $1 | $UGLIFY $ARGS > $F1 | |
cat $2 | $UGLIFY $ARGS > $F2 |
#!/bin/bash | |
dir="$HOME/Documents/commit-photos" | |
if [[ ! -d $dir ]]; then | |
mkdir -p $dir | |
fi | |
f=`echo \`date "+%Y%m%d-%H%M%S"\`` | |
device=`imagesnap -l | grep -v "Video Devices:" | head -n 1` |
(setq free-keys-modifiers (list "C" "M" "C-M")) | |
(setq free-keys-keys "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.,/§1234567890-=[];'\\`±!@#$%^&*()_+}{:\"|?><~") | |
(defun free-keys () | |
(interactive) | |
(let ((buf (get-buffer-create "*Free keys*"))) | |
(display-buffer buf) | |
(with-current-buffer buf | |
(erase-buffer) | |
(mapc (lambda (modifier) |
// Performance optimization: http://jsperf.com/apply-vs-call-vs-invoke | |
switch (self ? -1 : args.length) { | |
case 0: return fn(); | |
case 1: return fn(args[0]); | |
case 2: return fn(args[0], args[1]); | |
case 3: return fn(args[0], args[1], args[2]); | |
case 4: return fn(args[0], args[1], args[2], args[3]); | |
case 5: return fn(args[0], args[1], args[2], args[3], args[4]); | |
case 6: return fn(args[0], args[1], args[2], args[3], args[4], args[5]); | |
case 7: return fn(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); |
// ==UserScript== | |
// @name Widen Github | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match https://github.com/* | |
// @copyright 2012+, You | |
// ==/UserScript== | |
var containerWidth = $('.container').css('width'); |
tell application "Safari" | |
set theWindows to windows | |
set win1 to item 1 of theWindows | |
set win2 to item 2 of theWindows | |
repeat | |
tell win1 | |
set index to 1 | |
set visible to false | |
set visible to true | |
end tell |