Skip to content

Instantly share code, notes, and snippets.

View offsetcyan's full-sized avatar

offsetcyan

View GitHub Profile
@offsetcyan
offsetcyan / flake.nix
Created November 1, 2023 02:09
Nix Flake for Python development
{
description = "Python development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
@offsetcyan
offsetcyan / simplekv.forth
Last active May 14, 2019 20:18
basic key value in effectively 8 LOC I guess
#! /usr/bin/env gforth
warnings off
\ A key value store in Forth
100 constant #buckets
create 'buckets align #buckets cells allot
'buckets #buckets erase
does> swap dup 2 mod + #buckets 2/ mod + ;
\ no it doesn't lol