Skip to content

Instantly share code, notes, and snippets.

@dgulino
dgulino / ngraph.py
Last active December 22, 2021 19:30
ncurses numerical plotter
#!/usr/bin/env python
# Copyright 2021 Drew Gulino
# #This program is free software; you can redistribute it and/or modify
# # it under the terms of the GNU General Public License as published by
# # the Free Software Foundation; either version 2 of the License, or
# # (at your option) any later version.
# #
# # This program is distributed in the hope that it will be useful,
# # but WITHOUT ANY WARRANTY; without even the implied warranty of
@dgulino
dgulino / ngraph.fs
Last active January 4, 2022 01:00
ncurses numerical plotter
#! /usr/local/bin/gforth
variable width
variable height
variable maxnum
100 maxnum !
variable num-digits
4 num-digits !
variable effective-width
variable partial-char
@dgulino
dgulino / gerrit_waybar.py
Last active June 12, 2023 19:32
waybar custom script to display open gerrit reviews
#!/usr/bin/env python3
##!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import sys
import json
import subprocess