Skip to content

Instantly share code, notes, and snippets.

View jdnier's full-sized avatar

David Niergarth jdnier

View GitHub Profile
import tkinter as tk
from tkinter import *
from tkinter import messagebox, simpledialog, filedialog, StringVar, ttk
import os
import sys, platform, traceback
import time
@elfsternberg
elfsternberg / derivatives.py
Last active March 19, 2018 03:02
Python parsing with derivatives.
#!/usr/bin/env python
# This file implements Brzozowski's parsing-with-derivatives (see:
# https://arxiv.org/abs/1604.04695) with fairly simple and
# straightforward Python code. This implementation is naive and
# subject to exponential memory growth in the worst case; in practice,
# average complexity is closer to linear. This version recalculates
# derivatives every time they are needed; memoization, the first and
# most obvious optimization, is not implemented.
#
@russweas
russweas / mixins.styl
Last active December 21, 2018 06:26
Stylus BEM mixins
// Mixins.styl
has($name)
/&__{$name}
{block}
variant($name)
/&--{$name}
{block}
@w0ng
w0ng / .Xresources-hybrid
Last active August 22, 2023 14:05
Terminal colourscheme for use in hybrid.vim
! Hybrid Terminal Colours. Uses the palette from Tomorrow-Night:
! https://github.com/chriskempson/tomorrow-theme/blob/master/vim/colors/Tomorrow-Night.vim
! vim: ft=xdefaults
*background: #1D1F21
*foreground: #C5C8C6
! black
*color0: #282A2E
*color8: #373B41
! red