Skip to content

Instantly share code, notes, and snippets.

View robbintt's full-sized avatar
🎯
Focusing

Trent Zock-Robbins robbintt

🎯
Focusing
View GitHub Profile
@robbintt
robbintt / line_rasterizer.py
Last active July 12, 2016 08:44
Very basic line segment raster generater
def line_rasterizer(pt1, pt2):
""" Normalize and rasterize a line based on two of its points.
"""
xlen = abs(pt1[0]-pt2[0])
ylen = abs(pt1[1]-pt2[1])
xlower = min(pt1[0], pt2[0])
xupper = max(pt1[0], pt2[0])
ylower = min(pt1[1], pt2[1])
yupper = max(pt1[1], pt2[1])
@robbintt
robbintt / ft_line_raster.py
Last active July 12, 2016 08:59
A simple example of the line_rasterizer used with the flaschen.py library.
import flaschen
UDP_IP = 'localhost'
UDP_PORT = 1337
ft = flaschen.Flaschen(UDP_IP, UDP_PORT, 45, 35)
def line_rasterizer(pt1, pt2):
""" Normalize and rasterize a line based on two of its points.
"""
@robbintt
robbintt / pycon2016_lasercutter_3dprinter_python.md
Created September 1, 2016 08:35
PyCon 2016 - Using Python with Laser Cutters & 3D Printers
@robbintt
robbintt / react-static-example.html
Created September 15, 2016 00:44
React example for static sites
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-with-addons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.14.0/babel.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-with-addons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.14.0/babel.min.js"></script>
@robbintt
robbintt / epson_stylus_pro_4880_outline
Created October 12, 2016 08:13
Epson Stylus Pro 4880 Outline
= About =
Please, sometimes replace the power towels in the maintenance tank.
The Epson Stylus Pro 4880 is an 18" roll printer equipped for photo printing.
Ink cartridges are quite expensive, so please do not run huge print jobs.
This file has been truncated, but you can view the full file.
; generated by Slic3r 1.3.0-dev on 2016-10-21 at 19:18:30
; external perimeters extrusion width = 0.50mm
; perimeters extrusion width = 0.58mm
; infill extrusion width = 0.58mm
; solid infill extrusion width = 0.58mm
; top infill extrusion width = 0.58mm
; support material extrusion width = 0.50mm
M107
@robbintt
robbintt / Solarized High Contrast Dark.itermcolors
Created November 21, 2016 03:20 — forked from heisters/Solarized High Contrast Dark.itermcolors
Solarized High Contrast Dark theme for iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.