Skip to content

Instantly share code, notes, and snippets.

View jwygralak67's full-sized avatar

Jim Wygralak jwygralak67

  • TCMaker
  • Minneapolis, Minnesota, USA
View GitHub Profile
@jwygralak67
jwygralak67 / roll.html
Last active October 21, 2024 12:06
A simple dice roller for gaming or whatever. Uses html, css, & javascript. Self-contained in one html file. Can be saved and run locally.
<html><head>
<meta name="viewport" content="width=480">
<style>
input {border-style: none; border-bottom-style: solid; border-width:thin;}
div {border:solid thin black; margin: 0.5em; padding: 0.5em; border-radius: 1em; background: #f7f7f7;}
.die {border:solid thin black; margin: 1px; padding: 1px; border-radius: 5px; display: inline-block;}
#!/usr/bin/python
import subprocess
import time
RUNNING = 1
STOPPED = 0
global state
state = STOPPED
@jwygralak67
jwygralak67 / PenStand
Created December 17, 2014 06:54
Pen stand designed in openjscad
// Title: E-cig Pen Stand
// Author: Jim Wygralak
// Date: Dec 17, 2014
// License: Attribution-NonCommercial-ShareAlike 4.0 International
// http://creativecommons.org/licenses/by-nc-sa/4.0/
var inch = 25.4;
var h = 0.125 * inch; // material thickness
var pdia = 5/8*inch; // pen diameter
@jwygralak67
jwygralak67 / TemperatureLogger
Last active December 26, 2015 02:19
Gather temperature data and log it online in a Google Docs spreadsheet. I've munged the URLs so no one else can start logging their data to my spreadsheet.
#
# A temperature logger
#
import httplib
import urllib
from serial import Serial
from time import sleep
ser = Serial(port='com4', timeout=5)
@jwygralak67
jwygralak67 / cube25_absE.gcode
Created May 25, 2013 19:36
Gcode files with Absolute Extrusion and Relative Extrusion, sliced from the same stl file using Slic3r
; generated by Slic3r 0.7.2b on 2013-05-12 at 11:02:16
; layer_height = 0.2
; perimeters = 3
; solid_layers = 3
; fill_density = 0.4
; nozzle_diameter = 0.5
; filament_diameter = 3
; extrusion_multiplier = 1
; perimeter_speed = 30
@jwygralak67
jwygralak67 / CoffeeScoopHolder.scad
Last active December 14, 2015 18:28
An OpenScad design for a hanger to hold my coffee scoop on the side of the jar I store my coffee beans in. It is parametric, although wholly cryptic.
id = 72;
od = 80;
os = 72;
id2 = 10.3;
od2 = 18.3;
th=4;
sep = os - (id2/2) - (id/2);
theta = ((th + 0.5) / (od / 2)) * 360 / 6.28;
@jwygralak67
jwygralak67 / HoleExample.coffee
Last active December 10, 2015 14:50
Using the Subtract transformation in CoffeeScad to create a thru-hole or a hollow object.
# How to create a hole
# First, create the object we want to put a hole in
disc = new Cylinder
d: 100
h: 10
center: true
# Next, create a cylinder the size of the hole
hole = new Cylinder
@jwygralak67
jwygralak67 / ParaGears.coffee
Last active December 10, 2015 12:08
Playing with parametric gears in CoffeeScad
class Tooth
constructor: ()->
@csg = new Cylinder
r: 1
h: 1
center: true
@csg = @csg.scale [1,2.5,1]