Skip to content

Instantly share code, notes, and snippets.

Elijah Insua tmpvar

Block or report user

Report or block tmpvar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tmpvar
tmpvar / distance.js
Created Feb 21, 2014
cassowary.js distance attempt
View distance.js
// 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 Mar 9, 2014
crybaby grbl settings
View gist:9441302
$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)
View js.json
[
[
{
"x": -19,
"y": -14
},
{
"x": -4,
"y": -14
},
@tmpvar
tmpvar / build.sh
Created Mar 23, 2014
build marlin via Makefile on OSX
View build.sh
#!/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 Mar 25, 2014
pipe midi events from canary into node over websockets
View .gitignore
node_modules
@tmpvar
tmpvar / denverjs.apxl
Created Apr 1, 2014
keynote format for my denverjs talk
View denverjs.apxl
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">
@tmpvar
tmpvar / gist:9938915
Created Apr 2, 2014
constraint notes
View gist:9938915
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 Apr 6, 2014
requirebin sketch
View index.js
// try requiring some modules from NPM and then hit Run
require('cat-picture')
@tmpvar
tmpvar / printrbotjr-v1-printbed.js
Created Apr 27, 2014
gcode generator for a 6.35mm sheet of aluminum for a printerbotjr v1 (mounting holes not included)
View printrbotjr-v1-printbed.js
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;
You can’t perform that action at this time.