Skip to content

Instantly share code, notes, and snippets.

Jeremy Scheff dumbmatter

Block or report user

Report or block dumbmatter

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
@dumbmatter
dumbmatter / how.md
Created May 9, 2018
How to fix 0 ovr/pot ratings in some players in Basketball GM
View how.md

First, open your league in Chrome. Then open a new tab and go to this URL: chrome://inspect/#workers - that should show something like "https://play.basketball-gm.com/gen/worker-2018.05.05.1163.js" with an "Inspect" link under it. Click "Inspect". That will open a new window where you can run commands. In that window, run this (copy/paste the whole block of code at once, and then press enter):

bbgm.idb.league.tx("players", "readwrite", tx => tx.players.iterate(p => {
    let update = false;
    for (const ratings of p.ratings) {
        if (isNaN(ratings.oiq) || isNaN(ratings.diq)) {
            update = true;
            break;
        }
    }
@dumbmatter
dumbmatter / germany.json
Created Feb 11, 2018
BBGM with only German Players
View germany.json
{
"gameAttributes": [
{
"key": "names",
"value": {
"first": {
"Germany": [
["Alex", 1],
["Alexander", 2],
["Amar", 3],
@dumbmatter
dumbmatter / BBGM 2002 League File
Last active May 16, 2016
What I did to make this: 1. created new league on https://play.basketball-gm.com/ ; 2. exported league (just players and teams); 3. opened the file in a text editor and did search/replace to change 2015 to 2002; 4. added "startingSeason": 2002, after the first line.
View BBGM 2002 League File
{
"startingSeason": 2002,
"meta": {
"phaseText": "2002 preseason",
"name": "League 3"
},
"players": [
{
"tid": -1,
"statsTids": [],
@dumbmatter
dumbmatter / bbgm-stack-acronym.py
Created Dec 22, 2014
Origins of the KIRK HINRICH stack used to build http://basketball-gm.com/
View bbgm-stack-acronym.py
scores = {}
words = {}
with open('letters.csv') as f:
for line in f:
letter, word, score = line.rstrip().split(',')
scores[letter] = int(score)
words[letter] = word
names = []
View basic_income_monte_carlo.py
from pylab import *
from scipy.stats import *
num_adults = 227e6
basic_income = 7.25*40*50
labor_force = 154e6
disabled_adults = 21e6
current_wealth_transfers = 3369e9
def jk_rowling(num_non_workers):
You can’t perform that action at this time.