This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cigar | |
rebut | |
sissy | |
humph | |
awake | |
blush | |
focal | |
evade | |
naval | |
serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
mediawiki: | |
image: mediawiki:1.37.1 | |
restart: always | |
networks: | |
- proxy | |
- local | |
labels: | |
- "traefik.enable=true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# takes a whole game of packets | |
def add_fields(packets): | |
batCount = -1 | |
# Pretend the first packet has been repeated | |
batSet = [packets[0]] | |
lastPacket = packets[0] | |
# Iterate over all game packets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Items always in a standard feed event | |
- id | |
- playerTags | |
- teamTags | |
- gameTags | |
- metadata | |
- created | |
- day | |
- season | |
- phase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Life | |
1 - What are you majoring in? wrong answers only. | |
1 - What piece of media scared each of you the most? | |
1 - What is your favorite pizza? | |
1 - What is your spice-sona (OC)? | |
1 - What are your favorite ice cream flavors? | |
2 - What is your favorite obscure emoji? | |
2 - What's your goty other than Blaseball? | |
2 - How would you describe your soulsmell? | |
2 - If you had to combine any two fruit juices for an official Blaseball juice, what would they be? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data: {"value":{"games":{"sim":{"id":"thisidisstaticyo","day":70,"league":"d8545021-e9fc-48a3-af74-48685950a183","nextElectionEnd":"2020-08-30T19:00:00.011Z","nextPhaseTime":"2020-08-31T16:00:00.011Z","nextSeasonStart":"2020-08-31T16:00:00.011Z","phase":2,"playOffRound":0,"playoffs":"0e8512d6-648d-40bf-bbbd-c4e7690c9ce1","rules":"4ae9d46a-5408-460a-84fb-cbd8d03fff6c","season":3,"seasonId":"6c8acae5-fae4-4f81-a253-b21e97853996","terminology":"b67e9bbb-1495-4e1b-b517-f1444b0a6c8b","eraColor":null,"eraTitle":"The Discipline Era","openedBook":true,"unlockedPeanuts":true,"twgo":"JHFMTOJMNPSMLMDGFOSEZDTMJWHPADAACGRTBBPBBCJRTPMJCSNKKAOMVMSTAJTVTCJIMPSSSTBFHRSSMSDKIRLWLVWSSMEIMCCD","doTheThing":false,"labourOne":1,"subEraColor":null,"subEraTitle":"Feedback","eatTheRich":true,"unlockedInterviews":true},"season":{"id":"6c8acae5-fae4-4f81-a253-b21e97853996","league":"d8545021-e9fc-48a3-af74-48685950a183","rules":"4ae9d46a-5408-460a-84fb-cbd8d03fff6c","schedule":"13126714-3ea2-4364-9844-063da864e694","seasonNumber":3,"st |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import sseclient | |
def getGameDay(): | |
response = requests.get("https://www.blaseball.com/events/streamGameData", stream=True) | |
client = sseclient.SSEClient(response) | |
singleEvent = next(client.events()) | |
client.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import glob | |
import requests | |
from matplotlib import pyplot as plt | |
from itertools import accumulate | |
# Load original season 3 games | |
with open("season3games.json", "r") as f: | |
line = f.read() | |
games = json.loads(line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The proposed tables */ | |
/* multi-table */ | |
CREATE TABLE IF NOT EXISTS attr_table( | |
id SERIAL PRIMARY KEY, | |
everything /* pretend this expands to the 20 or so player fields */ | |
); | |
CREATE TABLE IF NOT EXISTS player_table( | |
id SERIAL PRIMARY KEY, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS player( | |
player_id varchar(36) PRIMARY KEY, /* Use the uuid as the primary key */ | |
captured_at timestamp /* The timestamp when this player data was fetched from the site. */ | |
/* Or better yet if we can get it the timestamp the change took effect */ | |
name text | |
deceased boolean | |
/* blaserunning */ | |
base_thirst decimal | |
continuation decimal |
NewerOlder