Skip to content

Instantly share code, notes, and snippets.

View smwhr's full-sized avatar

Ju/Smwhr smwhr

View GitHub Profile
@smwhr
smwhr / game.txt
Created April 14, 2025 17:13
flickgame
{"gameLink":"smwhr.net","activeIndex":3,"canvasses":[[3865,"0",40,"e",119,"0",42,"e",118,"0",42,"e",118,"0",42,"e",118,"0",42,"e",118,"0",5,"e",32,"0",5,"e",118,"0",5,"e",32,"0",5,"e",118,"0",5,"e",32,"0",5,"e",118,"0",5,"e",32,"0",5,"e",118,"0",5,"e",32,"0",5,"e",26,"0",12,"e",80,"0",5,"e",32,"0",5,"e",25,"0",14,"e",79,"0",5,"e",32,"0",5,"e",25,"0",15,"e",78,"0",5,"e",32,"0",5,"e",25,"0",15,"e",78,"0",5,"e",31,"0",6,"e",25,"0",16,"e",77,"0",5,"e",31,"0",6,"e",25,"0",5,"e",5,"0",6,"e",77,"0",5,"e",31,"0",5,"e",26,"0",5,"e",5,"0",6,"e",77,"0",5,"e",31,"0",5,"e",26,"0",5,"e",5,"0",6,"e",77,"0",5,"e",31,"0",5,"e",27,"0",3,"e",6,"0",6,"e",77,"0",5,"e",31,"0",5,"e",35,"0",6,"e",78,"0",5,"e",31,"0",5,"e",34,"0",7,"e",78,"0",5,"e",30,"0",6,"e",34,"0",6,"e",79,"0",5,"e",30,"0",6,"e",33,"0",6,"e",80,"0",5,"e",30,"0",5,"e",34,"0",6,"e",80,"0",5,"e",30,"0",5,"e",33,"0",6,"e",81,"0",5,"e",30,"0",5,"e",32,"0",7,"e",81,"0",5,"e",30,"0",5,"e",31,"0",7,"e",82,"0",5,"e",30,"0",5,"e",31,"0",6,"e",83,"0",5,"e",30,"0",5,"e",31,"
@smwhr
smwhr / game.txt
Created April 14, 2025 17:13
flickgame
{"gameLink":"smwhr.game","activeIndex":3,"canvasses":[[3865,"0",40,"e",119,"0",42,"e",118,"0",42,"e",118,"0",42,"e",118,"0",42,"e",118,"0",5,"e",32,"0",5,"e",118,"0",5,"e",32,"0",5,"e",118,"0",5,"e",32,"0",5,"e",118,"0",5,"e",32,"0",5,"e",118,"0",5,"e",32,"0",5,"e",26,"0",12,"e",80,"0",5,"e",32,"0",5,"e",25,"0",14,"e",79,"0",5,"e",32,"0",5,"e",25,"0",15,"e",78,"0",5,"e",32,"0",5,"e",25,"0",15,"e",78,"0",5,"e",31,"0",6,"e",25,"0",16,"e",77,"0",5,"e",31,"0",6,"e",25,"0",5,"e",5,"0",6,"e",77,"0",5,"e",31,"0",5,"e",26,"0",5,"e",5,"0",6,"e",77,"0",5,"e",31,"0",5,"e",26,"0",5,"e",5,"0",6,"e",77,"0",5,"e",31,"0",5,"e",27,"0",3,"e",6,"0",6,"e",77,"0",5,"e",31,"0",5,"e",35,"0",6,"e",78,"0",5,"e",31,"0",5,"e",34,"0",7,"e",78,"0",5,"e",30,"0",6,"e",34,"0",6,"e",79,"0",5,"e",30,"0",6,"e",33,"0",6,"e",80,"0",5,"e",30,"0",5,"e",34,"0",6,"e",80,"0",5,"e",30,"0",5,"e",33,"0",6,"e",81,"0",5,"e",30,"0",5,"e",32,"0",7,"e",81,"0",5,"e",30,"0",5,"e",31,"0",7,"e",82,"0",5,"e",30,"0",5,"e",31,"0",6,"e",83,"0",5,"e",30,"0",5,"e",31,
@smwhr
smwhr / game.txt
Created April 14, 2025 17:10
flickgame
{"gameLink":"smwhr.game","activeIndex":1,"canvasses":[[3865,"1",40,"7",119,"1",42,"7",118,"1",42,"7",118,"1",42,"7",118,"1",42,"7",118,"1",5,"7",32,"1",5,"7",118,"1",5,"7",32,"1",5,"7",118,"1",5,"7",32,"1",5,"7",118,"1",5,"7",32,"1",5,"7",118,"1",5,"7",32,"1",5,"7",26,"1",12,"7",80,"1",5,"7",32,"1",5,"7",25,"1",14,"7",79,"1",5,"7",32,"1",5,"7",25,"1",15,"7",78,"1",5,"7",32,"1",5,"7",25,"1",15,"7",78,"1",5,"7",31,"1",6,"7",25,"1",16,"7",77,"1",5,"7",31,"1",6,"7",25,"1",5,"7",5,"1",6,"7",77,"1",5,"7",31,"1",5,"7",26,"1",5,"7",5,"1",6,"7",77,"1",5,"7",31,"1",5,"7",26,"1",5,"7",5,"1",6,"7",77,"1",5,"7",31,"1",5,"7",27,"1",3,"7",6,"1",6,"7",77,"1",5,"7",31,"1",5,"7",35,"1",6,"7",78,"1",5,"7",31,"1",5,"7",34,"1",7,"7",78,"1",5,"7",30,"1",6,"7",34,"1",6,"7",79,"1",5,"7",30,"1",6,"7",33,"1",6,"7",80,"1",5,"7",30,"1",5,"7",34,"1",6,"7",80,"1",5,"7",30,"1",5,"7",33,"1",6,"7",81,"1",5,"7",30,"1",5,"7",32,"1",7,"7",81,"1",5,"7",30,"1",5,"7",31,"1",7,"7",82,"1",5,"7",30,"1",5,"7",31,"1",6,"7",83,"1",5,"7",30,"1",5,"7",31,
@smwhr
smwhr / game.txt
Created April 14, 2025 17:06
flickgame
{"gameLink":"www.flickgame.org","activeIndex":1,"canvasses":[[3865,"1",40,"7",119,"1",42,"7",118,"1",42,"7",118,"1",42,"7",118,"1",42,"7",118,"1",5,"7",32,"1",5,"7",118,"1",5,"7",32,"1",5,"7",118,"1",5,"7",32,"1",5,"7",118,"1",5,"7",32,"1",5,"7",118,"1",5,"7",32,"1",5,"7",26,"1",12,"7",80,"1",5,"7",32,"1",5,"7",25,"1",14,"7",79,"1",5,"7",32,"1",5,"7",25,"1",15,"7",78,"1",5,"7",32,"1",5,"7",25,"1",15,"7",78,"1",5,"7",31,"1",6,"7",25,"1",16,"7",77,"1",5,"7",31,"1",6,"7",25,"1",5,"7",5,"1",6,"7",77,"1",5,"7",31,"1",5,"7",26,"1",5,"7",5,"1",6,"7",77,"1",5,"7",31,"1",5,"7",26,"1",5,"7",5,"1",6,"7",77,"1",5,"7",31,"1",5,"7",27,"1",3,"7",6,"1",6,"7",77,"1",5,"7",31,"1",5,"7",35,"1",6,"7",78,"1",5,"7",31,"1",5,"7",34,"1",7,"7",78,"1",5,"7",30,"1",6,"7",34,"1",6,"7",79,"1",5,"7",30,"1",6,"7",33,"1",6,"7",80,"1",5,"7",30,"1",5,"7",34,"1",6,"7",80,"1",5,"7",30,"1",5,"7",33,"1",6,"7",81,"1",5,"7",30,"1",5,"7",32,"1",7,"7",81,"1",5,"7",30,"1",5,"7",31,"1",7,"7",82,"1",5,"7",30,"1",5,"7",31,"1",6,"7",83,"1",5,"7",30,"1",5,
@smwhr
smwhr / game.txt
Created April 14, 2025 17:06
flickgame
{"gameLink":"smwhr.game","activeIndex":1,"canvasses":[[2863,"1",8,"9",150,"1",11,"9",148,"1",13,"9",147,"1",14,"9",146,"1",14,"9",142,"1",10,"9",2,"1",6,"9",141,"1",7,"9",7,"1",5,"9",141,"1",7,"9",7,"1",5,"9",52,"1",16,"9",73,"1",7,"9",7,"1",5,"9",50,"1",25,"9",66,"1",6,"9",7,"1",6,"9",49,"1",34,"9",58,"1",5,"9",8,"1",6,"9",49,"1",40,"9",52,"1",5,"9",7,"1",6,"9",49,"1",46,"9",47,"1",6,"9",5,"1",7,"9",49,"1",6,"9",12,"1",32,"9",43,"1",8,"9",2,"1",8,"9",49,"1",6,"9",19,"1",28,"9",41,"1",16,"9",50,"1",5,"9",28,"1",21,"9",41,"1",14,"9",51,"1",5,"9",34,"1",18,"9",39,"1",12,"9",52,"1",5,"9",39,"1",15,"9",38,"1",10,"9",53,"1",5,"9",43,"1",13,"9",37,"1",7,"9",55,"1",5,"9",46,"1",11,"9",98,"1",5,"9",47,"1",12,"9",30,"1",14,"9",52,"1",5,"9",50,"1",11,"9",21,"1",27,"9",46,"1",5,"9",52,"1",10,"9",19,"1",29,"9",45,"1",5,"9",54,"1",9,"9",18,"1",29,"9",45,"1",5,"9",55,"1",9,"9",17,"1",29,"9",45,"1",5,"9",57,"1",8,"9",17,"1",13,"9",6,"1",8,"9",46,"1",5,"9",59,"1",8,"9",21,"1",7,"9",60,"1",5,"9",60,"1",8,"9",20,"1",7,"9",60,"
@smwhr
smwhr / 01_inheritance.py
Last active July 26, 2023 09:42
Julien Raconte : la composition
class Vehicle:
def drive(self):
print("Vroum Vroum")
class Bike (Vehicle):
def drive(self):
print("Swissssh")
class Car (Vehicle):
pass
-- An online type checker for the Haskell programming language (see haskell.org).
-- Fix the typo to get rid of the compilation error.
val = filter (divides 3) [1..10]
where divides n x = (x `mod` n) == 0
main = putStrLn (show val)
-- Click the button below the code editor to evaluate 'main'.
-- That was easy!
// KNOWLEDGE FUNCTIONS
VAR knowledgeState = ()
=== function learn(x) ===
// learn this fact
~ knowledgeState += x
=== function learnt(x) ===
// have you learnt this fact, or indeed a stronger one
~ return highest_state_for_set_of_state(x) >= x
@smwhr
smwhr / folded.cartdrige.json
Created September 14, 2022 12:01
Engine.lol folded
{"scene_count":1,"start_scene":{"x":"0","y":"2"},"cartridge":null,"audio":null,"audio_loop":true,"font":"default","s":[{"x":0,"y":0,"active":true,"color":"#000000","textoverlay":"\n\n\n\n\n\n\n\n end 1\n","object_count":0,"objects":[]},null,{"x":0,"y":2,"active":true,"color":"#000000","textoverlay":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n down","object_count":0,"objects":[]},null,{"x":0,"y":4,"active":true,"color":"#000000","textoverlay":"\n\n\n\n\n\n\n\n end 4\n","object_count":0,"objects":[]},{"x":1,"y":0,"active":true,"color":"#000000","textoverlay":" consequence","object_count":0,"objects":[]},{"x":1,"y":1,"active":true,"color":"#000000","textoverlay":"\n\n\n\n\n\n\nsucceed\n\n\n\n\n\n\n\n\n fail","object_count":0,"objects":[]},{"x":1,"y":2,"active":true,"color":"#000000","textoverlay":"\n\n\n\n\n\n\n\nleft right","object_count":0,"o
@smwhr
smwhr / crime-scene.ink
Last active June 17, 2022 08:19
Crime Scene from Inkle to Binksi
Crime Scene -- Script by Inkle, adapted by @smwhr for binksi#TITLE
SPAWN_AT(lamp-on-desk, lamp)
-> murder_scene
// Helper function: popping elements from lists
=== function pop(ref list)
~ temp x = LIST_MIN(list)