Skip to content

Instantly share code, notes, and snippets.

View bananasmoothii's full-sized avatar
💭
Eating maths

Bananasmoothii bananasmoothii

💭
Eating maths
View GitHub Profile
@bananasmoothii
bananasmoothii / flatten-array.js
Last active February 22, 2021 23:08 — forked from Integralist/flatten-array.js
Array flatten function written in ES6 syntax
function flat(array, depth = 1) {
let result = [];
if (depth !== 1) {
result = array;
for (let i = 0; i < depth; i++) {
result = flat(result);
}
return result;
}
for (let element of array) {
@bananasmoothii
bananasmoothii / download_bing.sh
Last active April 26, 2021 11:32
Download the daily bing background and set it as Kubuntu's sddm background image
#!/bin/bash
# configuration:
xmlProvider="http://bing.com"
xmlLink="/HPImageArchive.aspx?format=xml&idx=0&n=1"
xmlImageTag="url"
xmlDescTag="headline"
xmlDesc2Tag="copyright"
downloadTo="/usr/share/sddm/themes/breeze/bing.jpg"
descSize=50
@bananasmoothii
bananasmoothii / Fix-broom-quest-hogwarts-legacy.md
Last active January 6, 2025 18:05
Hogwarts Legacy fix for broom quest

Fix for Spintwitches shop bug (before update 4) in Hogwarts Legacy

So, there is this bug that prevents people from talking again to Albie Weekes when quitting the game during the first talk. Fortunately, this bug seems to be resolved since update 4. But for people who couldn't get their hands on it (like me), or who still have that bug, here is the result of my two days of "research" in Hogwarts Legacy's save files.

This resets the broom class with professor Kogawa.

This works on the base game (with no updates), and may work on update 1, 2 and 3, but it doesn't work on update 4 and after because the save format changed.

Prerequisites

@bananasmoothii
bananasmoothii / superpowered-cost.md
Created January 6, 2025 18:02
How much does the Superpowered audio sdk cost ?

So, the Superpowered Library seems great and all but they won't put a price tag on their website and want you to schedule a meeting instead.

In order to save everyone's time, here is the price of a license for an Android and iOS app: $10,000 per year.

  • $6,000 per year for one platform
  • $4,000 per year for each additional platform.