Skip to content

Instantly share code, notes, and snippets.

View georgebearden's full-sized avatar

George Bearden georgebearden

View GitHub Profile
@ajmazurie
ajmazurie / Makefile
Last active January 16, 2020 19:35
Generic Makefile used for my Python projects
PROJECT_NAME := $(shell python setup.py --name)
PROJECT_VERSION := $(shell python setup.py --version)
SHELL := /bin/bash
BOLD := \033[1m
DIM := \033[2m
RESET := \033[0m
.PHONY: all
@dsherret
dsherret / Using.ts
Last active November 28, 2025 12:54
Typescript Disposable (using statement)
// NOTE: This is now rolled up in a package and supports more scenarios: https://github.com/dsherret/using-statement
interface IDisposable {
dispose();
}
function using<T extends IDisposable>(resource: T, func: (resource: T) => void) {
try {
func(resource);
} finally {
@rbirkby
rbirkby / ReactiveExtensionsNotes.md
Last active December 2, 2021 14:03
Reactive Extensions notes