Skip to content

Instantly share code, notes, and snippets.

View restlessdesign's full-sized avatar

Kevin Sweeney restlessdesign

View GitHub Profile
@restlessdesign
restlessdesign / example.js
Created August 2, 2016 20:26
git-js example
// Imports _____________________________________________________________________
const git = require('git-js');
// Setup _______________________________________________________________________
git.print_output = false;
// Functions ___________________________________________________________________
@restlessdesign
restlessdesign / secret.js
Created October 15, 2015 17:57
Proactively hide sensitive items before OS X keyboard shortcuts for taking screenshots are completed
/**
* secret.js
*
* Hides senstive DOM elements on the page before a screenshot can
* be taken on OS X using the Cmd + Shift + 3 or Cmd + Shift + 4
* keyboard shortcuts under *some* circumstances. Obviously this
* will only work if the browser has focus.
*
* A note on Windows:
* The last time I checked, the PrtScn key on Windows fired as a
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@restlessdesign
restlessdesign / tumblr_embed.js
Created March 9, 2012 16:00
tumblr embed test
function testMe() {
var foo = 'bar';
}