Skip to content

Instantly share code, notes, and snippets.

@Quantum-cross
Quantum-cross / notifyme.py
Last active Aug 29, 2015
Notifyme! extension for IPython Notebook
View notifyme.py
# notifyme.py
'''
===
3/25/2014
Notifyme! - By Robert Cross (rcross@inventati.org)
Tested on IPython 0.13.1 and current master branch as of date above.
Distributed under the GPLv3 license
Default sound recorded by JamieBlam from Freesound.org
- License: http://creativecommons.org/licenses/by/3.0/
View simplevevent
# coding: utf-8
# In[1]:
from datetime import timedelta, datetime, tzinfo
from pytz import timezone
from icalendar import Calendar, Event, Alarm
import uuid
from os import chdir
View autosnow.sh
#!/bin/bash
function handleConditions {
Y=8
W=false
SF=100
SNOWING=true
case "$1" in
"Light Snow" )
SF=100
@Quantum-cross
Quantum-cross / meegamouse.ino
Last active Sep 16, 2019
Converts PS/2 mouse to be used on Amiga!
View meegamouse.ino
// I've tested this with an arduino UNO and an arduino NANO
// With the nano I had to program externally, maybe the bootloader interferes?
// With an optical mouse you probably need to disconnect power from the amiga pin 7
// and power externally as the mouse port can only supply 50 mA
#include <ps2.h>
// grab the ps2 library here: https://playground.arduino.cc/uploads/ComponentLib/ps2.zip
// You may need to change a line in file "ps2.h"
// from '#include "WProgram.h"'
// to '#include "Arduino.h"'