Skip to content

Instantly share code, notes, and snippets.

View sabarjp's full-sized avatar

Josh sabarjp

View GitHub Profile
@williamwebb
williamwebb / End G-code
Last active October 20, 2022 12:41
Start/End G-code to support BLTouch probing
;
; end_gcode
G92 E0 ; zero the extruded length
G1 E-5 F9000 ; retract
M104 S0 ; turn off temperature
M140 S0 ; turn off bed
G91 ; relative positioning
G1 E-1 F300 ; retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+20 E-5 X-20 Y-20 F7200 ; move Z up a bit and retract filament even more
G1 X320 Y150 F10000 ; move right mid
@jonnyreeves
jonnyreeves / index.html
Created April 23, 2012 21:38
JavaScript Class Structure using requireJS. The following code shows you how to create a Class definition in one JavaScript file and then import it for use in another; coming from an ActionScript 3 background this (and some of JavaScript specific traits)
<!DOCTYPE html>
<html>
<head>
<script data-main="usage" src="http://requirejs.org/docs/release/1.0.8/comments/require.js"></script>
</head>
<body>
<p>Check your JavaScript console for output!</p>
</body>
</head>