Skip to content

Instantly share code, notes, and snippets.

View auxiliary-character's full-sized avatar

Auxiliary-Character auxiliary-character

View GitHub Profile
function inches(x) = x * 25.4;
z_fight_epsilon = 0.0001;
total_height = inches(0.5040);
inner_diameter = inches(0.6225);
outside_diameter = inches(1.3219);
rear_spigot_outer_diameter = inches(0.7467);
rear_groove_inside_diameter = inches(0.9700);
front_spigot_outer_diameter = inches(1.0245);
front_spigot_inner_diameter = inches(0.7327);
$fn=200;
phi = (1+sqrt(5))/2;
radius = 50;
sphere_radius = 10;
height = 200;
count = 600;
function r(i) = radius/3*sin(i/count*360)+radius/2;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$fn = 100;
hole_diameter = 1;
hole_length = 2;
z_fight_epsilon = 0.0001;
module substrate(){
difference(){
cube([hole_diameter*2, hole_length-z_fight_epsilon*2, hole_diameter*2], center=true);
rotate([90,0,0])
state_name average federal state property
West Virginia 6837.16 3984.78 1734 544.44
Montana 7034.50 4856.10 2481 1846.14
Mississippi 7086.42 3730.86 1731 943.94
Kentucky 7536.60 4244.82 2268.30 1160.92
Arkansas 7858.01 3947.82 1829.91 761.37
South Carolina 7903.51 4530.06 2925.62 856.98
New Mexico 8261.34 4348.38 1845.83 1319.85
Alabama 8407.85 4238.46 1810.98 556.80
Louisiana 8627.36 4345.74 1555.43 957.52
// ==UserScript==
// @name Mobile Redirect
// @version 1.0
// @description general purpose mobile->desktop redirect
// @author auxchar
// @match *://*/*
// @grant none
// ==/UserScript==
float_regex = """([\+\-\ ]\d{3}\.\d{2})"""
int8_regex = """([0-9A-Fa-f]{2})"""
int16_regex = """([0-9A-Fa-f]{4})"""
termination_regex = int8_regex
yprc_packet_regex = re.compile("!y"+
float_regex+ #Yaw
float_regex+ #Pitch
float_regex+ #Roll
float_regex+ #Compass Heading
bits 64
%macro to_string 1
%push to_string_ctx
%assign digit 1000000000
%rep 10
db ('0' + (%1 / digit) % 10)
%assign digit digit/10
%endrep
%pop
@auxiliary-character
auxiliary-character / gab.md
Last active December 18, 2018 01:57 — forked from Kelbie/gab.md
@auxiliary-character
auxiliary-character / solution.sh
Last active October 9, 2018 18:37
Longest 7 segment displayable word solution
#!/bin/bash
cat /usr/share/dict/american-english | grep -i -e "^[^gkmqvwxz]*$" | awk '{ print length, $0 }' | sort -n | cut -d' ' -f2- | tail -n 1