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 python | |
from PyQt4 import QtCore, QtWebKit, QtGui | |
import sys | |
import random | |
app = QtGui.QApplication(sys.argv) | |
window = QtGui.QWidget() | |
layout = QtGui.QVBoxLayout(window) |
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 python | |
# makekey.py - A key making tool | |
# This program will accept a pin configuration for a Schalge 5 Pin lock and produce GCode to mill out the corresponding key. | |
# | |
# For example, this will produce a bump key: | |
# $ ./makekey.py 99999 | |
# | |
# This could produce a key to something else: | |
# $ ./makekey.py 38457 | |
# |
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 python | |
import sys | |
keyPIN = str(int(sys.argv[1])) | |
print """ | |
G94 ( use inches/min feed rate) | |
G20 ( use inches for coordinates ) | |
G90 ( absolute coordinates ) | |
G64 P0.00500 ( maximum deviation ) |
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
msgRanges = [] | |
num = iter(sorted(numbers)) | |
startNum = None | |
lastNum = None | |
try: | |
while True: | |
curNum = num.next() | |
if startNum is None: | |
startNum = curNum | |
lastNum = curNum |
NewerOlder