Skip to content

Instantly share code, notes, and snippets.

Avatar

T. L. Chen datacoda

View GitHub Profile
View ender3-gcode-default.txt
; ## START
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28 ;Home
@datacoda
datacoda / ender3_custom_gcode.txt
Last active Feb 1, 2020
Ender 3 Start/End G-codes
View ender3_custom_gcode.txt
; START
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
M117 Bed Probing
@datacoda
datacoda / shippable.yml
Last active Aug 29, 2015
Shippable and HipChat notifications
View shippable.yml
language: ruby
bundler_args: --without kitchen_vagrant
cache: true
env:
- secure: {{ENCRYPTED_ENVIRONMENT_VARS_FROM_UI}}
rvm:
- 2.0.0
script:
- bundle exec rake ci
notifications:
@datacoda
datacoda / sublime
Last active Aug 29, 2015
Sublime cygwin bash
View sublime
#!/bin/sh
OPTS=''
ARGS=`getopt nawhbv $*`
set -- $ARGS
for i
do
if [[ $i == \-* ]]
then
OPTS="$OPTS $i"
@datacoda
datacoda / gist:9176714
Created Feb 23, 2014
Getting public addresses from chef node attributes.
View gist:9176714
node['network']['interfaces'].map { |i,iface| iface['addresses'].select { |j,addr| addr['scope']=='Global' }.keys }.flatten
You can’t perform that action at this time.