Skip to content

Instantly share code, notes, and snippets.

use <MCAD/gears/involute_gears.scad>
include <MCAD/units/metric.scad>
include <MCAD/units/us.scad>
teeth = 14;
bore_d = length_in (1/4);
outside_d = length_in (0.67);
pitch_d = length_in (0.58);
face = length_in (1/4);
pitch = 24;
@hyperair
hyperair / whole-mount.gcode
Created November 6, 2014 04:29
Slic3d Logitech z5500 stand
This file has been truncated, but you can view the full file.
; generated by Slic3r 1.2.1-dev on 2014-11-06 at 01:10:29
; external perimeters extrusion width = 0.40mm
; perimeters extrusion width = 0.40mm
; infill extrusion width = 0.60mm
; solid infill extrusion width = 0.60mm
; top infill extrusion width = 0.40mm
; support material extrusion width = 0.60mm
M127 ; disable fan
; generated by Slic3r 1.2.1 on 2014-11-10 at 12:49:31
; external perimeters extrusion width = 0.40mm
; perimeters extrusion width = 0.40mm
; infill extrusion width = 0.60mm
; solid infill extrusion width = 0.60mm
; top infill extrusion width = 0.40mm
; support material extrusion width = 0.60mm
M127 ; disable fan
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.58
!!################################
!!Script ran on: Tue Nov 11 14:05:24 UTC 2014
!!Linux Distribution
!!------------------
pcm.!default { type pulse }
ctl.!default { type pulse }
pcm.a52 {
@args [CARD]
@args.CARD {
type string
default 0
}
type rate
@hyperair
hyperair / -
Created December 9, 2014 01:06
module trapezoidal_thread (
pitch,
length,
upper_angle,
lower_angle,
outer_flat_length,
major_radius,
minor_radius,
internal = false,
n_starts = 1
@hyperair
hyperair / git-gh-setup
Last active July 5, 2017 06:49
Setup pull request fetching for github repo
#!/bin/sh
git remote -v | grep fetch | \
grep -e git@github.com -e git://github -e github: -e gh: | \
while read remote url _; do
if ! git config --get-all "remote.$remote.fetch" | grep -q refs/pull
then
git config --add "remote.$remote.fetch" \
'+refs/pull/*/head:refs/remotes/'"$remote"'/pr/*'
git config --add "remote.$remote.fetch" \
// Author: Marius Kintel
// Copyright: 2010
// License: 2-clause BSD License (http://opensource.org/licenses/BSD-2-Clause)
// mcad_rounded_box([width, height, depth], float radius, bool sidesonly);
// EXAMPLE USAGE:
// mcad_rounded_box([20, 30, 40], 5, true);
// size is a vector [w, h, d]
(gdb) bt full
#0 0x00007f386e1f2b5b in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
resultvar = 0
pid = <optimised out>
#1 0x000000000040cc1a in crash (sig=6) at ../src/core/main.c:152
rl = {
rlim_cur = 18446744073709551615,
rlim_max = 18446744073709551615
}
sa = {
# generated by Slic3r 1.2.4 on Fri Jan 16 01:42:43 2015
avoid_crossing_perimeters = 0
bed_shape = -112.5x-72.5,112.5x-72.5,112.5x72.5,-112.5x72.5
bed_temperature = 55
bottom_solid_layers = 6
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 20
brim_width = 0