Skip to content

Instantly share code, notes, and snippets.

@danodic
danodic / collisions.py
Created November 22, 2023 03:50
Vector Collisions using PyGame
# This code is ugly and slow, just a reference.
# But is works (mostly)
from __future__ import annotations
from dataclasses import dataclass
from typing import Tuple
import pygame.draw
from pygame import Surface
{
"transfer": "AAAAA",
"transaction_feed": "BBBBB",
"change_name": "CCCCC"
}
@danodic
danodic / log.clj
Last active June 22, 2020 01:27
A simple log lib using mutable data in clojure
(ns dev.danodic.log
"A simple module with mutable data structures. Used to create logs grouped
by discrete elements, like files. It was meant to be used as the logging
lib for rushbeat, but at this point I'm not sure if this is being used or
not. As it relies on refs, it is probably thread safe as well (did not
test this and at this point I'm a beginner at Clojure."
(:require [clj-time.local :as time])
(:gen-class))
; Stores the log entries