Skip to content

Instantly share code, notes, and snippets.

View giodamelio's full-sized avatar
🏗️
Doing a thing

Gio d'Amelio giodamelio

🏗️
Doing a thing
  • Seattle, WA
View GitHub Profile
@giodamelio
giodamelio / python_template_with_optparse.py
Created September 4, 2011 03:41
Python Template With Optparse
#! /usr/bin/env python
"""
Program or module info
"""
__version__ = "0.1"
__author__ = "Gio d'Amelio(giodamelio@gmail.com)"
__license__ = "Public Domain"
import sys
@giodamelio
giodamelio / python_template.py
Created September 4, 2011 03:43
Python Simple Template
#! /usr/bin/env python
"""
Program or module info
"""
__version__ = "0.1"
__author__ = "Gio d'Amelio(giodamelio@gmail.com)"
__license__ = "Public Domain"
def main():
@giodamelio
giodamelio / lister.py
Created September 4, 2011 22:47
Simple Stock Lister
#! /usr/bin/env python
"""
Simple python stock market day trader
"""
__version__ = "0.1"
__author__ = "Gio d'Amelio(giodamelio@gmail.com)"
__license__ = "Public Domain"
import pystock
@giodamelio
giodamelio / marketsim.py
Created September 5, 2011 17:29
Market sim code
#! /usr/bin/env python
"""
Program or module info
"""
__version__ = "0.1"
__author__ = "Gio d'Amelio(giodamelio@gmail.com)"
__license__ = "Public Domain"
import market as marketsim
@giodamelio
giodamelio / gist:1949916
Created March 1, 2012 13:46
AtmoCar 3.0
//input sensor reading
//make decision based on sensor reading
//do one of below actions:
//to drive straight both wheels move forward at same speed
//to drive reverse both wheels move back at same speed
//to turn left the left wheel moves in reverse and the right wheel moves forward
recipes = {
"recipe": {
"name": "solar_panel",
"type": "craft",
"ingredients": {
"input": [
"coal_dust",
"glass",
"coal_dust",
"glass",
@giodamelio
giodamelio / recipes.py
Created March 6, 2012 23:46
Minecraft Recipes
recipes = {
"solar_panel": {
"type": "craft",
"ingredients": {
"input": [
"coal_dust",
"glass",
"coal_dust",
"glass",
"coal_dust",
@giodamelio
giodamelio / ipfs_urlhandler.py
Created October 20, 2015 20:53
A simple Terminator plugin to allow quick opening of IPFS/IPNS hashes
from urlparse import urljoin
import terminatorlib.plugin as plugin
NAME = "IPFSURLHandler"
# Make terminator recognize plugin
AVAILABLE = [NAME]
available = AVAILABLE # For old versions of terminator

Keybase proof

I hereby claim:

  • I am giodamelio on github.
  • I am giodamelio (https://keybase.io/giodamelio) on keybase.
  • I have a public key ASBRPgq5uNXpUg_PRUumToevHgEg406bAFhCMmk7f-vmkQo

To claim this, I am signing this object:

@giodamelio
giodamelio / gpg-offline-master.md
Created May 8, 2017 02:09 — forked from abeluck/gpg-offline-master.md
GPG Offline Master Key w/ smartcard