devtools.inspector.showAllAnonymousContent
XMLHttpRequest
simply doesn’t cut it anymoreSo Promise
s. huh. They’re not very different. I wanna write the flow of them.
Promises are the sequel to callbacks. Callbacks don’t really have a set Result/Error return thing like… rust i guess, so Here Comes Promises. Also Callbacks can cause indentation hell.
Okay wait, this detail clears a lot up: to make a promise, you do this:
let prommy = new Promise((resolve, reject) => {
let willSucceed = Math.random() > 0.5;
if (willSucceed) resolve("o.k.");
else reject("sorry");
});
prommy
.then( r => console.log("oops, success") )
.catch( r => console.log("oops, failure") );
So you see how it calls those parameters, to resolve
/reject
things? Those are hooked up to the then
/catch
stuff. Makes sense!
teams.csv
Lists all the currently-discovered teams. Data initially taken from the Blaseball Wiki, and now it’s formatted from SIBR’s excellent Blaseball API.
Data | Description | Example |
---|---|---|
Emoji | The Emoji representing the team. | "🔥" |
Color | The hexadecimal color representing the team. Any CSS color value is fine by me, tbh. | "#8c2a3e" |
AltColor | An optional alternate Color for better visibility. (If not present, Color will be used.) | ` ` OR "#d13757" |
Place | Where the team is from. If not empty, a space will appear between it and the team’s name when displayed. | ` ` OR "Chicago" |
Name | The team’s name. If both Place and this are empty, the team will display as team . |
"Firefighters" |
Slogan | The team’s slogan. They don’t usually have punctuation, and they should be displayed with quotes surrounding the phrase. | "We are from Chicago" |
Arcanum | The team’s assigned card. If this is 0 , it will be interpreted as Fool. |
14 |
Emoji,Color,AltColor,Place,Name,Slogan,Arcanum
"❓",#999999,,,Null Team,,
"🔥",#8c2a3e,#d13757,Chicago,Firefighters,"We are from Chicago",14