Skip to content

Instantly share code, notes, and snippets.

View lookaflyingdonkey's full-sized avatar

Dean Collins lookaflyingdonkey

View GitHub Profile
@lookaflyingdonkey
lookaflyingdonkey / dji-forum-enhance.js
Last active October 19, 2016 19:16
Userscript to enhance the functionality of the DJI Forum
// ==UserScript==
// @name Upgrade DJI forum
// @version 0.2
// @description Adds some more functionality to the DJI forum
// @author Dean Collins <lookaflyingdonkey@icloud.com>
// @match http://forum.dji.com/*
// @grant none
// ==/UserScript==
(function() {
@lookaflyingdonkey
lookaflyingdonkey / 0_reuse_code.js
Created October 29, 2013 03:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
$string = uniqid();
$start = microtime(true);
for ($i = 0; $i < 1000000; $i++) {
crc32($string);
}
$elapsed = microtime(true) - $start;
echo "crc32 => $elapsed\n";