Skip to content

Instantly share code, notes, and snippets.

View 12Me21's full-sized avatar
💭
mm..

12 12Me21

💭
mm..
  • ‭​ ⇠ check out my badges
  • X @lOgoUt
View GitHub Profile
@joepie91
joepie91 / es-modules-are-terrible-actually.md
Last active July 28, 2024 01:32
ES Modules are terrible, actually

ES Modules are terrible, actually

This post was adapted from an earlier Twitter thread.

It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.

It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)

And then there's Rollup, which apparently requires ESM to be u

@Treeki
Treeki / TurnipPrices.cpp
Last active July 8, 2024 02:08
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@mouse-reeve
mouse-reeve / fizzbuzz.py
Last active April 22, 2022 06:33
Fizzbuzz via answers.com
''' we're solving fizzbuzz with a little help from the web '''
from html.parser import HTMLParser
from urllib.request import Request, urlopen
import re
import time
base_url = 'https://www.answers.com/Q/'
tag_name = 'div'
class_name = 'answer-body'
delimiter = '_'
@lynn
lynn / ji.py
Last active February 21, 2024 11:46
play just-intonation chord progressions in your terminal
#!/usr/bin/env python
#
# python3.8 ji.py --help
# python3.8 ji.py CEGBb CE-GBbL | aplay -r44 -f S16_LE
# python3.8 ji.py CEGBb CE-GBbL | ffmpeg -f s16le -ar 44.1k -ac 1 -i - ji.mp3
"""
Play chord progressions in just intonation.
Raw PCM audio is written to stdout (signed, 16-bit, LE, mono).
@y-ack
y-ack / find-missing.ps1
Last active March 19, 2019 04:04
mssing documentation
Set-Clipboard ((((Invoke-WebRequest "updog" -Credential "junkdata").Content) -split "`n") -match "missing!" | sort)
@y-ack
y-ack / IMPORTANT.org
Last active March 11, 2019 05:53
Necessary Study For Being a Clever Youkai

Statistics

Introductory statistics at minimum. p-values, different significance tests, precision vs. accuracy, sampling and bias.

Basic Computer Skills

Keyboarding

Speed and use of keyboard shortcuts to the point that a mouse is unnecessary for 70%+ of tasks

UNIX

Understand filesystem, ability to navigate a unix shell. https://en.wikipedia.org/wiki/List_of_Unix_commands

  • ls, cd, pwd, tail, tee, strings, rm, patch, nohup, more, mkdir, man, ls, ln, kill, grep, find, fg, echo, du, diff, df, dd, date, cut, cp, chown, chmod, chgrp, cd, cat, bg, alias, sudo, umount
  • extra credit: sed/awk, emacs/vi, curl, which, mkfs, lsblk, blkid
@y-ack
y-ack / brak.PRG
Created May 8, 2018 01:04
3-character language made for bracket challenge @12Me21 @ajc2
DIM STACK0[0],STACK1[0]
DIM STACK2[0],STACK3[0]
DIM STACK4[0],STACK5[0]
DIM STACK6[0],STACK7[0]
DIM STACK8[0]
'Registers
VAR r0%, r1%, r2%, r3%, r4%, r5%, r6%
VAR r7% 'pc
VAR NUMERIC% 'special fake register for numeric literals
VAR CYCLES%
@myu314
myu314 / petitcom-sound-memo.md
Last active January 24, 2020 04:07
プチコン3号の音周りの仕様について調べたメモ

プチコン3号音周り関係メモ

プチコン3号の音周りの仕様について調べたメモです。

実機の動作を見ながら大体こんな感じかなーで書きなぐったものなので、正しさはその程度です。 動作の確認は、今のところ v3.5.2 で行っています。

間違い・質問などございましたら、twitter もしくは下の方のコメント欄にお願いします。

@y-ack
y-ack / highcompatSBS.txt
Last active October 18, 2021 13:24
Generates some kind of tree structure of an HTML document for CSS
How to read generated maps:
+-- is a branch. a branch will be a child of the parent element above it
Element details are in the format
+--name[.class][#ID][ (input type)][ :[href]][ :[target]]
element
.class
#ID
(input type)
:["href/target"]
<a class="wacky" id="mine" href="/away" thingsyoudontcareabout="t" value="900000"> would yield
@y-ack
y-ack / monster_names.asm
Last active February 21, 2017 21:06
replaced names
MonsterNames:
db "RHYDON@@@@"
db "KANGASKHAN"
db "NIDORAN♂@@"
db "CLEFAIRY@@"
db "SPEAROW@@@"
db "VOLTORB@@@"
db "NIDOKING@@"
db "SLOWBRO@@@"
db "IVYSAUR@@@"