Skip to content

Instantly share code, notes, and snippets.

View Yogsther's full-sized avatar
🌠

Olle Kaiser Yogsther

🌠
View GitHub Profile
@Yogsther
Yogsther / hbomax_ultrawide.json
Created January 25, 2022 20:42
21:9 support for HBO MAX (Ultrawide aspect ratio)
{"userCSSoptions":{"theme":"default","font":"font%3A%2016px%2F20px%20monospace","width":"400","height":"300","dock":"right","opacity":"100"},"userCSSstyles":[{"site":"play.hbomax.com","styles":"video{\n height: calc(100vh * 1.238) !important;\n top: calc(-100vh * 0.238/2) !important;\n}","toggle":1}]}
let list = [{
"name": "MARIO",
"codeName": "mario",
"id": "01",
"full": "https://www.smashbros.com/assets_v2/img/fighter/mario/main.png",
"thumb": "https://www.smashbros.com/assets_v2/img/fighter/thumb_h/mario.png",
"icon": "https://www.smashbros.com/assets_v2/img/fighter/mario/mark.svg",
"description": "Cappy, Wedding and Builder outfits added"
}, {
@Yogsther
Yogsther / array-matrix-get-functions.js
Last active March 1, 2018 22:05
Get index from coordinates, or vise versa with this simple trick.
let matrix = new Array(width * height);
function coordinatesToIndex(x, y) {
return x + (width * y);
}
function indexToCoordinates(index) {
let x = index % width;
let y = (index - x) / width;
return { x: x, y: y };