Skip to content

Instantly share code, notes, and snippets.

View heavysixer's full-sized avatar
😎

Mark Daggett heavysixer

😎
View GitHub Profile
@heavysixer
heavysixer / index.html
Created October 9, 2012 17:01 — forked from ZJONSSON/index.html
barStack - stacking with negative values
<!DOCTYPE html>
<html>
<head>
<script src="http://mbostock.github.com/d3/d3.v2.js"></script>
<title>barStack</title>
<style>
.axis text {
font: 10px sans-serif;
}
.axis path, .axis line {
@heavysixer
heavysixer / gist:11322617
Last active August 29, 2015 14:00
proposed filter api for d4
// create a chart
var columnChart = d4.baseChart()
// mix in a feature to the chart
.mixin([{name: 'bars', feature: d4.features.stacked-shapes-series}])
// when using the feature apply a filter to the rects.
.using('bars',function(bar){
bar.svgFilter('feGaussianBlur', function(filter){
filter
@heavysixer
heavysixer / gist:ff456103771c13f175b5
Last active August 29, 2015 14:01
Dismissible Panel Directive
/*
* This directive creates a dismissible message, which can either reappear each
* page refresh or appear only until it is dismissed by setting a cookie.
*
*##### Examples
*
* <div dismissible(data-title='NOTE' data-persist-dismiss >
* click the button to dismiss me!
* </div>
*
@heavysixer
heavysixer / gist:9749c7ddd2b8b0fc2c77
Created April 23, 2015 16:03
Keep Angular from breaking your Parallax animations
angular.module('app.directives')
.run(function($rootScope, $templateCache) {
$rootScope.$on('$routeChangeStart', function(event, next, current) {
if (typeof(current) !== 'undefined') {
/*
Once Angular adds something to its template cache it can render slightly different
the next time it is recalled. This can break functionality that expects the CSS of elements
to be exactly as it was coded (for example parallax). To prevent a specific file from being added
to your template cache you can remove it as needed this way:
*/
@heavysixer
heavysixer / gist:fdfcda1a2ff15a82861d
Created April 28, 2015 17:06
Two-way directive for stripping HTML from a input field. It will filter HTML as the user types it or as the variable linked to ngModel changes.
(function() {
'use strict';
/**
* @ngdoc directive
* @name stripHtml
* @module humansized.directives.stripHtml
* @restrict A
*
* @description
*
@heavysixer
heavysixer / gist:47dd0e873af7dd76c647
Created May 21, 2015 01:09
Backbutton Directive.
(function() {
'use strict';
/**
* @ngdoc directive
* @name hsBackButton
* @module humansized.directives.backButton
* @restrict A
*
* @description
*
@heavysixer
heavysixer / eventable.rb
Created June 10, 2015 18:22
A Public::Activity concern which allows you to create custom activities when arbitrary triggers occur.
# PublicActivity Concern to allow custom activities to be created when certain triggers occur.
#
# Usage Example:
#
# class Challenge < ActiveRecord::Base
# include Eventable
# eventable :after_save => [{
# key: 'challenge.after_publish',
# when: "self.public_changed? && self.public?",
# recipients: 'self.potential_members'
@heavysixer
heavysixer / gist:26e314e02e6c3e65ff05
Created January 29, 2016 19:23
please add your email address to this list for permissions to dropbox.
emails go here:
@heavysixer
heavysixer / makeblock-xy-plotter.md
Last active March 2, 2024 13:24 — forked from fogleman/makeblock-xy-plotter.md
Getting Started with the Makeblock XY Plotter 2.0

Assembly

Assembly is straightforward but takes a while. Comes with all the tools you need. Everything is metric. I recommend labeling the screw packets before starting so you know which size is which.

I ended up tightening the drive belts after initial assembly, which is tough to do. I used vise grips to help. Do not overtighten the belts however, because it can cause strain on the servo motors.

I also added a couple washers (of my own) to the pen mechanism to reduce slop. On either side of the arm that raises / lowers the pen. If you do not add your own washers, you can also use the white plastic spacers that come with the plotter.

Ensure that the pivot screw that holds the drawing arm to the upper assembly is tight however. Horizontal slop will lead to impersice drawings.