Skip to content

Instantly share code, notes, and snippets.

View makevoid's full-sized avatar

Francesco 'makevoid' Canessa makevoid

View GitHub Profile
@makevoid
makevoid / jsonr.rb
Created November 4, 2014 17:45
Simple wrapper around Excon with json parsing included
# Simple wrapper around Excon with json parsing included
#
#
# Make a JSON get request:
#
# JSONR.get("http://echo.jsontest.com/quill/awesome/very/bacon")
# # => {"quill"=>"awesome", "very"=>"bacon"} # it returns a hash
#
#
# Use the pipelining api:
@makevoid
makevoid / readme.md
Created October 3, 2014 10:23
liracoin idea / readme

Liracoin

http://liracoin.it

oops I registered the domain? and now? should we make a sidechain, a coloured coin? an asset on counterwallet?

please see bitcoin.org in the meantime, that's a system/value that works!

@makevoid
makevoid / onename.io.txt
Created August 5, 2014 22:29
onename.io
Verifying myself: My Bitcoin username is +makevoid. https://onename.io/makevoid
@makevoid
makevoid / keybase.md
Created August 4, 2014 22:57
Keybase - makevoid identity

Keybase proof

I hereby claim:

  • I am makevoid on github.
  • I am makevoid (https://keybase.io/makevoid) on keybase.
  • I have a public key whose fingerprint is 2D2A 083E 9F62 2689 B0BC BFD5 C91F 74EE BBED 0E1C

To claim this, I am signing this object:

@makevoid
makevoid / Guardfile
Created June 29, 2014 07:14
Simple guardfile sor sass + livereload
guard 'sass', input: 'sass', output: 'public/css'
guard 'livereload' do
watch(%r{public/css/.+\.(css)})
end
@makevoid
makevoid / stampa_3d.md
Last active August 29, 2015 13:56
Stampa 3D FDM
@makevoid
makevoid / led_holder.ooz.rb
Created December 10, 2013 01:08
Led holder 3d model made in in Oozby
# oozby compile led_holder.ooz.rb; openscad -o led_holder.stl led_holder.ooz.scad
resolution minimum: 0.5
# resolution minimum: 0.2 # I used 0.2 for my prints
# led = 9
# ported by an old scad, rewrite with oozby's hexagonal_prism builtin function
def hex_cyl(h, d)
cylinder h, d/2, d/2#, $fn=6
@makevoid
makevoid / triangular_prism.ooz.rb
Last active December 30, 2015 16:59
Triangular Prism lampshade made with oozby and ruby ! pic: https://www.facebook.com/photo.php?fbid=409589889144134&set=a.377251029044687.1073741846.359476797488777&type=3&theater I use the .rb extension just for github syntax higlighting, otherwise I usually use .ooz.
# apt-get install openscad # or download it from opendscad.org
# gem install oozby
# oozby compile trilamp.ooz.rb; openscad -o trilamp.stl trilamp.ooz.scad
r = 54
h = 150
depth = 1.3
rotate(x: 180) do
render do
@makevoid
makevoid / gnome_scripting.sh
Created November 20, 2013 12:39
gnome windows scripting (applescript like)
# execute gnome terminal running rack up
gnome-terminal -e "bash -c \"bundle exec rackup -p 3000 -o 0.0.0.0; read line\"" --tab-with-profile=Default
# closes and re executes rackup
wmctrl -c -F rack; gnome-terminal -e "bash -c \"bundle exec rackup -p 3000 -o 0.0.0.0; read line\"" --tab-with-profile=Default -t "rack"
# bind this command to a shortcut
@makevoid
makevoid / Configuration.h
Created October 14, 2013 15:23
Configuration MPStudio Marlin Firmware
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configurtion file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//User specified version info of THIS file to display in [Pronterface, etc] terminal window during startup.
//Implementation of an idea by Prof Braino to inform user that any changes made
//to THIS file by the user have been successfully uploaded into firmware.