Skip to content

Instantly share code, notes, and snippets.

View stuin's full-sized avatar

Stuart Irwin stuin

View GitHub Profile
@stuin
stuin / vrchat-dbus-osc.py
Created November 4, 2024 01:43
Script to send song names from Spotify and Firefox/Youtube to Vrchat, as well as passing pause/play to the correct program
#!/usr/bin/env python3
import math
import os
import time
#VRChat comms
from pythonosc import udp_client
vrcInPort = 9000
@stuin
stuin / hello.bf
Created November 24, 2023 03:41
Brainfuck Hello World, using 8-bit scrolling printer
++++++++++[<+++<+>>>+>++<<-]<<++++>+<.+++...>.>.+....-<.>.+.->.>..<<<.>.<.<...>.>.
<.>+.<.>.<.>->---[<.>-]<<.<...>.>++[>.+....-<<.>-].>>+....<<<.>.<.>++++...<.
//^^ Full program ^^
//Planned output
# # ##### # # ##### # # # ##### ### # ####
# # # # # # # # # # # # # # # # #
##### ##### # # # # # # # # # ### # # #
# # # # # # # # # # # # # # # # #
# # ##### ##### ##### ##### ##### ##### # # ##### ####
@stuin
stuin / creeper.bf
Last active November 24, 2023 03:42
Brainfuck Creeper Face, using 8-bit scrolling printer
++++[>++++++[>++>++>+>+<<<<-]<-]>++++++[>+++++++++>++>++<<<-].>..>>>.<<..>.>>.
//^^ Full program ^^
//Output display and numbers
## ## 102
## ## 102
## 24f
#### 60
#### 60
# # 36
@stuin
stuin / bf.be
Created March 26, 2020 02:02
Brainfuck interpreter in Befunge
v123456789 123456789 123456789 1234567890 123456789
#
++++++++[>++++[>++>+++>+++>+<<<<-]>+>->+>>+[<]<-]>>.>>---.+++++++..+++.>.<<-.>.+++.------.--------.>+.>++.@
0 > : 0 \1p v
>1 | -+99: +1 <
>003pv
v$ < > :2g v
>>\: :2g " "- #^_ ~ v
v " " \+1 p2\ p84: <
^ < < < <