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
SCREEN 0, 0 | |
CLS | |
DEF SEG = &HB000 | |
FOR y = 0 TO 15 | |
FOR x = 0 TO 15 | |
addy = x * 4 + y * 160 | |
POKE addy, x + y * 16 | |
POKE 1 + addy, 10 | |
POKE addy + 2, x + y * 16 | |
POKE 3 + addy, 2 |
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
#!/bin/bash | |
set -e | |
set -x | |
IMGFILE=$1 | |
CONTENTS=$2 | |
TMPIMG=$(mktemp -u -t XXXXXXXXX.img) | |
mkfs.fat -D 0 -M 0xF0 -C $TMPIMG 1440 |
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
from PIL import Image | |
from struct import pack,unpack | |
from random import randint | |
import pdb | |
import sys | |
im=Image.open(sys.argv[1]) | |
colors={} | |
for i in range(256): | |
r,g,b = unpack('3B',im.palette.palette[i*3:i*3+3]) |
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 sys | |
from struct import unpack | |
with open(sys.argv[1],'rb') as f: | |
if f.read(4)!='.pck': | |
print 'invalid header!' | |
sys.exit() | |
while True: | |
chunk_header=f.read(8) | |
if not chunk_header: | |
break |
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
Software: 3D Virtual Reality RoomPlanner | |
Boxed password: USE THIS | |
Jewelcase password: TAKE SHAPE | |
Software: Label Publisher with Wizards | |
Boxed password: RESTART | |
Jewelcase password: PRINT | |
Software: Garden Architect | |
Boxed password: THIS TUTORIAL |
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
''' | |
===================================== | |
Rotating 3D voxel animation of PYTHON | |
===================================== | |
Demonstrates using ``ax.voxels`` with uneven coordinates | |
''' | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from mpl_toolkits.mplot3d import Axes3D |
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
from zipfile import ZipFile,BadZipfile | |
import sys | |
BORING_COMPRESSION = (0,1,2,3,4,5,6,8,14) | |
for path in sys.argv[1:]: | |
try: | |
zipf = ZipFile(path, 'r') | |
except BadZipfile: | |
continue | |
for info in zipf.infolist(): | |
if info.compress_type not in BORING_COMPRESSION: |
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
; Ender 3 Custom Start G-code | |
G28 ; Home all axes | |
G29 ; BLTouch homing | |
G92 E0 ; Reset Extruder | |
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed | |
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position | |
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line | |
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little | |
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line | |
G92 E0 ; Reset Extruder |
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
{ | |
"keybindings": [{ | |
"command": "closeTab", | |
"keys": [ | |
"ctrl+w" | |
] | |
}, | |
{ | |
"command": "newTab", | |
"keys": [ |