Skip to content

Instantly share code, notes, and snippets.

View joe714's full-sized avatar

Joe Sunday joe714

View GitHub Profile
@joe714
joe714 / cura-end.gcode
Created June 12, 2022 18:40
Kobra Max Gcode
M104 S0
M140 S0
;Retract the filament
G92 E1
G1 E-1 F300
G91 ; Relative Mode
G0 F100 Z3 ; Move Z up
G90 ; Absolute Mode
G0 F1000 X20 Y399 ; Bring bed forward
M18 ; Disable Steppers
@joe714
joe714 / cura-end.gcode
Created June 12, 2022 18:38
Ender Gcode 3v2 Gcode
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 positionning
G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
#include <iostream>
class A {
public:
virtual int get_foo() = 0;
};
class B {
public:
virtual int get_foo() { return 3; }