Skip to content

Instantly share code, notes, and snippets.

View sundbry's full-sized avatar
lightning before the thunder

Ryan R Sundberg sundbry

lightning before the thunder
View GitHub Profile
@sundbry
sundbry / accounting_ledger.sql
Last active June 19, 2024 18:25 — forked from NYKevin/accounting.sql
Basic double-entry bookkeeping system, for PostgreSQL.
-- Defines a schema for a multi-tenant, multi-currency, double-entry accounting ledger.
-- Trigger design derived from the gist discussion at:
-- https://gist.github.com/NYKevin/9433376
-- Data model inspired by:
-- https://medium.com/@RobertKhou/double-entry-accounting-in-a-relational-database-2b7838a5d7f8
-- https://developer.squareup.com/blog/books-an-immutable-double-entry-accounting-database-service/
BEGIN;
@sundbry
sundbry / cljs-metro-transformer.js
Last active February 1, 2019 06:12 — forked from austinbirch/cljs-metro-transformer.js
Transform compiled Clojurescript code for React Native/Metro (Updated for RN 0.58)
/**
* Copyright (c) 2015-present, Facebook, Inc.
* Copyright (c) 2018 Arctype Corp.
*
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of the facebook/react source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*