Skip to content

Instantly share code, notes, and snippets.

Jim Ursetto ursetto

Block or report user

Report or block ursetto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bezier.p8.txt
-- 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 Jan 6, 2018
Anki add-on providing Forvo and OS X dictionary lookup
View zblookup.py
# 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 <demi.log@gmail.com>
@ursetto
ursetto / code.png
Last active Sep 8, 2017
Apple 2 screen holes saving
@ursetto
ursetto / check_mdraid_mismatch
Created Aug 8, 2015
nagios plugin for monitoring mdraid mismatch count
View check_mdraid_mismatch
#!/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 Nov 28, 2012
Build sgabios .deb for use with qemu
View sgabios.sh
#!/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 Apr 23, 2012
Allow dia database shapes to change start arrow type
View dia-0.97.2-dbarrow-optional.patch
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, \
You can’t perform that action at this time.