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
// | |
// producer: OpenJSCAD.org 0.5.1 (2016/06/27) SVG Importer | |
// date: Thu Jan 05 2017 15:06:22 GMT+0100 (CET) | |
// source: data.svg | |
// | |
function main(params) { | |
var amaze = maze().scale(0.6).extrude({offset: [0,0,1]}); | |
var bounds = amaze.getBounds(); | |
echo(bounds); |
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
docker run \ | |
--name={{.Name}} \ | |
{{range $e := .Config.Env}}--env={{printf "%q" $e}} \ | |
{{end}}{{range $p, $conf := .NetworkSettings.Ports}}{{with $conf}}-p {{(index $conf 0).HostIp}}:{{(index $conf 0).HostPort}}:{{$p}} \ | |
{{end}}{{end}}{{range $v := .HostConfig.VolumesFrom}}--volumes-from={{printf "%q" .}} \ | |
{{end}}{{range $v := .HostConfig.Binds}}--volume={{printf "%q" .}} \ | |
{{end}}{{range $l, $v := .Config.Labels}}--label {{printf "%q" $l}}={{printf "%q" $v}} \ | |
{{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{printf "%q" .}} \ | |
{{end}}{{range $v := .HostConfig.CapDrop}}--cap-drop {{printf "%q" .}} \ | |
{{end}}{{range $d := .HostConfig.Devices}}--device={{printf "%q" (index $d).PathOnHost}}:{{printf "%q" (index $d).PathInContainer}}:{{(index $d).CgroupPermissions}} \ |
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
var hTotal = 91.5, | |
// longueur des extrémités | |
hBout = 12, | |
// profondeur de l'encoche biseautée dans la poignée | |
hEncoche = 3, | |
// gorge pour circlip | |
hGorge = 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
// - Set nozzle diameter and layer height below | |
// - Print with no top/bottom, one shell, same layer height | |
var nozzle = 0.35, | |
layer = 0.2; | |
function fence(side) { | |
var inside=side-10-nozzle, | |
outside=side+nozzle; | |
return cube([outside,outside,0.2]) | |
.center([true,true,false]) |
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
#!/bin/bash -xe | |
if [ -d /root ]; then | |
mkdir -p /root/.ssh | |
keysfile=/root/.ssh/authorized_keys | |
else | |
mkdir -p /etc/ssh/keys-root | |
keysfile=/etc/ssh/keys-root/authorized_keys | |
fi |
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
void setup() { | |
} | |
int NONE = -1; | |
int actualPins[] = {2, 3, 4}; | |
void set(int pin, int st) { | |
int actualPin = actualPins[pin]; | |
if(st == NONE) { |
NewerOlder