Skip to content

Instantly share code, notes, and snippets.

View djames-bloom's full-sized avatar
🌱
Bloomin'

Dan djames-bloom

🌱
Bloomin'
  • Bloom Money
  • UK
View GitHub Profile
package vmath
type Vector3 struct {
X, Y, Z float64
}
func NewVector3(x, y, z float64) Vector3 {
return Vector3{x, y, z}
}
@djames-bloom
djames-bloom / terminal.go
Created February 12, 2023 13:24
QEmu terminal writer
package terminal
import (
"unsafe"
)
const (
ASCIIBlank = 32
VMax = 25
HMax = 80
@djames-bloom
djames-bloom / hateos_example.md
Last active December 14, 2022 22:02
Example HATEOS blog hierarchical structure
{
    "organization": "Acme Corportation",
    "department": "Engineering",
    "links": [
        {
            "rel": "blog",
            "href": "https://acme.co/blogs/engineering",
            "type": "GET"
        },
### Keybase proof
I hereby claim:
* I am djames-bloom on github.
* I am danjames (https://keybase.io/danjames) on keybase.
* I have a public key ASCMeBB3Ka0qsAsl0txvxTyQ4q1zLf_V3hR8DMyPepEfdQo
To claim this, I am signing this object:
@djames-bloom
djames-bloom / bloom_flt.go
Created July 15, 2022 20:41
Bloom Fillter Utils
package util
// Ref - http://www.isthe.com/chongo/tech/comp/fnv/
const (
FNVOffsetBasis64 = uint64(14695981039346656037)
FNVPrime64 = uint64((1 << 40) + 435)
FNVMask64 = uint64(^uint64(0) >> 1)
Bits = 64
)