Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# 60 pieces for one lampshade, ratio of short arm to long neck: 16/25
# needs more spacing in y direction, fewer elements in x direction
import math
s60 = math.sqrt(3.0) / 2.0
c60 = 0.5
rad = 10 # rad of all arcs
l0 = 90 # neck
l1 = (16.0 / 25.0) * l0 # legs and arms
@mdunschen
mdunschen / fmtroadhawk.py
Created September 22, 2015 12:07
Format RoadHawk helmet cam and add new date file
import sys, time, os
from ctypes import *
def myFmtCallback(command, modifier, arg):
#print("command = ", command)
return 1 # TRUE
def format_drive(Drive, Format, Title):
fm = windll.LoadLibrary('fmifs.dll')