Skip to content

Instantly share code, notes, and snippets.

@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 / tgraph.py
Last active November 29, 2022 19:28
Console plotting in python. A single or multiple delimited numbers per newline.
#!/usr/bin/env python
from __future__ import division
from __future__ import print_function
#Copyright 2022 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,
@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