Skip to content

Instantly share code, notes, and snippets.

@lukaslaobeyer
lukaslaobeyer / keybase.md
Created January 30, 2017 04:46
Keybase proof

Keybase proof

I hereby claim:

  • I am lukaslaobeyer on github.
  • I am llb (https://keybase.io/llb) on keybase.
  • I have a public key whose fingerprint is C75C A1F8 C2E8 BCBF A206 5EE7 5E13 D361 42F2 5A99

To claim this, I am signing this object:

@lukaslaobeyer
lukaslaobeyer / render.py
Last active June 17, 2017 16:30
the simplest static site generator
#!/usr/bin/python3
import os
import sys
import pathlib
import shutil
from jinja2 import Environment, FileSystemLoader, select_autoescape
TEMPLATE_DIRS = ['src/templates']
TEMPLATE_EXTS = ['html', 'jinja2', 'tmpl']
@lukaslaobeyer
lukaslaobeyer / builder.sh
Last active June 27, 2017 19:44
Nix expression for building Xilinx Vivado 2017.2
source $stdenv/setup
echo "unpacking $src..."
mkdir extracted
tar xzf $src -C extracted --strip-components=1
echo "running installer..."
cat <<EOF > install_config.txt
Edition=Vivado HL WebPACK
import networkx as nx
import subprocess
G = nx.DiGraph()
lists = []
def from_blanche(name):
cmd = ['blanche', name, '-l']
out = subprocess.check_output(cmd).decode('ascii')
@lukaslaobeyer
lukaslaobeyer / shell.nix
Created February 12, 2020 05:00
Sketch Synthesizer Nix Expressions
with import <nixpkgs> {};
let
sketch-backend = callPackage ./sketch-backend.nix {};
sketch-frontend = callPackage ./sketch-frontend.nix { sketch-backend = sketch-backend; };
in
mkShell {
buildInputs = [ sketch-backend sketch-frontend ];
}