Skip to content

Instantly share code, notes, and snippets.

View evilscientress's full-sized avatar

Jenny evilscientress

View GitHub Profile
@evilscientress
evilscientress / end.gcode
Last active April 21, 2020 14:31 — forked from ianchen06/end.gcode
Anet A8 start end gcode
;End GCode
M104 S0 ; extruder heater off
M140 S0 ; heated bed heater off (if you have it)
G91 ; relative positioning
G1 E-1 F300 ; retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F9000 ; move Z up a bit and retract filament even more
G28 X0 Y0 ; move X/Y to min endstops, so the head is out of the way
M84 ; steppers off
@evilscientress
evilscientress / div.c
Last active June 30, 2017 17:02
divides stuff by 12 to test other stuff
#include <stdio.h>
void main(void){
for(int i=-13;i<=13;i++){
int iresult=i/12;
float fresult=((float)i)/12.0f;
printf("%d\t%d\t%d\t%f\n",i,iresult,((int)fresult),fresult);
}
}
@evilscientress
evilscientress / D3_Dynamic_Donut_Chart.md
Last active January 6, 2016 03:59 — forked from dbuezas/README.md
D3 Dynamic Donut Chart