Skip to content

Instantly share code, notes, and snippets.

View towerofnix's full-sized avatar
🏳️‍⚧️
𝄞‍ — keeping busy's more fun in good company

(quasar) nebula towerofnix

🏳️‍⚧️
𝄞‍ — keeping busy's more fun in good company
View GitHub Profile
@towerofnix
towerofnix / scratch-translate-language-map.js
Created December 15, 2023 01:07
Short list of languages that are supported by Scratch's translate extension, as listed in the English dropdown menu
// require('scratch-translate-extension-languages').menuMap.en
[
{ code: 'am', name: 'Amharic' },
{ code: 'ar', name: 'Arabic' },
{ code: 'az', name: 'Azerbaijani' },
{ code: 'eu', name: 'Basque' },
{ code: 'bg', name: 'Bulgarian' },
{ code: 'ca', name: 'Catalan' },
{ code: 'zh-cn', name: 'Chinese (Simplified)' },
{ code: 'zh-tw', name: 'Chinese (Traditional)' },
@towerofnix
towerofnix / smooth-scrolling.js
Created March 14, 2023 18:06
Definitely WIP
/* This runs after a web page loads */
const smoothScrollConfiguration = {
yVelocityFriction: 0.6,
yVelocityCap: Infinity,
yAccelerationFriction: 0.75,
yAccelerationCap: 8,
yJolt: 1.4,
yDisintegrateEdgePush: 0.35,
{
let order;
let memory;
let value;
let counter;
function reset() {
order = [];
memory = [];
value = [];

Keybase proof

I hereby claim:

  • I am towerofnix on github.
  • I am florrie (https://keybase.io/florrie) on keybase.
  • I have a public key whose fingerprint is E6D8 4BD4 1A08 8616 79B2 A3C9 D8C6 9A1F D1A3 9356

To claim this, I am signing this object:

@towerofnix
towerofnix / scratch-issue-states.md
Created August 17, 2018 03:21
How scratch-* issues work

Btw, the basic rundown of scratch-* issues - typically they are each in one of these states:

  1. Has the "needs-triage" label, meaning it is to be updated within the near future. You should probably not work on these since you don't know what'll happen with them. Needs-triage issues are usually turned into one of the other options below.
  2. Is assigned to a particular Scratch Team member within a particular milestone. Don't ever work on these since they are assigned to a particular ST member (although you can still leave comments on the issue/ST-made PR).
  3. Has the "help-wanted" label, meaning that the issue is open to virtually anybody in the world who wants to make a PR for it. You can work on this if you want. If it's a recent issue and you're fairly confident in your ability to make a PR quickly, you might want to comment "I'll work on this" to deter other people from immediately working on it (so that there's not multiple PRs, which is probably a pain to handle but doesn't happen very often). If the issu
@towerofnix
towerofnix / st-posts.md
Last active August 24, 2018 22:23
Posts in the Scratch 3.0 Beta forums that were made by the Scratch Team

ST posts in Scratch 3.0 Beta forums

I'm trying to keep this list to mostly relatively significant ones - something like "what browser are you using?" or "thanks for your ideas" won't go here.

@towerofnix
towerofnix / damage-formulas.txt
Last active July 2, 2018 19:46
Grandia III posts
I've been poking around with Grandia III's debug mode a bit, looking for damage formulas. (Formulae?) So far I've only focused on spells, and through testing, I've found this to be the general magic formula (tested on Burn!, Crackle, and Hellburner):
'''Damage = (Spell-specific base quantity) + 4.5 * (Caster's MAG) - 3.0 * (Target's RES)'''
You also have to apply the damage ratio multiplier and the general randomness modifier. The damage ratio is that "X%" you see beside the orb. It's significant in spells like Crackle and Galactic Bang, where damage is dealt to the target multiple times, increasing their chain multiplier each time. The game also has some RNG; I'm not totally sure what the rules are on this (probably something like +/- 5%), but it's worth noting, because it means the formula won't yield the exact amount of damage dealt.
The spell-specific base quantity is a value unique to each spell. Generally, if the spell's description says it has a higher power (more stars), you can expect the base qua
@towerofnix
towerofnix / scratch-comment-redactor.js
Created May 7, 2018 21:48
Anonymizes Scratch comments
// ==UserScript==
// @name Scratch Comment Redactor
// @namespace https://towerofnix.github.io
// @match *://scratch.mit.edu/*
// @grant none
// ==/UserScript==
const usersSymbol = Symbol()
const replaceText = function(el, newText) {
@towerofnix
towerofnix / _info.md
Last active July 9, 2021 19:52
Downloads a default Minecraft resource pack (1.12 april fools by default)

Minecraft Asset Downloader

Download Minecraft assets and store them as a resource pack for personal usage.

Are you a regular somewhat techno clever citizen of the internet?

After the code below (which you definitely don't need to read yourself), I've written a guide on how to use this, plus some troubleshooting tips!

Are you a smarty pants?

@towerofnix
towerofnix / guide.txt
Created March 26, 2018 21:49
Dragon Quest IX vocation trait guide
- Vocation Trait Guide -
(Pro-tip: try :set cursorline in Vim!)
Vocation | +STR & +AGI & +RES & +DFT & +CHR & +MND & +MGT & +MHP & +MMP | LAKM
Warrior | +40 . . +60 . . . . . +60 . | ****
Priest | . . . . . +180 . . . +30 | ****
Mage | . . . . . . +180 . . +30 | ****
Martial Artist | +10 . +100 . . . . . . +30 . | ****
Thief | . +60 . . +60 . . . . +20 . | ****