Skip to content

Instantly share code, notes, and snippets.

Aaron Cannon cannona

Block or report user

Report or block cannona

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cannona / gist:4ec4080c07555731c80abbb0c82c2d0f
Created Aug 14, 2017
All the commands available to Firebase functions
cannona / index.js
Created Aug 14, 2017
A quick and dirty Firebase function for discovering what linux commands are available to functions.
View index.js
var functions = require('firebase-functions');
var exec = require('child_process').exec;
exports.getInfo = functions.https.onRequest((req, res) => {
exec("/bin/bash -c 'compgen -c'", (...args) => {
cannona / index.html
Created May 1, 2015
Accessible Table Example // source
View index.html
<!DOCTYPE html>
<script src=""></script>
<meta charset="utf-8">
<title>Accessible Table Example</title>
<style id="jsbin-css">
.ascending .when-descending, .descending .when-ascending {
display: none;
cannona / gist:5316590
Created Apr 5, 2013
Convert a flat JS object into a nested set of objects and arrays.
View gist:5316590
var nester = (function () {
* Selected Keys from Object
* @param object obj The object from which you want to get the keys.
* @param array ignoredKeys keys to ignore.
* @return array the non-ignored keys of the object.
var selectedKeysFromObject = function (obj, ignoredKeys) {
var ignoredKeysObj = {};
cannona / install.html
Created Jun 20, 2012
Bookmarklet for converting Esperanto characters in text fields written in the x-system to their true Unicode equivalents.
View install.html
<title>x-system conversion bookmarklet</title>
To install the bookmarklet, right-click the following link, and select "bookmark this link".
<a href="javascript:(function(a){a&&(a.type==="text"||a.type==="textarea")&&(a.value=a.value.replace(/([cghjsu])x/gi,function(a,b){return{C:"\u0108",c:"\u0109",G:"\u011c",g:"\u011d",H:"\u0124",h:"\u0125",J:"\u0134",j:"\u0135",S:"\u015c",s:"\u015d",U:"\u016c",u:"\u016d"}[b]}))}(document.activeElement))">
You can’t perform that action at this time.