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
@josephwegner
josephwegner / README.md
Created Aug 10, 2019
Scrape /r/Hobbies comments for subreddit links
View README.md

Simple enough to run... just use the following commands

node scrape.js #creates the file subreddits.list
node count.js #outputs markdown-formatted data.

Please be respectful with this script. Pushshift is a free service, and serving these API requests costs them money.

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));
}
You can’t perform that action at this time.