Skip to content

Instantly share code, notes, and snippets.

@fitzterra
fitzterra / README.md
Last active July 13, 2018 05:51
See history of a sepcific change (identified via regex) in a file.

This script helps you to answers questions like:

How did this variable in this file come to have the value it has now?

Or just to see how a certain line became what it is now in a file. This is helpful when working on code from others and it is not clear why a certain "something" is as it is in a file.

See the script for more details.

@fitzterra
fitzterra / README.md
Last active July 6, 2018 05:36
Python Daemoning

Python Daemoning

Intro

Very basic daemonization functionality for python processes.

This code is heavily based on the ActiveState recipy by Chad J. Schroeder available here:

@fitzterra
fitzterra / README.md
Last active December 7, 2022 22:18
Arduino lib to support the << streaming operator on Streams

Arduino Streaming Library

I found this gem by Mikal Hart somewhere on the interwebs but can not now remember where :-(

This library adds support for the C++ "<<" operator on any class derived from the arduino Stream class. Most notably this is the Serial functionality, but any other library extending Stream that normally uses the clunky print() and println() functions can use this like:

@fitzterra
fitzterra / TomCoetser_CV.md
Last active September 15, 2025 06:10
Resume/CV of Tom Coetser

Tom Coetser

Software Engineer, Maker and Tinkerer


Table of Content

  1. Introduction
@fitzterra
fitzterra / RepetierGCodes.md
Last active January 27, 2025 17:03
GCodes and MCodes for Repetier Firmware

Repetier Firmware G/MCodes

Reason for this gist and notes about it:

  • This is a prettified version of the [Repetier-Firmware] for AVR supported GCodes and MCodes as extracted from [Repetier.ino] in the repo.
  • The labels makes it easier for me to get a feel for the group a specific command belongs to, and makes it easy to find commands related to some specific task. This will hopefully make it a bit easier for me to get familiar with the command and possibilities.
@fitzterra
fitzterra / ldr.py
Created November 13, 2016 02:57 — forked from electronut/ldr.py
Display analog data from Arduino using Python (matplotlib animation)
"""
ldr.py
Display analog data from Arduino using Python (matplotlib)
Author: Mahesh Venkitachalam
Website: electronut.in
"""
import sys, serial, argparse
@fitzterra
fitzterra / ballMove.py
Last active August 29, 2015 13:57
Pythonista ball moving on grid test
from scene import *
from random import randrange
from mazy import Maze
class MyScene (Scene):
# Class vars until we find a better place for them
gridStroke = (1.00, 0.50, 0.00)
@fitzterra
fitzterra / mazy.py
Created March 11, 2014 18:14
Maze Generator
"""
Maze Generator.
Based on discussion here:
http://www.mazeworks.com/mazegen/mazetut/index.htm
"""
from random import randrange, choice