Skip to content

Instantly share code, notes, and snippets.

View mybearworld's full-sized avatar
🐻
Either a bear or not a bear

mybearworld mybearworld

🐻
Either a bear or not a bear
View GitHub Profile
@mybearworld
mybearworld / FizzBuzz.ts
Last active May 20, 2024 07:35
The agile enterprise object-oriented encapsulated composition-based SOLID FizzBuzz program in a Microsoft-backed programming language.
class FizzBuzz {
constructor() {
const counter = new Counter();
const looper = new Looper();
const counterBoundsChecker = new CounterBoundsChecker(counter, 101);
const fizzBuzzMainLoop = new FizzBuzzMainLoop(counter);
looper.doWhile(counterBoundsChecker, fizzBuzzMainLoop);
}
}
@mybearworld
mybearworld / getStateOnScratchProjects.js
Created April 13, 2024 08:57
Get State on Scratch projects
// I don't know where this is initially from - this is just way easier to find than searching for a forum post that
// contains this :P
document.querySelector("#app")._reactRootContainer._internalRoot.current.child.stateNode.store.getState()
@mybearworld
mybearworld / scratch2-help-pages.md
Last active June 23, 2024 08:14
The pages that exist for Scratch 2 tips menu.

These pages are installed locally in .../edu.media.mit.Scratch2Editor/Local Store/en, so this list is just a list of subfolders and files in that folder.

Table of Contents