Skip to content

Instantly share code, notes, and snippets.

Joe Johnson say2joe

Block or report user

Report or block say2joe

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
say2joe /
Created Mar 15, 2019
OPkg: clean up from bad pkg install
#takes one argument/parameter: the name of the package which didn't install correctly and should be removed along with its dependencies
#example: ./ pulseaudio-daemon
#get list of all packages that would be installed along with package x
PACKAGES=`opkg --force-space --noaction install $1 | grep "http:" | cut -f 2 -d ' ' | sed 's/\.$//'`
opkg update
for i in $PACKAGES
View vscode.settings
# This is a placeholder to be overwritten by Visual Studio Code (vscode IDE).
View Steelhouse-Interview.js
* JavaScript code for Steelhouse coding exercise.
* Any CSS is provided in the upper CSS directory.
'use strict';
Write a function that takes a single argument, lines, which is a list of
strings. Each element of lines is a line of prose from some passage. You will
return a list of strings that is read "downward", as opposed to left-to-right.
say2joe / JS-Quiz-Solutions.js
Created Oct 27, 2016
My solutions to former employer's JS quiz for new employees
View JS-Quiz-Solutions.js
// Please save all your work in
// Return the link to your work
// Answer five out of the seven questions
// Use test data when provided, however your functions should work with any similiarly structured data
// Use any additional libraries you like
// 1: Refactor this function to make it scalable.
var goto = function(evt, where, project, scenario, item, id){
if (evt && evt.stopPropagation){ evt.stopPropagation(); }
say2joe / viewReporting.js
Last active Oct 27, 2016
Angular View (vm integrated with legacy app code /wo ng routing)
View viewReporting.js
'use strict';
var $appRoot, auth, APIs, app = {},
tmpl = com.marketshare.optimizer.template,
reportCategoryKeys = 'nav-report-categories',
ns = 'com.marketshare.optimizer.view.viewReporting';
function updateNavigation(event) {
var $itemsHolder,
say2joe / PrototypeChain.js
Created Jan 26, 2015
JS Object Prototype Augmentation (JS helper methods)
View PrototypeChain.js
if (![].unique) {
Array.prototype.unique = function() {
var n = {}, r = [], i = 0, l = this.length;
for (; i < l; i++) {
if (this[i] && !n[this[i]]) {
n[this[i]] = true;
return r;
# Alot of these configs have been taken from the various places
# on the web, most from here
# Set the colours you can use
View Login-w-Cookie.js
say2joe / bookmarklets.js
Last active Aug 29, 2015
Bookmarklet Helpers
View bookmarklets.js
/** Helper - prompt for a keyword then display the correct page.
Save this as a bookmark in the Bookmark Bar for quick access to pages.
NOTE: Use the minified version below for the URL of the bookmark.
/** Minified:
* javascript:q=prompt("Search for?")||0;q&&(location=encodeURI(""+q));
var query = window.prompt('Search for?') || false;
if (query) location.href = '' + encodeURIComponent(query);
say2joe / si.js
Created Oct 18, 2014
Sorting and intersection
View si.js
MS = Sharecize = {
d3: d3,
DOM: {
$view: $('#MS-container'),
$content: $('section#content'),
$console: $('aside#console > div')
Writer: function (DOM) {
if (!DOM) DOM = Sharecize.DOM.$content;
if (!DOM.jquery) DOM = $(DOM);
You can’t perform that action at this time.