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
# Sprinter Arduino Project Makefile | |
# | |
# Makefile Based on: | |
# Arduino 0011 Makefile | |
# Arduino adaptation by mellis, eighthave, oli.keller | |
# Marlin adaption by Daid | |
# Printrbot updates by @PxT | |
# | |
# This has been tested with Arduino 1.05. | |
# |
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
$0=42.640 (x, step/mm) | |
$1=157.800 (y, step/mm) | |
$2=157.800 (z, step/mm) | |
$3=7000.000 (x v_max, mm/min) | |
$4=1000.000 (y v_max, mm/min) | |
$5=700.000 (z v_max, mm/min) | |
$6=250.000 (x accel, mm/sec^2) | |
$7=50.000 (y accel, mm/sec^2) | |
$8=50.000 (z accel, mm/sec^2) | |
$9=200.000 (x max travel, mm) |
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
#include <BRep_Tool.hxx> | |
#include <BRepAlgoAPI_Fuse.hxx> | |
#include <BRepBuilderAPI_MakeVertex.hxx> | |
#include <BRepBuilderAPI_MakeEdge.hxx> | |
#include <BRepBuilderAPI_MakeFace.hxx> | |
#include <BRepBuilderAPI_MakeWire.hxx> | |
#include <BRepBuilderAPI_Transform.hxx> | |
#include <BRepFilletAPI_MakeFillet.hxx> |
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
$ node ~/work/js/tmp/gcode-probe.js | grbl -i | grep PRB | |
[PRB:-164.016,-199.003,-58.249] | |
[PRB:-164.016,-199.003,-58.217] | |
[PRB:-164.016,-199.003,-58.198] | |
[PRB:-164.016,-199.003,-58.179] | |
[PRB:-164.016,-199.003,-57.652] | |
[PRB:-164.016,-199.003,-57.588] | |
[PRB:-164.016,-199.003,-57.442] |
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
for (var f = 10; f < 100; f+=10) { | |
for (var p = 0; p < 20; p++) { | |
console.log('$h'); | |
console.log('G10 L20 X0 Y0 Z0'); | |
console.log('G1 X35 Z-55 F500'); | |
console.log('G38.2 Z-100 F' + f); | |
} | |
} |
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
cmake . && make clean && make&& node test/test.js | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /Users/tmpvar/work/cadcam/net-oce | |
[ 25%] Running C++ protocol buffer compiler on /Users/tmpvar/work/cadcam/net-oce/node_modules/net-oce-protocol/oce.proto | |
Scanning dependencies of target net-oce | |
[ 50%] Building CXX object CMakeFiles/net-oce.dir/main.cpp.o | |
In file included from /Users/tmpvar/work/cadcam/net-oce/main.cpp:6: | |
/Users/tmpvar/work/cadcam/net-oce/editor.h:23:9: error: no matching function for call to | |
'make_pair' |
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 node --harmony | |
var co = require('co'); | |
var thunkify = require('thunkify'); | |
var request = require('request'); | |
var get = thunkify(request.get); | |
function async(fn) { | |
setTimeout(fn, 0) |
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
echo "cube 1 1 1 1 1 1" |cmd/index.js --oce=../net-oce/out/bin/net-oce | |
> [ { id: 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
cmd/index.js --oce=../net-oce/out/bin/net-oce | |
> cube 1 1 1 1 1 1 | |
[ 'cube', '1', '1', '1', '1', '1', '1' ] | |
command [ 'cube', '1', '1', '1', '1', '1', '1' ] | |
undefined | |
command undefined | |
undefined | |
command undefined |
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 buttons = []; | |
var rows = 1; | |
var columns = 1; | |
var distanceBetween = 20; | |
var borderH = 1; | |
var borderW = 2; | |
var w = rows*distanceBetween + borderW | |
var h = columns*distanceBetween + borderH |