Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
sup

Tommy rocktronica

😎
sup
View GitHub Profile
@rocktronica
rocktronica / .gitignore
Last active Jun 11, 2020
openscad-png-by-commit
View .gitignore
.DS_Store
*.png
*.gif
View horn_goldilocks_array.scad
module horn_goldilocks_array(
height = 2.5,
plot = 10,
tolerances = [0, .1, .2, .3, .4, .5, .6, .7, .8, .9, 1],
shim_counts = [0, 3, 6]
) {
difference() {
cube([
plot * len(tolerances),
plot * len(shim_counts),
View self-watering-planter.scad
SHOW_PRINTING_AIDS = true;
MINIMUM_LAYER_HEIGHT = .2;
SHOW_CROSS_SECTION = false;
CROSS_SECTION_LENGTH = 10;
CROSS_SECTION_ROTATION = 30;
lid_wall = 1.8;
lip_and_pot_clearance = 5;
View 10k_diabetes.csv
We can't make this file beautiful and searchable because it's too large.
race,gender,age,weight,admission_type_id,discharge_disposition_id,admission_source_id,time_in_hospital,payer_code,medical_specialty,num_lab_procedures,num_procedures,num_medications,number_outpatient,number_emergency,number_inpatient,diag_1,diag_2,diag_3,number_diagnoses,max_glu_serum,A1Cresult,metformin,repaglinide,nateglinide,chlorpropamide,glimepiride,acetohexamide,glipizide,glyburide,tolbutamide,pioglitazone,rosiglitazone,acarbose,miglitol,troglitazone,tolazamide,examide,citoglipton,insulin,glyburide.metformin,glipizide.metformin,glimepiride.pioglitazone,metformin.rosiglitazone,metformin.pioglitazone,change,diabetesMed,readmitted,diag_1_desc,diag_2_desc,diag_3_desc
Caucasian,Female,[50-60),?,Elective,Discharged to home,Physician Referral,1,CP,Surgery-Neuro,35,4,21,0,0,0,723,723,719,9,None,None,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,No,FALSE,Spinal stenosis in cervical region,Spinal stenosis in cervical region,"Effusion of joint, site unspecified"
View jamstack-conf-sf-2019.md

JAMStack Conference SF 2019

The "JAM" stack is JavaScript, APIs, and Markup. It is relatively new, and JS devs love it because all the back-end and AWS stuff is outsourced to third parties. I've never used it myself, but that's my understanding.

I got my ticket for free at the last minute. These are my notes on the talks I caught. Like a lot of conferences, it's a lot of companies hawking their wares (none of which were super relevant to my employer) but it's good to get a lay of the land.

Videos: https://www.youtube.com/channel/UC8bRyfU7ycLXnEBfvdorpUg

Wednesday

View knobs.scad
// Size 4-40
screwDiameter = 2.8;
screwHeadDiameter = 5.5;
screwHeadHeight = 2.3;
insertDiameter = 4;
insertThreadedDiameter = 4.45;
insertHeight = 3.5;
standardPotShaftTopHeight = 8;
standardPotShaftTopDiameter = 6;
View upload_to_octoprint.sh
#!/bin/bash
{
filename="$1"
user="pi"
host="octopi.local"
destination="~/.octoprint/uploads"
bandwidth_limit="1000" # prevents stalling on large files; kbit/s
@rocktronica
rocktronica / easing-functions-demo.scad
Last active May 15, 2017
/content/animation-easing-functions.gif
View easing-functions-demo.scad
include <easing-functions.scad>;
function undulate(t) = abs((t - .5) * 2);
length = 5;
fullWidth = 200;
textSize = 5;
margin = length;
textGutter = length;
View responsive-iframes.js
$.fn.ready(function(){
$("iframe").each(function() {
var $iframe = $(this),
width = $iframe.attr("width") || $iframe.width(),
height = $iframe.attr("height") || $iframe.height();
var $wrapper = $("<div></div>")
.css({
"position": "relative",
View prusa.md

Big Lessons!

  • Bed maintenance
    • Wipe clean after almost everything -- including touching
    • Use adhesive when the print will take longer than ~30min
    • Symptoms: spaghetti, bunching
  • Extruder maintenance
    • Keep nozzle clean
      • Don't wipe with paper towel
      • Pull off debris with pliers
You can’t perform that action at this time.