Skip to content

Instantly share code, notes, and snippets.

Bryn Mosher BrynM

Block or report user

Report or block BrynM

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
BrynM / gt11Rankings.js
Last active May 27, 2019
View gt11Rankings.js
// get top-level entries exclusing collapsed
var entries = $('.commentarea > .sitetable > .comment:not(.collapsed) > .entry');
var final = [];
// loop through the entries recording author, score, and page position
for (var i = 0; i < entries.length; i++) {
var tagline = entries[i].querySelector('.tagline');
// account for which score to take depending on voted state (ug)
var score = entries[i].classList.contains('likes') ? tagline.querySelector('.score.likes') : entries[i].classList.contains('dislikes') ? tagline.querySelector('.score.dislikes') : tagline.querySelector('.score.unvoted');
"author": tagline.querySelector('.author').text,
BrynM /
Last active Feb 21, 2018
Steam Workshop Subscriptions Scraper

Steam Workshop Subscriptions Scraper


This is just something I whipped up to dump a listing of my own subscriptions for a particular game. Unfortunately Vavle/Steam doesn't do such a thing natively and I had to get really creative for my list of several hundred items so I could share with a friend.

So I made this little monstrosity over an evening.


BrynM / make.bat
Created Aug 15, 2017
For those compiling Go or GCC on Windows via mingw32-make
View make.bat
@echo off
REM For use with mingw32-make.exe
mingw32-make.exe %*
BrynM / Sublime Snippets - PHP Documentor
Last active Jul 14, 2018
Sublime Snippets - PHP Documentor
BrynM /
Last active Feb 15, 2016
Riddick Upvote Models

Riddick vote models in obj format

Since obj files are just text, here are the models I used. Feel free to re-use them. I consider them public domain.

If you can't simply "save" one of the obj files below, just create a new file, paste in the desired text, and rename it with a ".obj" extension.

BrynM / reddit_res_search_links.js
Created Jul 28, 2015
Get total links on a reddit search page (may need to load multiple pages with something like RES)
View reddit_res_search_links.js
BrynM / gt_seed.js
Last active Feb 14, 2016
GifTournament seeding round report generator
View gt_seed.js
// Just run this whole thing on the browser console (copy/paste)
// while on the seeding comments page.
var stor = {};
var ranks = [];
var $tags = $('.commentarea > .nestedlisting > .comment:not(.deleted) > .entry > .tagline');
var rankRpt = 'RANKINGS:';
var matchRpt = 'MATCHES:';
var overRpt = 'OVERFLOW USERS:';
var bye = '*bye*';
BrynM / git-stylebot.css
Last active Jun 30, 2018
Wide GitHub Stylebot Customizations
View git-stylebot.css
* Use your whole screen for GitHub! This makes GH's layout more flexible to accomodate widescreen displays.
* Use/Installation:
* 1. Get Stylebot at
* 2. Right-click on a GitHub page and select "Stylebot->Style Element" (it doesn't matter which element).
* 3. When the Stylebot window opens, click the "edit CSS" button and paste the entire contents of this file in.
* 4. (optional) Edit to your tastes if you like, but you may lose the ability to update from this gist unless you
* re-make your changes.
BrynM / dive.js
Last active Aug 29, 2015
Deep-dive a key from a JavaScript object without a pile of typeof or a try/catch
View dive.js
// the meat of this gist - a recursive function for diving namespaces
function dive(obj, path) {
// split the path, pluck away the first one
var sect = (''+path).replace(/^\./, '').split('.'),
curr = sect.length > 0? sect.shift(): null,
// see if our current desired match exists
if(curr && obj && 'undefined' !== typeof obj[curr]) {
// last match? then return othewise recurse
BrynM /
Created Aug 30, 2014
Oh god no... Cloud 2.0

It's recently come to my attention that the term Cloud 2.0 has actually been used. Let's head this monstrosity of marketing-speak off at the pass. Here's an invisible link to put on your pages so the term can be appropriately Google Bombed.

<a href="" style="height:1px;width:1px;text-indent:-1000px;overflow:hidden">Cloud 2.0</a>

With enough people using it, the GIF below will become the top search result. This will hopefully shame people away from using it.

oh god no

You can’t perform that action at this time.