Skip to content

Instantly share code, notes, and snippets.

View mikedotalmond's full-sized avatar

Mike Almond mikedotalmond

View GitHub Profile
@brendandawes
brendandawes / tools.md
Last active November 5, 2023 22:32
[Work in Progress] Tools — a constantly expanding list of some of the tools and services I use to make things, both hardware and software. Things can only appear on this list if it's something I've personally used to make things.
@brendandawes
brendandawes / Dawesome Design Contract.md
Last active December 22, 2022 10:13
A contract for general design services.

This contract for general design sevices is a hybrid of this one on Docracy and the AIGA one also found on Docracy. I wanted something that was simple yet covered the important bits such as payment schedule, kill fee, liability, rights etc. Change the parts in square brackets to suit. I've had this checked by a lawyer but I recommend if you decide to use it you also get it looked at by a lawyer too. Never do work without a contract in place. The majority of clients are good, decent and want to create great work with you — having a solid contract in place will strengthen that relationship and provide you with protection should things go awry.

Agreement for commission of work between [Designer Name] (Designer)

and [Client Name] (Client)

on [Date]

@spikedrba
spikedrba / pmd.py
Last active August 13, 2021 17:42
RPi Motion detection with picamera python lib
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This script was originally created by by killagreg î Thu Dec 18, 2014 7:53 am
# see http://www.raspberrypi.org/forums/viewtopic.php?p=656881#p656881
# This script implements a motion capture surveillance cam for raspberry pi using picam
# and is based on the picamera python library.
# It uses the "motion vectors" magnitude of the h264 hw-encoder to detect motion activity.
//A backup of http://lists.motion-twin.com/pipermail/haxe/2009-July/027010.html
/**
* Memory Layout:
* Block size b = DATA_SIZE * (N + 2) * (M + 2)
* 1. d 0 ... b-1
* 2. d_prev b ... 2b-1
* 3. u 2b ... 3b-1
* 4. u_prev 3b ... 4b-1
* 5. v 4b ... 5b-1
* 6. v_prev 5b ... 6b-1