This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Set FPS=10 Steps=36 | |
angle=$t*360; | |
module wheel(r,a){ | |
rotate([0,0,angle+a]) | |
translate([r,0,0]) | |
rotate([0,90,0]) | |
cylinder(r=10,h=1,$fn=20); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module main(){ | |
difference(){ | |
cube([100,17,5],true); | |
for(i=[-2:2]) | |
translate([i*20,0,0]) | |
cube(6,true); | |
} | |
} | |
module mods(){ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e=0.8338; | |
d=0.1111; | |
l=4; | |
polyhedron([ | |
[-e,l/4,-d], //0 | |
[0,l,0], //1 | |
[0,0,0], //2 | |
[e,l/2,-d], //3 | |
[2,0,0], //4 | |
[2,l,0], //5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn = 32; | |
w = 0.5; | |
n = 4; | |
R = 2; | |
r = R / cos(180/n); | |
difference() { | |
// Chain hull of circles same width as filament at nozzle positions | |
for(i = [0 : n - 1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
duct_wall=1; | |
gap=6; | |
inner_radius=18; | |
outer_radius=inner_radius+gap; | |
height=14; | |
nozzle_height=6; | |
taper_angle=30; | |
skew=nozzle_height*tan(taper_angle); | |
top_height=height-nozzle_height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
duct_wall=1; | |
gap=6; | |
inner_radius=18; | |
outer_radius=inner_radius+gap; | |
height=14; | |
nozzle_height=6; | |
taper_angle=30; | |
skew=nozzle_height*tan(taper_angle); | |
top_height=height-nozzle_height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import requests | |
r=requests.post("http://httpbin.org/post",data={"this&":1,"that=":2}) | |
print(r.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.xml; | |
import std.string; | |
import std.container.stack; | |
class XmlWriter | |
{ | |
this() | |
{ | |
m_stack = new Stack!Element(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern(C) | |
{ | |
alias uint mp_limb_t; | |
struct __mpz_struct | |
{ | |
int _mp_alloc; | |
int _mp_size; | |
mp_limb_t *_mp_d; |