This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
class DXFPolygon: | |
def __init__(self, x, y): | |
self.x = x | |
self.y = y | |
def write(self, filename): | |
x = self.x | |
y = self.y | |
with open(filename, 'wt') as fout: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// chirp screw: parameterized on 0 <= t <= 1 | |
t_steps = 500; | |
major_d = 50; | |
major_facets = 71; | |
minor_d = 4; | |
minor_facets = 17; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# excitation coil model | |
# | |
import loopfield as lf | |
# field object | |
field = lf.Field(length_units = lf.mm, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import re | |
import datetime | |
from PIL import Image | |
import serial | |
import subprocess | |
device = '/dev/ttyUSB0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# logisim <-> binary converter | |
# | |
# rename script to logisim2bin.py to convert the other way | |
# | |
# this software is in the public domain | |
# |