Skip to content

Instantly share code, notes, and snippets.

View rocktronica's full-sized avatar
😎
sup

Tommy rocktronica

😎
sup
View GitHub Profile
@rocktronica
rocktronica / audio_to_visual.sh
Last active December 2, 2021 20:32
audio_to_visual.sh
#!/bin/bash
# A script to make a trippy GIF of a RAW file
# Shared w/ Dogbotic's "Ear Re-Training" class
# REQUIREMENTS: imagemagick, command-line familiarity
{
# Not all dimensions work well. I think depth can also be 16, 8, 4, etc
@rocktronica
rocktronica / .gitignore
Last active June 11, 2020 20:26
openscad-png-by-commit
.DS_Store
*.png
*.gif
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),
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;
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"
Caucasian,Female,[20-30),[

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

// Size 4-40
screwDiameter = 2.8;
screwHeadDiameter = 5.5;
screwHeadHeight = 2.3;
insertDiameter = 4;
insertThreadedDiameter = 4.45;
insertHeight = 3.5;
standardPotShaftTopHeight = 8;
standardPotShaftTopDiameter = 6;
#!/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 20:51
/content/animation-easing-functions.gif
include <easing-functions.scad>;
function undulate(t) = abs((t - .5) * 2);
length = 5;
fullWidth = 200;
textSize = 5;
margin = length;
textGutter = length;
$.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",