Skip to content

Instantly share code, notes, and snippets.

View ursetto's full-sized avatar

Jim Ursetto ursetto

View GitHub Profile
-- pico8 bezier demo https://github.com/ursetto
-- derived from https://twitter.com/freyaholmer/status/1063633408411295744
w1=40 w2=w1+16
p0={x=64-w1,y=90,c=8}
p1={x=64-w2,y=30,c=9}
p2={x=64+w2,y=30,c=10}
p3={x=64+w1,y=90,c=11}
◆={p0,p1,p2,p3}
@ursetto
ursetto / zblookup.py
Created January 6, 2018 06:00
Anki add-on providing Forvo and OS X dictionary lookup
# coding: utf-8
"""
Anki add-on providing Forvo and OS X dictionary lookup
of current selection or the 'Expression' field,
via context menu or hotkey.
J Ursetto 2018-01-05
Original source:
Author: Artiom Basenko <[email protected]>
@ursetto
ursetto / code.png
Last active September 8, 2017 17:29
Apple 2 screen holes saving
code.png
@ursetto
ursetto / check_mdraid_mismatch
Created August 8, 2015 00:24
nagios plugin for monitoring mdraid mismatch count
#!/bin/bash
# stolen from https://www.thomas-krenn.com/en/wiki/Mdadm_checkarray
# template from http://www.juliux.de/nagios-plugin-vorlage-bash
# modified to work with more than one array by ursetto
set -e
WARN_LIMIT=$1
CRIT_LIMIT=$2
@ursetto
ursetto / sgabios.sh
Created November 28, 2012 20:02
Build sgabios .deb for use with qemu
#!/bin/sh
#
# Download and build Google's sgabios, then create a .deb 'qemu-sgabios'
# which drops the ROM into qemu's ROM directory for use with '-device sga'.
#
# author: Jim Ursetto (http://3e8.org)
# license: public domain
# requires: fpm (https://github.com/jordansissel/fpm)
set -e
@ursetto
ursetto / dia-0.97.2-dbarrow-optional.patch
Created April 23, 2012 04:31
Allow dia database shapes to change start arrow type
diff --git a/objects/Database/reference.c b/objects/Database/reference.c
index 616d106..562c1dd 100644
--- a/objects/Database/reference.c
+++ b/objects/Database/reference.c
@@ -107,7 +107,8 @@ static PropDescription reference_props[] =
PROP_STD_LINE_STYLE_OPTIONAL,
{ "corner_radius", PROP_TYPE_REAL, PROP_FLAG_VISIBLE,
N_("Corner radius"), NULL, &reference_corner_radius_data },
- PROP_STD_START_ARROW,
+ { "start_arrow", PROP_TYPE_ARROW, PROP_FLAG_VISIBLE|PROP_FLAG_STANDARD|PROP_FLAG_OPTIONAL, \