Skip to content

Instantly share code, notes, and snippets.

View BBC-Radio-HLS-UK.m3u
#EXTINF:-1,BBC - Radio 1
#EXTINF:-1,BBC - Radio 1Xtra
#EXTINF:-1,BBC - Radio 1Dance
#EXTINF:-1,BBC - Radio 1Relax
#EXTINF:-1,BBC - Radio 2
import bpy
import random
import math
# random seed
seed = random.randint(0, 99999);
def main():
View ArduinoEE_DMX_Example.ino
#include "DMXSerial.h"
Simple example of using the DMSSerial library in combination with EE's hardware configuration to provide 4 relay outputs that can be used to show game states.
This is using the Arduino relay board from:
void setup()
ZanderBrown /
Created Nov 6, 2017
'Microflasher', micro:bit uploader for Linux environments


DBus Server:

  • Monitors folder
  • Installed as service
  • Copies to all connected m:b

LXPanel plugin (for Raspbian):

  • Connects to server
  • Shows notifications for events as tooltips (ala lxplug-ejecter)
wojteklu /
Last active May 22, 2022
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.

General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

rbnpi /
Last active Jan 2, 2021
Tuning Sonic Pi for best performance

Tuning Sonic Pi for best performance

Several of the programs I write for Sonic Pi push it fairly close to the limit when run on a Raspberry Pi. This note gives some tips on to how to maximise the performance on that platform. Of course, if you run Sonic Pi on Mac OSX,or a Windows PC then the performance is much better on these more powerful platforms and some of the issues may not arise.

Over-clocking your Pi

By increasing the voltage applied to the Pi processor, and running it at a higher clock frequency than normal it is possible to achive significant gains in performance. The down side is that you may reduce the lifetime of your Pi. There are five levels that can be configured: None, Modest, Medium, High and Turbo. I routinely run my Raspberry Pis with Medium Overclocking and have noticed no ill effects on any of them.

If you wish to apply some over-clocking you do so by running the program raspi-config from the command line. Having logged on, from the command line before you start the gra

View Rose HTML
<!doctype html>
<meta charset="utf-8">
<title>The things I love the most </title>
<h1> The things I love the most</h1>
<h2> Singing</h2>
staltz /
Last active May 21, 2022
The introduction to Reactive Programming you've been missing
gre / easing.js
Last active May 17, 2022
Simple Easing Functions in Javascript - see
View easing.js
* Easing Functions - inspired from
* only considering the t value for the range [0, 1] => [0, 1]
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity