Skip to content

Instantly share code, notes, and snippets.

@cfogrady
cfogrady / Secification.md
Last active May 11, 2023 08:08
VB DIM Format

Basic Layout

DIM Card images all seem to be 4MB in size with a bitwise NOT applied to the entire image. Data all appears to be little endian byte format with the vast majority being 16-bit unsigned integers. The only exception is a small amount of text at the beginning of the header section and sprite section.

  • 0x10 - DIM Metadata
  • 0x10000 - Locked VB Id (0s on fresh DIM) (doesn't seem to have a compliment, probably excluded from checksum)
  • 0x11000 - 2nd Locked Digivice-V Id (0s on fresh DIM)
  • 0x12000 - 1st Locked Digivice-V Id (0s on fresh DIM)
  • 0x13000 - Compliment to cancel out id at 0x11000
  • 0x14000 - Compliment to cancel out id at 0x12000
  • 0x30000 - Stats
  • 0x40000 - Evolution Requirements
@ericnormand
ericnormand / 00_script.clj
Last active January 6, 2024 07:13
Boilerplate for running Clojure as a shebang script
#!/bin/sh
#_(
#_DEPS is same format as deps.edn. Multiline is okay.
DEPS='
{:deps {clj-time {:mvn/version "0.14.2"}}}
'
#_You can put other options here
OPTS='
@athos
athos / deps.edn
Last active June 21, 2023 00:15
Try on your terminal `clojure -Sdeps '{:deps {hello-clojure/hello-clojure {:git/url "https://gist.github.com/athos/b68b15b08efedffaf14d8c020b125202" :git/sha "099bdf7d565b2c35c1df601abf58514cc5276237"}}}' -M -m hello-clojure`
{:paths ["."]
:deps {clansi/clansi {:mvn/version "1.0.0"}}}
@sgrove
sgrove / learn_gamma.cljs
Last active August 29, 2015 14:21
Compare "Learn WebGL Lesson 1" with "Learn Gamma Lesson 1"
;; Gamma (shader-generation): https://github.com/kovasb/gamma
;; Gamma Driver (WebGL resource management, aka "Om for WebGL"): https://github.com/kovasb/gamma-driver
;; Gamma examples: https://github.com/kovasb/gamma-examples
(ns gampg.learn-gamma.lesson-01
(:require [clojure.string :as s]
[gamma.api :as g]
[gamma.program :as p]
[gamma.tools :as gt]
[gamma-driver.drivers.basic :as driver]