Skip to content

Instantly share code, notes, and snippets.

View AutoRecursive's full-sized avatar
🐪
I think you'll dream of a camel

Mr. Fisher AutoRecursive

🐪
I think you'll dream of a camel
View GitHub Profile
@AutoRecursive
AutoRecursive / game_of_life.clj
Created March 20, 2024 05:18
Game of life in clojure
;; Game of life generated by Claude3-Opus
(ns game-of-life.core
(:require [clojure.string :as str])
(:gen-class))
(def rows 50)
(def cols 50)
(def steps 100)
(defn create-board []
@AutoRecursive
AutoRecursive / interactive_agent.py
Last active May 30, 2024 07:58
Interaction and Estimation
import numpy as np
class Agent:
longitudinal_buffer = 2.
a_pass = 0.1
def __init__(self, agent_id, state, yield_intention=0.5, cooperative=True):
self.state = state.astype(float)
self.yield_intention = yield_intention
@AutoRecursive
AutoRecursive / taichi_cem_bicycle.py
Last active May 30, 2024 07:58
A simple CEM Trajecoty Optimizer based on taichi
import taichi as ti
import numpy as np
import time
from matplotlib import pyplot as plt
from tqdm import tqdm
# Set the taichi mode to "cuda" or "cpu"
ti.init(ti.cuda, random_seed=int(time.time()))
# Constants for the CEM solver
POPULATION_SIZE = 4096 # Number of samples in each iteration
ELITE_PERCENTAGE = 0.002 # Percentage of top samples to keep
@AutoRecursive
AutoRecursive / cloudSettings
Last active October 3, 2020 07:30
Sync Settings
{"lastUpload":"2020-10-03T07:30:27.867Z","extensionVersion":"v3.4.3"}