Skip to content

Instantly share code, notes, and snippets.

********************************************************************************
* CD40106B.cir
* 2.0
* 2019-11-12 00:00:00
* Texas Instruments Incorporated.
* Standard Logic, SLHR
* 12500 TI Blvd
* Dallas, TX -75243
*
* Revision History:
nix-build . -A package
this derivation will be built:
/nix/store/9vbq9k0mvzqlvmqg61126p129ywv5bci-modloader64-2.0.37.drv
building '/nix/store/9vbq9k0mvzqlvmqg61126p129ywv5bci-modloader64-2.0.37.drv'...
unpacking sources
patching sources
configuring
no configure script, doing nothing
building
installing

(fvtt-let ([me game.user.name] [users `(game.users.filter (lambda (u) (!= u.name ,me)))] (usernames (–map (alist-get ‘name it) users))) (message “Other users: %s” (s-join “, ” usernames))) ;; => “Other users: Alice, Bob, Mary, Jane”

# this prevents nested rangers
ranger() {
    if [ -z "$RANGER_LEVEL" ]; then
        exec command ranger < $TTY > $TTY 2>&1
    else
        exit
    fi
}
@dustinlacewell
dustinlacewell / noise.nim
Created September 7, 2020 07:41
Nested noise with Nim
import math
import tables
import random
import algorithm
import csfml
import perlin
randomize()

Generalizing Styx

Motivation

Currently Styx bakes in a number of concepts and abstractions typical of “static site generators”. Some of these ideas are:

  • The main build target is a “site”
  • The main assets of the build are “pages”
  • The ideas of “layout”, “templates” and “themes” are central
clear lock
clear mod1
clear control
clear mod4
clear mod5
keycode 64 = Control_L
keycode 37 = Alt_L Meta_L
keycode 108 = Alt_R Meta_R
keycode 105 = F13
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dustinlacewell
dustinlacewell / default.nix
Created December 13, 2018 02:41
frobtads shell.nix
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "frobtabs";
src = fetchFromGitHub {
owner = "realnc";
repo = "frobtads";
rev = "5850ed918c49873d1c11550d386c2f76e9f37fab";
sha256 = "11l2v184zldaijc89ch5yj29x463xrcwh97s7n68d13f7fbj2a7f";