Skip to content

Instantly share code, notes, and snippets.

View mrryanjohnston's full-sized avatar
😎
Set your status

Ryan Johnston mrryanjohnston

😎
Set your status
View GitHub Profile
@mrryanjohnston
mrryanjohnston / info.txt
Last active April 9, 2024 22:09
Turbo Baker 9001 - A Cookie Clicker Steam Mod
{
"Name": "Turbo Baker 9001",
"ID": "TurboBaker9001",
"Author": "ryjo",
"Description": "A mod that lets you bake any amount of cookies on demand! I made this. ryjo.",
"ModVersion": 1,
"GameVersion": 2.052,
"Date": "04/01/2024",
"Dependencies": [],
"Disabled": 0,
@mrryanjohnston
mrryanjohnston / README.md
Last active June 28, 2023 13:57
Compiling CLIPS to WASM

Compiling CLIPS to WASM

Description

I used this process to compile a WASM file for CLIPS. This allows me to run CLIPS in the browser! I use this for the Tour of CLIPS I created.

How to Use

@mrryanjohnston
mrryanjohnston / README.md
Last active August 1, 2021 17:54
CLIPS Solution: The Hunger Games - Zoo Disaster!

The Hunger Games - Zoo Disaster!

Implements the algorithm described here using CLIPS.

@mrryanjohnston
mrryanjohnston / README.md
Created May 2, 2021 17:33
CLIPS - GET and print to STDIO with curl

CLIPS - curl to STDIO

Usage

(curl "https://ryjo.codes")

outputs to STDIO (as of 05/02/2021):

@mrryanjohnston
mrryanjohnston / main.c
Created March 19, 2021 14:59
clips-redis
#include "clips.h"
#include <hiredis.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
void INThandler(int sig);
/****************************************/
/* main: Starts execution of the expert */
@mrryanjohnston
mrryanjohnston / Makefile
Last active February 19, 2021 05:27
ezpzPubSub
all: publish resubscribe server subscribe unsubscribe
publish:
gcc publish.c -lrt -o publish
resubscribe:
gcc resubscribe.c -lrt -o resubscribe
server:
gcc server.c -lpthread -lrt -o server
subscribe:
gcc subscribe.c -lrt -o subscribe
@mrryanjohnston
mrryanjohnston / Makefile
Created February 13, 2021 05:11
Learning C: pthread and mqueue
all:
gcc main.c -lpthread -lrt
body {
display: flex;
height: 100%;
margin: 0;
}
nav {
background-color: #aaa;
flex: 25%;
height: 100%;
zethus begins casting walk (1 seconds)
ryjo begins casting eat (5 seconds)
zethus walks forward. (cooldown 1 seconds)
zethus moves from (0, 0) to (0, 1)
zethus cooled down 1 seconds after performing walk and will now decide what to do next...
zethus begins casting breath (1 seconds)
zethus breaths. (cooldown 1 seconds)
zethus's hp is currently 95/100
zethus's hp goes up by 3!
zethus cooled down 1 seconds after performing breath and will now decide what to do next...
Character zethus begins casting walk (1 seconds)
Character zach begins casting breath (1 seconds)
Character ryjo begins casting breath (1 seconds)
Character ryjo breaths. (cooldown 1 seconds)
Character ryjo's hp is currently 85/100
Character ryjo's hp goes up by 3!
Character zach breaths. (cooldown 1 seconds)
Character zach's hp is currently 90/100
Character zach's hp goes up by 3!
Character zethus walks forward. (cooldown 1 seconds)