Skip to content

Instantly share code, notes, and snippets.

View matozoid's full-sized avatar
🌴
On vacation

Danny van Bruggen matozoid

🌴
On vacation
View GitHub Profile
õšÌ$õšËÿôšÊúôšÇõôšÆðôšÅëôš½æôš¼áôš»Üôš¯×ôš­Òô™ûÍô™çÅô™å½ô™äºô™ã·ô™Ý´ô™Ü¯ô™Øªô™Ë¥ô™½ô™¼šô™»—ô˜Ýô˜ÜŠô˜Üサô˜Øカô—＀アô–¥ュô–＀ヲô•＀「ô”＀}ô“＀zôÿÿéûÑ＀íÿöü＀òà%ôß＀íþü＀ÿéûÕòùþ＀íüöü＀ûÖòøÿ＀íôöü＀ÿÝò÷þôô＀íýöü＀ÿº＀íóöü＀ÿéùðûÕ＀àùÿàøüçÖþ＀ÿ®＀ííöü＀º＀Jò¹＀ ò¸＀6ò¸＀)ò¶＀þñ³＀ññ§＀éñ¦＀ØñÿŸ2’%MM a flashlight＀MM a flashlight＀MM a sharp knife＀MM a heavy crowbar＀MM a ratty blanket＀MM a silver key＀MM a stack of towels＀MM a swim suit＀MM a newspaper＀MM some candy bars＀MM an old trunk＀MM an old trunkL now open ＀MM a rusty pistol＀MM a cracked lantern＀MM a leather jacket ＀MM a gas mask ＀MM a coil of rope＀MM a flight bag＀MM an open flight bag ＀MM a pair of sunglasses＀MM a pencil＀MM a rubber boot＀MM a roll of tape＀MM scissors＀MM a hammer＀MM a tool box＀MM an open tool box ＀MM a screwdriver＀MM a pair of wirecutter pliers＀MM a chisel＀MM a gold passkey＀MM a manila envelope＀MM a sweatshirt＀MM a stack of documents＀MM a desk strewn with a litter of papers＀MM a desk with the drawer hanging open＀MM a crumpled memo＀MM a film canister＀＀MM a ladder leading down fr
@matozoid
matozoid / terra_titanic.bas
Created October 24, 2022 10:58
The game "Terra Titanic"
1 printchr$(142)
2 fori=1to2e3:next:poke53270,197:fori=1to1e3:next:poke53270,200
5 z=0:sz=29:si=54272:pokesi+24,15:pokesi+5,255:pokesi+6,50:goto100
7 xy=a:ifa<16thenonagosub11,12,13,14,15,16,17,18,19,20,21,22,23,24,25:goto350
8 a=a-15:ifa<16thenonagosub26,27,28,29,30,31,32,33,34,35,36,37,38,39,40:goto350
9 a=a-15:ifa<16thenonagosub41,42,43,44,45,46,47,48,49,50,51,52,53,54,55:goto350
10 a=a-15:onagosub56,57,58,59,60,61,62:goto350
11 printj$:w=45:e=2:return
12 printj$:w=1:e=3:return
13 printj$:w=2:e=4:return
@matozoid
matozoid / Test.java
Created February 10, 2021 12:09
Minimal Java interpreter which only understands integer addition
package test;
import com.github.javaparser.StaticJavaParser;
import com.github.javaparser.ast.expr.BinaryExpr;
import com.github.javaparser.ast.expr.IntegerLiteralExpr;
import com.github.javaparser.ast.visitor.GenericVisitorAdapter;
public class Test {
public static void main(String[] args) {
@matozoid
matozoid / Bla.java
Created February 8, 2019 20:36
Getting some information with JavaParser
import com.github.javaparser.JavaParser;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.Modifier;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.FieldDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.body.VariableDeclarator;
import java.util.ArrayList;
import java.util.List;
@matozoid
matozoid / sid_frequencies.csv
Last active March 10, 2024 15:52
A table of frequencies for the Commodore 64 SID chip taken from various sources. It's a CSV, so it's machine readable! :-) :-)
number name octave note in octave frequency (base 440Hz) frequency (base 435Hz) C64 manual frequency PAL frequency NTSC frequency PAL frequency 435Hz NTSC frequency 435Hz MIDI note number
0 C 0 0 16.351597831287414 16.165784219568238 268 278 268 275 265 24
1 C# 0 1 17.323914436054505 17.12705177200843 284 295 284 292 281 25
2 D 0 2 18.354047994837977 18.14547926762391 301 313 301 309 298 26
3 D# 0 3 19.445436482630058 19.224465613509263 318 331 319 327 315 27
4 E 0 4 20.601722307054366 20.367611826292386 337 351 338 347 334 28
5 F 0 5 21.826764464562746 21.578733050192717 358 372 358 367 354 29
6 F# 0 6 23.12465141947715 22.86187128971036 379 394 379 389 375 30
7 G 0 7 24.499714748859326 24.22130889944047 401 417 402 412 397 31
8 G# 0 8 25.956543598746574 25.661582876033545 425 442 426 437 421 32