Skip to content

Instantly share code, notes, and snippets.

View DawTaylor's full-sized avatar
👀

Adalberto Taylor DawTaylor

👀
  • Águas de Lindóia - SP - Brazil
  • 05:47 (UTC -03:00)
View GitHub Profile
const [_,__,...args] = process.argv
const isEven = (_, i) => (i % 2 === 0)
const isOdd = (_, i) => (i % 2 !== 0)
const parsedArgs = args.map(arg => parseInt(arg))
const scores = parsedArgs.filter(isEven)
const weights = parsedArgs.filter(isOdd)
@DawTaylor
DawTaylor / end.gcode
Created September 3, 2021 12:38
CR-200B start and end gcodes
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positioning
G1 X0 Y0;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend