Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Trindall Trindaz

View GitHub Profile
@fschell
fschell / injectJQ.js
Created Mar 4, 2014
inject jQuery into console
View injectJQ.js
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();
@jeremyis
jeremyis / gist:4009709
Created Nov 4, 2012
inject jquery into a page
View gist:4009709
var element1 = document.createElement("script");element1.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js";element1.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(element1);
// full disclosure: i found this through google and didn't write it
@firedfox
firedfox / parallel.js
Created Jun 28, 2012
parallel.js for phantomjs
View parallel.js
const QUEUE_LENGTH = 1;
var numRunningJobs = 0;
var numWaitingJobs = 0;
var parrallelCallback = function() {
numRunningJobs --;
if (numRunningJobs === 0 && numWaitingJobs === 0) {
phantom.exit();
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
You can’t perform that action at this time.