Skip to content

Instantly share code, notes, and snippets.

View citrusui's full-sized avatar
📚
Resist fascism.

Avery citrusui

📚
Resist fascism.
View GitHub Profile
@citrusui
citrusui / SMBDIS.ASM
Created October 16, 2017 18:58 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@citrusui
citrusui / txt.md
Last active October 29, 2017 23:41
TextMark

This is a sample tweet that has a hidden textmark in it. Copy it & go to textmark.io to see the message!

This is a sample tweet that has a hidden textmark in it. Copy it & go to textmark.io to see the message!

# MOTD
function echo_color() {
local color="$1"
printf "${color}$2\033[0m\n"
}
echo_color "\033[0;90m" "c-f Move forward"
echo_color "\033[0;90m" "c-b Move backward"
echo_color "\033[0;90m" "c-p Move up"
echo_color "\033[0;90m" "c-n Move down"
echo_color "\033[0;90m" "c-a Jump to beginning of line"
@citrusui
citrusui / imageHandler.js
Created January 27, 2018 16:12
Handling Images in JavaScript
function imageHandler(action, image, callback) {
switch (action) {
case 'fallback':
if (image.hasAttribute('data-fallback')) {
image.style.backgroundColor = image.getAttribute('data-fallback');
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Side A
Jaylib - The Heist
Suicide Year - Interest
SLUGABED - Read Buds
Onra - My Comet
Gucci Mane - I'm The Shit (Schlomo Remix)
Atmosphere - @
Fatima Al Qadiri - Ghost Raid
BADBADNOTGOOD - Confessions
function Note(e) {
this.coord = e
}
function Interval(e) {
this.coord = e
}
function add_addsubtract_func(e) {
return e.add = function(e) {
@citrusui
citrusui / NewCoolWav.Apex.TXT.md
Created March 18, 2018 19:36
PPQ 7.192 40 FL OZ.

I was walking by the beach, wondering what had become of my life. The seaside breeze let on for what seemed an eternity. In that moment I was alone with my own thoughts. This moment would last forever.

It had been quite a while since I was this happy. The simple things in life. Outside. Back to before I was given technology, my mind was at ease. Why can't it be like that again?

Before I knew it, the horizon fell half-past dusk. A shame it had to end this way. I hope they will remember me the best they can.

/*
Traverse through all the Text Nodes in a page and force them to display hidden characters
Sources:
Hacker news: https://news.ycombinator.com/item?id=16749422
user: tim333's js fiddle https://jsfiddle.net/tim333/np874wae/13/
medium post: https://medium.com/@umpox/be-careful-what-you-copy-invisibly-inserting-usernames-into-text-with-zero-width-characters-18b4e6f17b66
TODO:
@citrusui
citrusui / bios.txt
Last active June 11, 2018 21:46 — forked from lunasorcery/im-gay.txt
Compressed sprite data for the "I'M GAY" gba_bios.bin mod.
24 40 03 00 0F 00 40 01 01 00 01 42 42 43 43 C4
44 05 C4 04 C4 0F C4 02 0A 03 C3 01 0E 0C 08 0D
07 09 06 0B AA AB 48 75 EB B8 9C AA 0F FD 85 FA
4F 57 17 E9 79 E7 49 7C 5F 67 FD 47 FE 9C EE 24
FD ED 5F 46 94 57 7C 66 49 0B 40 84 0F AB 2B FA
57 67 24 DC A1 9F EC FF 2A 3E 54 F1 AD AB 52 C5
BE F2 75 91 82 81 2B D6 D6 8B 80 65 76 F2 3F EC
61 FF 1F 75 59 59 75 FC A2 24 D7 D6 0A 65 3C 11
E3 B3 66 A4 F9 5F 8E FF F9 BA FA 7F 10 A7 92 73
6E 39 4C 21 7F 9C 7F C4 FF AD FC B8 33 AE EE E2