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
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) |
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
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 |
OlderNewer