Skip to content

Instantly share code, notes, and snippets.

<!-- Solution brought to you by Caroline Schnapp -->
<!-- See this: http://wiki.shopify.com/Related_Products -->
{% assign number_of_related_products_to_show = 3 %}
{% assign image_size = 'compact' %}
{% assign heading = 'Other fine products' %}
{% assign number_of_related_products_to_fetch = number_of_related_products_to_show | plus: 1 %}
@pyjamasam
pyjamasam / gist:7b1cc52be3647a16e075
Last active December 31, 2015 01:55
Script to plot the dm_surface_transform file from 626Pilot's fork of smothieware
#Pull your dm_surface_transform file off smothie's sd card and update the path below to point to where you put
#it on your computer
dmSurfaceTransformPath = "<Path to your dm_surface_transform file>"
#Then you can just run the script python <scriptname.py> with no arguments.
#I have tested this on OS X 10.11.2 and all required python modules are available.
#The numbering in the Y axis is backwards. It should count from 1 to 7 from the top to bottom. Presently it is reversed.
from mpl_toolkits.mplot3d import Axes3D
# Delta Geometry
# ---------------------------------------------------------------------
gamma_max 264
arm_solution linear_delta
arm_length 186.78
arm_radius 102.20
SENDING:M503
; config override present: /sd/config-override
;Steps per unit:
M92 X200.00000 Y200.00000 Z200.00000
;Acceleration mm/sec^2:
M204 S3500.00000
;X- Junction Deviation, Z- Z junction deviation, S - Minimum Planner speed mm/sec:
M205 X0.05000 Z-1.00000 S0.00000
;Max cartesian feedrates in mm/sec:
M203 X500.00000 Y500.00000 Z500.00000
# Delta Geometry
# ---------------------------------------------------------------------
gamma_max 264
arm_solution linear_delta
arm_length 186.78
arm_radius 102.20
var SortSelect = function(select) {
var options = jQuery.makeArray(select.find('option'));
var sorted = options.sort(function($a, $b) {
jQuery(a).text() > jQuery(b).text()
var a = jQuery($a).text();
var b = jQuery($b).text();
var ax = [], bx = [];