Skip to content

Instantly share code, notes, and snippets.

View bitzip's full-sized avatar
😀
Focusing

bitzip

😀
Focusing
View GitHub Profile
@bitzip
bitzip / watch.sh
Last active July 4, 2017 01:38 — forked from mikesmullin/watch.sh
watch is a linux bash script to monitor file modification recursively and execute bash commands as changes occur
#!/usr/bin/env bash
# script: watch
# author: Mike Smullin <[email protected]>
# license: GPLv3
# description:
# watches the given path for changes
# and executes a given command when changes occur
# usage:
# watch <path> <cmd...>
#
/**
* Open external links in new tab/window
*/
// All http:// links should open in new tab/window. Internal links are relative.
var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; i++) {
anchor = anchors[i];