Skip to content

Instantly share code, notes, and snippets.

View vishnubob's full-sized avatar

Giles Hall vishnubob

  • Boston, MA
View GitHub Profile
@vishnubob
vishnubob / octoprint_terminal.log
Created November 28, 2014 16:53
OctoPrint terminal log for G4 dwell bug
Recv: Resend: 16906
Send: N16906 G1 X107.551 Y97.406 E135.66307*82
Recv: ok
Recv: ok
Send: N16907 G1 X107.598 Y97.402 E135.66338*94
Recv: ok
Send: N16908 G1 X107.594 Y97.449 E135.66368*87
Recv: ok
Send: N16909 G1 X107.618 Y97.740 E135.66558*94
Recv: ok
The magic recipe for ABS Juice is 4" of 3mm high quality ABS filament or 8" of 1.75mm chopped into bits and disolved into 1 fluid oz of acetone.
1 cup, 32" 3mm ABS
@vishnubob
vishnubob / python_snippets.py
Last active August 29, 2015 14:01
Python Snippets
# Traceback at a specific point
import traceback
frames = 4
print str.join('', traceback.format_stack()[-(frames+1):-1])
# build a color name to RGB python module
import urllib2, json, pprint
url = "https://raw.githubusercontent.com/bahamas10/css-color-names/master/css-color-names.json"
colors = json.loads(urllib2.urlopen(url).read())
colors = {c: (int(v[1:3], 16), int(v[3:5], 16), int(v[5:7], 16)) for (c, v) in colors.items()}