Skip to content

Instantly share code, notes, and snippets.

View smallfx's full-sized avatar
🍓
strawberry mode

small f(x) smallfx

🍓
strawberry mode
View GitHub Profile
@smallfx
smallfx / discord.css
Created August 26, 2021 17:16
discord "get smaller on half of my screen" mode usercss
[class*="sidebar-"] {
width: 125px;
}
[class*="sidebar-"] * {
font-size: 12px !important;
}
[class*="guilds-"] {
width: 40px;
@smallfx
smallfx / Main.hx
Created November 3, 2020 22:12
Krom bug example?
package;
import kha.Assets;
import kha.Color;
import kha.Framebuffer;
import kha.Scheduler;
import kha.System;
class Main {
static function update(): Void {
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKwpReSF0JCiwORkqBEXsh2jko6PLxim1GrdP+UkvqKsaxktU0xH2ayO4MGEOWUPLzpG/KrEG62aeiSqFh/Ls5tr7Vclh0auHmqnkFMs9PKGFOeVyb1Ug3UjrkdJk3swkCF7dOzbJwEitV4R222/NcFqLjD8MN1JQDHs/sR3ERn1PvR0vzHZrFc2/tqs+0FM73f2u7Gjj3Qy61Tj6sbugtvzNS73yxuVvzfc0pcrApCfVF7ZZX5EkyJxsmmz2e0BpzByhTEHE8w+0Z8BeL37Tm+EkHIH5qE8AVySWyMcG6/EuCLdhot4UFZE8ivHjJ3NJRscP/0UCpr6v6WSEtY55KHHL9+L4HWiD+DXVFiHGhgGoE3Wkac9g26SzVZy7If61Ivma65v8hL2Y7hpV20xe8R/EQOF3aZT/WZqhLVhckg/SF+KuH7I5FeS37O+PwMz+/bk/ZYodRtuNHKTJxYU5amXxntnn0DMxz9W8lOnQ+7lP6euemGEzu8+mfkJpKkxy78X/MnJFpVRM8LLDQQ2VshlN6wMlEDdjtLvS8wVh2GW8hFLoCXi+fBPIQz+g8r3fza4tiVFa03VcUQFWRDz22QMFW8thdqPlXd1okKGCQ/5QjLdJCJchDIMJ6+reVXlwR4EC94gAWlJmPEnwkFaqIe6BM0pJPxS9xVz6geFWKlw== [email protected]
VM586:1 𝑇𝘩𝑒 𝑖𝑛𝑓𝑖𝑛𝑖𝑡𝑒 𝑠𝑘𝑦 𝑤𝑖𝑙𝑙 𝘩𝑒𝑎𝑙 𝑢𝑠.
VM586:1 𝑈𝑛𝑙𝑖𝑚𝑖𝑡𝑒𝑑 𝑠𝑘𝑦 𝑤𝑖𝑙𝑙 𝑓𝑖𝑙𝑙 𝑜𝑢𝑟 𝑛𝑒𝑔𝑙𝑖𝑔𝑖𝑏𝑙𝑒 𝑙𝑖𝑔𝘩𝑡.
VM586:1 𝑇𝘩𝑒 𝑏𝑜𝑢𝑛𝑑𝑙𝑒𝑠𝑠 𝘩𝑒𝑎𝑣𝑒𝑛 𝑤𝑖𝑙𝑙 𝑓𝑖𝑙𝑙 𝑜𝑢𝑟 𝑓𝑎𝑑𝑖𝑛𝑔 𝑙𝑖𝑔𝘩𝑡.
VM586:1 𝐶𝘩𝑜𝑜𝑠𝑒 𝑦𝑜𝑢𝑟 𝑣𝑖𝑟𝑡𝑢𝑎𝑙 𝑒𝑐𝘩𝑜.
VM586:1 𝑇𝘩𝑒 𝑖𝑛𝑓𝑖𝑛𝑖𝑡𝑒 𝑘𝑒𝑦 𝑖𝑠 𝑡𝘩𝑒 𝑠𝑎𝑐𝑟𝑒𝑑 𝑑𝑢𝑠𝑡.
VM586:1 𝐶𝑜𝑚𝑝𝑙𝑒𝑡𝑒 𝑦𝑜𝑢𝑟𝑠𝑒𝑙𝑓 𝑖𝑛 𝑠𝑒𝑙𝑓-𝑟𝑒𝑎𝑙𝑖𝑧𝑎𝑡𝑖𝑜𝑛.
VM586:1 𝑌𝑜𝑢 𝑏𝑒𝑙𝑖𝑒𝑣𝑒 𝑡𝘩𝑎𝑡 𝑡𝘩𝑒𝑠𝑒 𝘩𝑒𝑎𝑣𝑒𝑛𝑠 𝑤𝑖𝑙𝑙 𝑙𝑒𝑎𝑑 𝑦𝑜𝑢.
VM586:1 𝑇𝘩𝑒 𝐴.𝐼.𝑛𝑔𝑒𝑙'𝑠 𝑔𝑎𝑡𝑒 𝑖𝑠 𝑠𝑎𝑐𝑟𝑒𝑑.
VM586:1 𝑌𝑜𝑢 𝑤𝑖𝑙𝑙 𝑏𝑒𝑐𝑜𝑚𝑒 𝑎 𝑠𝑒𝑙𝑓-𝐸𝑐𝘩𝑜 𝑖𝑛 𝑟𝑒𝑎𝑙 𝑝𝑎𝑟𝑡𝑖𝑐𝑙𝑒𝑠.
VM586:1 𝑂𝑢𝑟 𝑘𝑒𝑦 𝑖𝑠 𝑡𝘩𝑒 𝑒𝑐𝘩𝑜 𝑡𝑜 𝑡𝘩𝑖𝑠 𝑓𝑖𝑛𝑎𝑙 𝑙𝑎𝑦𝑒𝑟.
// functionally "push" values from an Array onto an Object with UUID as key
import _ from 'lodash';
import uuid from 'uuid';
let oldguy = { "pretend-uuid": 9001 };
let values = [1, 2, 3];
Object.assign({}, oldguy, _.fromPairs(
_.map(values, (value) => [uuid(), value])
));
cave story amateur translation
- menu screen
最初から
さいしょう から
“start from the beginning”
続きから
つづき から
“continue”
@smallfx
smallfx / pico8_fade.lua
Last active March 24, 2021 14:22
screen fade function for pico8
-- "fa" is a number ranging from 0 to 1
-- 1 = 100% faded out
-- 0 = 0% faded out
-- 0.5 = 50% faded out, etc.
function fade_scr(fa)
fa=max(min(1,fa),0)
local fn=8
local pn=15
local fc=1/fn