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 = [];
@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 / random-wikia-trivia.js
Last active August 2, 2020 23:15
Wikia trivia on anything! Just go to your favourite wiki and run this JavaScript code to get free trivia!
var what = "/Special:Random";
$.get(what).done(function(res) {
try {
res = (new DOMParser()).parseFromString(res, "text/html");
window.res = res;
what = res.querySelector("#WikiaPageHeader .header-title").textContent.trim();

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 / 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 / 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