Skip to content

Instantly share code, notes, and snippets.

@zloader
zloader / mpq-character-scheme.json
Last active August 28, 2023 10:10
The MPQ game card JSON scheme
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "The MPQ game card",
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 32,
"maxLength": 36
},
### Keybase proof
I hereby claim:
* I am zloader on github.
* I am zloader (https://keybase.io/zloader) on keybase.
* I have a public key ASBi511iCW_KSjBpCt0SoqMQDPjRy74wPJPdMX-56n2DSgo
To claim this, I am signing this object:
@zloader
zloader / gist:87cfaa20835cd5c4f62eff0bb2bf8403
Created July 22, 2022 11:51
Remove characters with duplicated power color from collection
const https = require('https');
https.get(
"https://my.api.mockaroo.com/mpq-cards.json?key=a65ab360",
(r) => {
let content = ""
r.on("data", (chunk) => { content += chunk; });
r.on("end", () => {
try {
@zloader
zloader / README.md
Created October 11, 2017 18:46 — forked from clhenrick/README.md
PostgreSQL & PostGIS cheatsheet (a work in progress)