Skip to content

Instantly share code, notes, and snippets.

View tdolsen's full-sized avatar

Torkild Dyvik Olsen tdolsen

  • Oslo, Norway
View GitHub Profile
@tdolsen
tdolsen / README.md
Last active April 30, 2023 02:49
Implementation of Closure Table hierarchy in EdgeDB.

EdgeDB Closure Table

A barebone implementation of hierarchical object structures using EdgeDB.

Very rudimentary and only provisionally tested. Has no indexes yet, doesn't use links, and probably other inefficiencies.

Use at your own peril.

@tdolsen
tdolsen / README.md
Last active April 1, 2023 03:06
EdgeDB custom scalars

EdgeDB custom scalars

A small collection of custom scalars for EdgeDB, ensuring valid values going into the database.

@tdolsen
tdolsen / Collection.ts
Last active December 13, 2016 19:05
A mini CMS - yaml/markdown hybrid flat file mess.
import fs = require("fs-extra");
import glob = require("glob");
import readline = require("readline");
import path = require("path");
export type Header = { key: string, value: string };
export type Order = { [header: string]: "ASC"|"DESC" };
export interface File {
file: string;