Skip to content

Instantly share code, notes, and snippets.

View Frescha's full-sized avatar
💭
Quote: Work work

Andreas Karfusehr Frescha

💭
Quote: Work work
View GitHub Profile
@Frescha
Frescha / GSG case
Created April 4, 2022 16:34 — forked from miek/ GSG case
Unofficial case for YARD Stick One and Ubertooth One from Great Scott Gadgets - http://greatscottgadgets.com/
@Frescha
Frescha / print_table.py
Created May 7, 2021 15:42 — forked from lonetwin/print_table.py
print out ascii tables in python using data in the form: [ ('column 0 title', 'column 1 title' ..), ('row 0, column 0 data', 'row 0, column 1 data' ...) ...]
# I needed to print out ascii tables from data in the form:
# [ ('column 0 title', 'column 1 title' ..),
# ('row 0, column 0 data', 'row 0, column 1 data' ...) ...]
#
# and surprisingly it got complicated because of variable lengths of the data.
# I googled for 'standard' ways of doing this and I found suggestions like:
# http://stackoverflow.com/questions/5909873/python-pretty-printing-ascii-tables
# ...which were a bit dated and hard to read or full scale modules like:
#
# http://pypi.python.org/pypi/texttable/
@Frescha
Frescha / check_stuff.js
Last active August 29, 2015 14:09 — forked from n8v/check_stuff.js
#!/usr/bin/env node
/* -*- js2 -*- */
/* ************************************************************* */
// Set up classes to support Range objects. Ported from
// Nagios::Plugin::Range. See named functions below.
// TODO: Modularize properly/idiomatically.
/*
* Represents a Nagios plugin range object.