Skip to content

Instantly share code, notes, and snippets.

View makevoid's full-sized avatar

Francesco 'makevoid' Canessa makevoid

View GitHub Profile
@makevoid
makevoid / workflowy_mechanize.rb
Created September 26, 2013 21:48
Mechanize scraping example - scraping Workflowy json of everything
require 'mechanize'
require 'json'
require 'pp'
@agent = Mechanize.new
def login
page = @agent.get "https://workflowy.com"
form = page.forms.first
form.username = "makevoid@gmail.com"
@makevoid
makevoid / canvas.html
Created September 24, 2013 23:30
simple canvas animation example coded for learning
<style>
canvas {
width: 100%
}
</style>
<canvas></canvas>
<script>
// simple canvas example coded for learning
@makevoid
makevoid / 3devo_box.scad
Created September 24, 2013 20:37
openscad long box
3devo_box();
module base() {
cube([120, 40, 10]);
translate([5, 5, 10]) color("purple") { // x: 0, y: 0, z: 0
cube([110, 30, 5]);
}
//$fn = 50; // very high version, uses a lot of resources
//$fn = 20; // medium version, should render in ~5 minutes on a i7 with latest scad
$fn = 5; // dev version, or if you don't have a good processor
// use this bash script to export a lot of different stl files, so you can have unique boxes
//
// for i in {1..5}; do echo openscad -o "box_$i.stl" parametric_decorated_box.scad; done
//
// you may need to use the same approach for generating gcode... change 5 to your desired amount of boxes you want to create
tower_height = 27;
// main
scale(0.95) {
keychain_hole();
windowed_keep();
}
@makevoid
makevoid / textile_example.textile
Last active December 22, 2015 13:59
textile example

I clienti blablabla, questo e’ testo normale:
questa e’ una lista:

  • Eptisa
  • Ministero de ….
  • Blabla

veniamo ai titoli:

@makevoid
makevoid / nush_squid.scad
Last active December 21, 2015 19:19
nush.it squid, modeled in openscad
dim = 12;
num = 7;
//$fn = 50;
// check the previous version for blabla
module main() {
difference() {
body();
@makevoid
makevoid / linear_bearing.scad
Last active December 21, 2015 14:49
rename to scad! Resized linear bearing for handle spool (on a spool handler made from a kitchen roll holder)
// find source here: http://www.thingiverse.com/thing:13631
// you can find an up to version of this, here: https://gist.github.com/makevoid/6322363
$fn=32;
lm8uu_length = 30;
lm8uu_id=19;
lm8uu_od=31.0;
id_clearance = 1;
@makevoid
makevoid / jhead_plate.scad
Last active December 20, 2015 18:38
A J-Head plate to mount extruder on Galileo Next 3d printer (on carriage X)
$fn = 70;
//$fn = 40; //dev
module cyl(h, d) {
cylinder(h, d, d);
}
module plate(){
translate([0, -5, 0]) cube([59, 25+5, 4.40]);
}
@makevoid
makevoid / pp_ashtray.scad
Created July 21, 2013 10:58
PP Ashtray thingiverse: http://www.thingiverse.com/thing:121190 ashtray designed by Pio Porcinai, 3d modeled in openscad the STL needs to be scaled, the original size is 12x12x2.5cm
//$fs = 0.3;
$fn = 50;
// main
difference() {
ashtray();
decoration();
}
module ashtray() {