Skip to content

Instantly share code, notes, and snippets.

View dselman's full-sized avatar

Dan Selman dselman

View GitHub Profile
@dselman
dselman / animals.json
Created March 19, 2024 21:49
Zig: Heterogenous array JSON serialisation
{
"animals" : [
{
"class" : "Cat",
"name" : "Tabby"
},
{
"class" : "Cat",
"name" : "Tiddles",
"ferocity" : 10
@dselman
dselman / ev.json
Last active October 20, 2022 21:31
{
"gasMpg" : 36,
"dieselMpg" : 43,
"priceUnleaded" : 1.609,
"priceDiesel" : 1.8076,
"milesPerKwh" : 4.5,
"cappedElectricityPriceGbpPerKWH" : 0.32,
"vehicles" : [
{
"name" : "Fiat 500 Electric",
@dselman
dselman / contributors.md
Last active March 4, 2020 15:44
Accord Project Contributors
@dselman
dselman / test.js
Created April 4, 2019 10:49
Hello World
// this is a test JS file
const foo = 10;
function helloworld(name) {
return 'Hello ' + name;
}