Skip to content

Instantly share code, notes, and snippets.

1: ~\.vimrc
2: ~\vimfiles\autoload\pathogen.vim
3: ~\vimfiles\bundle\jedi-vim\plugin\jedi.vim
4: C:\Program Files (x86)\Vim\vim74\filetype.vim
5: C:\Program Files (x86)\Vim\vim74\menu.vim
6: C:\Program Files (x86)\Vim\vim74\autoload\paste.vim
7: C:\Program Files (x86)\Vim\vim74\ftplugin.vim
8: C:\Program Files (x86)\Vim\vim74\plugin\getscriptPlugin.vim
9: C:\Program Files (x86)\Vim\vim74\plugin\gzip.vim
@hovissimo
hovissimo / so_naughty_but_so_sweet.js
Last active February 28, 2016 09:54
Some ES6 that will make all objects directly iterable in a convenient but utterly unrecommended way.
Object.prototype[Symbol.iterator] = function() {
iterator = {
values: Object.keys(this).map((function (k) {
return [k, this[k]];
}).bind(this)),
next: function() {
if (this.values.length <= 0) {
return {done: true};
} else {
return {value: this.values.shift(), done:false};
ship = TDRS
version = 1.0.5
description =
type = VAB
size = 1.342419,0.8275757,1.359174
PART
{
part = probeStackSmall_4252537834
partName = Part
pos = 0.1438357,14.93722,-0.01851913
@hovissimo
hovissimo / knex_female.js
Last active February 6, 2016 03:57
Just a quick experiment in printing K'nex-compatible parts
/** Hovis's experiments in K'nex-compatible parts for home fabrication
* Author: Hovis Biddle
* Contact: [email protected]
* License: ISC
* Url: http://openjscad.org https://gist.github.com/hovissimo/ce5366a35834c3690488
*
* All units in inches/degrees unless noted or obviously wrong.
* These models fit well on MY printer, which is almost certainly calibrated differently than your printer.
* Use at your own risk.
*/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hovissimo
hovissimo / slide fit calibration
Created February 3, 2016 01:30
Gcode for a test part (3d printing)
; generated by Slic3r 1.2.9 on 2016-02-02 at 17:23:42
; external perimeters extrusion width = 0.50mm
; perimeters extrusion width = 0.50mm
; infill extrusion width = 0.50mm
; solid infill extrusion width = 0.50mm
; top infill extrusion width = 0.50mm
M107
M190 S60 ; set bed temperature
@hovissimo
hovissimo / fnByMaxStepDistance.jscad
Last active February 28, 2016 06:09
This function calculates the minimum fn value to turn a curve for a defined feature size. You can use this to optimize render times. This script is designed to be used with the tool at openjscad.org. It is probably most useful for someone who does a lot of 3d printing.
/**** LICENSE
* Copyright (c) 2016 Andrew "Hovis" Biddle
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH T
@hovissimo
hovissimo / config.ini
Created March 2, 2015 05:31
printrbot 1403 hovis config.ini
# generated by Slic3r 1.1.7 on Sun Mar 1 21:30:10 2015
avoid_crossing_perimeters = 0
bed_size = 150,150
bed_temperature = 65
bottom_solid_layers = 2
bridge_acceleration = 5000
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 40
brim_width = 0
@hovissimo
hovissimo / metric radius gauges.jscad
Last active August 29, 2015 14:15
openjscad file for making gauge tools to measure curve radius in mm
/***************************
* Author: Hovis
* File: metric radius gauges.jscad
* Description: This file can be used with openjscad.org to generate 3d models for some tools I designed. The tools are gauges to measure the radii of inside and outside corners by guess-and-check. These 3d models are intended to be easy to print on any 3d printer.
* License: GPL v2
***************************/
function main() {
// These are the mm radii
var sizes = [2, 3, 4, 5, 6, 7];
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="smoothie.js"></script>
<script src="https://cdn.firebase.com/js/client/2.2.0/firebase.js"></script>
</head>
<body>
<h1>Garage temperatures in &deg;C</h1>