Skip to content

Instantly share code, notes, and snippets.

View orbit-loona's full-sized avatar
🏳️‍⚧️
Windows 10 has great Unicode support /s

An Orbit orbit-loona

🏳️‍⚧️
Windows 10 has great Unicode support /s
View GitHub Profile
@orbit-loona
orbit-loona / test4.js
Created March 4, 2022 14:50
bugged code
elements.test2_s_1 = {
color: "#0000FF",
behavior: behaviors.POWDER,
density: 718.3,
temp: 24,
tempHigh: 24,
stateHigh: ["test2_s_1", "test2_s_2", "test2_l", "test2_g"],
}
elements.test2_s_2 = {
@orbit-loona
orbit-loona / tusidan_numbers.js
Created March 27, 2023 20:03
Tusidan number converter (digits)
//Why does this exist
/*Floating point warning: This is subject to the limitations of the IEEE 754
double-precision binary floating-point type JavaScript uses. This can lead
to precision loss. If you are converting big numbers with lots of decimals
(like the number 1,000,000,000,000.39930209809), this loss can be severe.*/
//from https://stackoverflow.com/questions/6259515/how-can-i-split-a-string-into-segments-of-n-characters
//modified and more modified
function splitString(str,chars) {
var chunks = [];
@orbit-loona
orbit-loona / mp3.html as a bookmarklet
Created May 5, 2023 15:02
a one-line javascript atrocity that replaces a loaded page with the entire https://orbit-loona.github.io/mp3.html page
document.head.textContent = ''; document.body.textContent = ''; document.head.innerHTML = `<meta property="og:site_name" content="orbit-loona.github.io" />\n<meta property="og:type" content="website" />\n<meta property="og:title" content="ersatz mp3 player" />\n<meta property="og:url" content="https://orbit-loona.github.io/mp3.html" />\n<meta property="og:description" content="why" />\n<meta property="og:locale" content="en_US" />\n<meta property="og:image" content="https://orbit-loona.github.io/bin/why.png" />\n<meta property="og:image:width" content="133" />\n<meta property="og:image:height" content="87" />\n<meta property="og:image:alt" content="why" />\n<meta name="twitter:image:src" content="https://orbit-loona.github.io/bin/why.png" />\n<meta name="twitter:title" content="ersatz mp3 player" />\n<meta name="twitter:description" content="why" />\n\n<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">\n<meta name="format-detection" content="telephone=no">\n<!--<meta name="viewport" content
@orbit-loona
orbit-loona / mp3.html as a bookmarklet.js
Last active May 5, 2023 15:05
a one-line javascript atrocity that replaces a loaded page with the entire https://orbit-loona.github.io/mp3.html page (for when you lose wi-fi but you can replace an already-loaded site)
document.head.textContent = ''; document.body.textContent = ''; document.head.innerHTML = `<meta property="og:site_name" content="orbit-loona.github.io" />\n<meta property="og:type" content="website" />\n<meta property="og:title" content="ersatz mp3 player" />\n<meta property="og:url" content="https://orbit-loona.github.io/mp3.html" />\n<meta property="og:description" content="why" />\n<meta property="og:locale" content="en_US" />\n<meta property="og:image" content="https://orbit-loona.github.io/bin/why.png" />\n<meta property="og:image:width" content="133" />\n<meta property="og:image:height" content="87" />\n<meta property="og:image:alt" content="why" />\n<meta name="twitter:image:src" content="https://orbit-loona.github.io/bin/why.png" />\n<meta name="twitter:title" content="ersatz mp3 player" />\n<meta name="twitter:description" content="why" />\n\n<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">\n<meta name="format-detection" content="telephone=no">\n<!--<meta name="viewport" content