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/python | |
import ctypes | |
import ctypes.util | |
import os | |
import re | |
null_re = re.compile('^\0*$') | |
c_off_t = ctypes.c_int64 |
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
#define SHIFTD 5 | |
#define SHIFTC 6 | |
#define ENABLE 7 | |
#include <LiquidCrystal.h> | |
uint8_t lcd_send(uint8_t value, uint8_t mode, uint8_t nbits) { | |
uint8_t shift = value << 3; | |
shift |= (mode && 1) << 1; | |
shiftOut(SHIFTD, SHIFTC, MSBFIRST, shift); |
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 argparse | |
import math | |
argp = argparse.ArgumentParser() | |
argp.add_argument("measured", type=float, help="Measured wall width") | |
argp.add_argument("nozzle", type=float, default=0.4, nargs="?", help="Nozzle width (or what the wall is supposed to measure) default=0.4") | |
argp.add_argument("filament", type=float, default=1.75, nargs="?", help="Filament diameter, default=1.75") | |
argp.add_argument("-n", "--nozzle", type=float) | |
argp.add_argument("-f", "--filament", type=float) |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 20 in line 1.
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
# Created by GIMP version 2.10.8 PNM plug-in | |
4x10,0x8,7x0,9x0,9x10,10x6,8x5,8x10,10x2,10x9,4x10,5x4,0x1,0x10,2x10,7x0,5x10,5x0,10x10,4x5 | |
10x5,10x9,10x5,5x6,1x10,9x10,3x7,10x4,0x0,0x4,3x0,0x0,10x2,3x10,0x7,6x0,10x2,5x4,0x4,4x10 | |
2x0,10x1,0x1,6x0,2x0,9x3,1x8,1x3,9x0,0x8,0x6,0x3,0x2,7x10,5x8,9x0,1x0,9x10,5x10,5x6 | |
3x10,0x2,2x5,10x6,7x1,3x7,6x3,1x8,9x9,10x1,5x4,4x10,5x0,8x0,0x4,2x10,5x8,10x2,10x6,10x6 | |
8x0,5x6,6x5,3x3,2x9,3x0,3x3,8x6,9x1,0x10,2x10,5x0,10x9,10x1,2x5,2x10,10x7,9x0,2x5,1x10 | |
0x0,3x0,7x3,4x2,6x3,6x10,0x8,6x8,1x7,6x0,6x0,3x10,7x10,0x3,10x8,1x10,1x0,4x10,10x9,0x7 | |
0x6,0x10,9x7,4x2,8x1,4x2,4x7,2x9,1x1,6x5,5x4,5x8,5x8,10x2,2x5,4x5,8x10,6x0,2x5,10x4 | |
0x5,0x3,0x1,1x1,9x1,2x9,8x6,6x3,9x3,0x8,10x8,0x6,10x10,8x10,10x6,8x0,6x5,10x8,5x10,6x5 |
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
{ | |
"name": "Dave", | |
"description": "less verbose", | |
"scripts": { | |
"AFMU repairs": { | |
"name": "AFMU repairs", | |
"description": "Triggered when repairing modules using the Auto Field Maintenance Unit (AFMU)", | |
"enabled": true, | |
"priority": 3, | |
"responder": true, |