Skip to content

Instantly share code, notes, and snippets.

Joe Wegner josephwegner

Block or report user

Report or block josephwegner

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
View simpleserver.js
var http = require('http')
var server = http.createServer(function(req, res) {
res.end('OK')
});
server.listen(process.env.PORT || 3000, function() {
console.log('listening on ', process.env.PORT || 3000)
})
@josephwegner
josephwegner / userscript.user.js
Last active Dec 5, 2018
Hide Form Fill Intro
View userscript.user.js
// ==UserScript==
// @name Form Fill Intro Fixer
// @namespace http://tampermonkey.net/
// @version 0.2.1
// @description Hide the Form Fill boiler plate intro description
// @author You
// @match https://support.heroku.com/tags/*
// @match https://support.heroku.com/inbox
// @match https://support.heroku.com/search*
// @grant none
@josephwegner
josephwegner / userscript.user.js
Last active Apr 1, 2019
Self Assigned Fill Black
View userscript.user.js
// ==UserScript==
// @name Self Assigned Label Color
// @namespace http://tampermonkey.net/
// @version 0.2.1
// @description Add color to the assignee label if it is assigned to me
// @author You
// @match https://support.heroku.com/tags/*
// @match https://support.heroku.com/inbox
// @match https://support.heroku.com/search*
// @grant none
View icons.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View alder_none1.json
"[{\"fog\":true,\"icon\":null,\"color\":\"#8f7b5f\"},{\"fog\":true,\"icon\":null,\"color\":\"#d6d6d6\"},{\"fog\":false,\"icon\":null,\"color\":\"#8f7b5f\"},{\"fog\":false,\"icon\":null,\"color\":\"#d6d6d6\"},{\"fog\":false,\"icon\":null,\"color\":\"#8f7b5f\"},{\"fog\":false,\"icon\":null,\"color\":\"#d6d6d6\"},{\"fog\":false,\"icon\":null,\"color\":\"#8f7b5f\"},{\"fog\":false,\"icon\":null,\"color\":\"#8f7b5f\"},{\"fog\":false,\"icon\":null,\"color\":\"#8f7b5f\"},{\"fog\":true,\"icon\":null,\"color\":\"#d6d6d6\"},{\"fog\":true,\"icon\":null,\"color\":\"#d6d6d6\"},{\"fog\":true,\"icon\":null,\"color\":\"#174ae3\"},{\"fog\":true,\"icon\":null,\"color\":\"#a9a9a9\"},{\"fog\":true,\"icon\":null,\"color\":\"#212121\"},{\"fog\":true,\"icon\":null,\"color\":\"#945200\"},{\"fog\":true,\"icon\":null,\"color\":\"#8f7b5f\"},{\"fog\":true,\"icon\":null,\"color\":\"#d6d6d6\"},{\"fog\":true,\"icon\":null,\"color\":\"#8f7b5f\"},{\"fog\":true,\"icon\":null,\"color\":\"#d6d6d6\"},{\"fog\":true,\"icon\":null,\"color\":\"#d6d6d
@josephwegner
josephwegner / objCreationTimer.js
Created Apr 26, 2018
Generic Object Creation Timing
View objCreationTimer.js
var JSONStrings = [];
for(var i=0; i<74000; i++) {
var obj = {};
for(var j=0; j<120; j++) {
obj[j] = Math.random();
}
JSONStrings.push(JSON.stringify(obj));
}
@josephwegner
josephwegner / file1.js
Created May 26, 2015
JS Variable Scope
View file1.js
var foo = 'hello!';
var util = {
setBar: function() {
var bar = 'goodbye!';
},
changeFoo: function() {
foo = 'olah!';
},
You can’t perform that action at this time.