Skip to content

Instantly share code, notes, and snippets.

@tmpvar
tmpvar / state.json
Created February 2, 2014 07:18
issue-tracking test
{}
@tmpvar
tmpvar / distance.js
Created February 21, 2014 07:13
cassowary.js distance attempt
// Copyright (C) 1998-2000 Greg J. Badros
// Use of this source code is governed by http://www.apache.org/licenses/LICENSE-2.0
//
// Parts Copyright (C) 2011, Alex Russell (slightlyoff@chromium.org)
var DraggableBox = c.inherit({
initialize: function(x, y, w, h) {
this.width = w || 15;
this.height = h || 15;
@tmpvar
tmpvar / gist:9441302
Created March 9, 2014 00:42
crybaby grbl settings
$0=36.360 (x, step/mm)
$1=32.000 (y, step/mm)
$2=302.360 (z, step/mm)
$3=20000.000 (x v_max, mm/min)
$4=15000.000 (y v_max, mm/min)
$5=3000.000 (z v_max, mm/min)
$6=200.000 (x accel, mm/sec^2)
$7=200.000 (y accel, mm/sec^2)
$8=75.000 (z accel, mm/sec^2)
$9=200.000 (x max travel, mm)
[
[
{
"x": -19,
"y": -14
},
{
"x": -4,
"y": -14
},
@tmpvar
tmpvar / build.sh
Created March 23, 2014 21:59
build marlin via Makefile on OSX
#!/bin/bash
# put this file in your Marlin root directory with chmod +x
# run ./build.sh to fetch the preconfigured arduino, unzip it and build against it.
# Requires unzip & wget & make
if [ ! -d "deps" ]; then
mkdir deps
@tmpvar
tmpvar / .gitignore
Created March 25, 2014 05:04
pipe midi events from canary into node over websockets
node_modules
@tmpvar
tmpvar / denverjs.apxl
Created April 1, 2014 19:05
keynote format for my denverjs talk
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
<key:presentation xmlns:sfa="http://developer.apple.com/namespaces/sfa" xmlns:sf="http://developer.apple.com/namespaces/sf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:key="http://developer.apple.com/namespaces/keynote2" key:version="92008102400" sfa:ID="BGShow-0" key:play-mode="interactive" key:kiosk-slide-delay="5" key:kiosk-build-delay="2" key:mode="once">
<key:size sfa:w="1024" sfa:h="768" />
<key:theme-list sfa:ID="NSMutableArray-0">
<key:theme sfa:ID="BGTheme-0" key:name="Theme" key:group-uuid="CD93AFD0-49FA-446A-803C-219DCA2C98C2" key:decimal-tab=".">
<key:size sfa:w="1024" sfa:h="768" />
<key:stylesheet sfa:ID="SFSStylesheet-0">
<sf:styles>
<sf:vector-style sfa:ID="SFTVectorStyle-0" sf:ident="tabular-default-body-vector-style-id">
<sf:property-map>
@tmpvar
tmpvar / gist:9938915
Created April 2, 2014 17:29
constraint notes
Analysis of systems of equations - Serrano [74]
First step of determining whether a system is
over/under/well constrained.
Can be extended to decompose graphs into independently
solvable graphs
The constraint graph
@tmpvar
tmpvar / index.js
Created April 6, 2014 03:59
requirebin sketch
// try requiring some modules from NPM and then hit Run
require('cat-picture')
@tmpvar
tmpvar / printrbotjr-v1-printbed.js
Created April 27, 2014 07:04
gcode generator for a 6.35mm sheet of aluminum for a printerbotjr v1 (mounting holes not included)
var gcode = [];
var G1 = function(obj) {
gcode.push('G1 ' + Object.keys(obj).map(function(a) {
return a.toUpperCase() + Number(obj[a]).toFixed(3);
}).join(' '));
};
G1({z: 5});
var offset = 6.35;