Skip to content

Instantly share code, notes, and snippets.

@openp2pdesign
openp2pdesign / sync.py
Last active Aug 29, 2015
Fab Academy Git + Hg sync
View sync.py
# -*- encoding: utf-8 -*-
#
# Author: Massimo Menichinelli
# Homepage: http://www.openp2pdesign.org
# License: MIT
#
import subprocess
import os
import string
@openp2pdesign
openp2pdesign / wxpython-serialdata-matplotlib.py
Created May 12, 2015
A desktop app in wxPython+Matplotlib that draws according data from a serial port
View wxpython-serialdata-matplotlib.py
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import wx
import serial
# Import matplotlib for wxPython
import matplotlib
matplotlib.use('WXAgg')
@openp2pdesign
openp2pdesign / template.py
Last active Aug 29, 2015
A wxGestalt template
View template.py
# -*- coding: utf-8 -*-
# License: Public Domain (use it as you like!)
# Import main wxPython libraries
import wx
import wx.xrc
# Import the wxGestalt module for Gestalt Machines
import Machines.wxMachines as wxMachines
@openp2pdesign
openp2pdesign / test01.ino
Created May 25, 2012
The file that is currently on an Arduino Uno with a serial number of 64935343633351E03172
View test01.ino
int ledPin = 13; // LED connected to digital pin 13
void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
digitalWrite(ledPin, HIGH); // sets the LED on
@openp2pdesign
openp2pdesign / OKFestival-Tweets.py
Last active Dec 12, 2015
Convert a list of RT (in a .csv file) into a .gexf network
View OKFestival-Tweets.py
# Author: Massimo Menichinelli
# License: GPL v.3
import csv
import networkx as nx
ifile = open('okf2.csv', "rb")
reader = csv.reader(ifile)
g = nx.DiGraph()
@openp2pdesign
openp2pdesign / metadesign.py
Last active Jun 23, 2016
A first draft of the classes that define the Open Meta-Design framework. To be developed in a complete repository soon.
View metadesign.py
# -*- coding: utf-8 -*-
#
# Open MetaDesign Classes v0.2
#
# Author:
# Massimo Menichinelli
# Website:
# http://openmetadesign.org
# http://openp2pdesign.org
# E-mail:
@openp2pdesign
openp2pdesign / metadesign.py
Last active Jan 5, 2018
v0.3 draft of the classes that define the Open Meta-Design framework. To be developed in a complete repository soon.
View metadesign.py
# -*- coding: utf-8 -*-
#
# Open MetaDesign Classes v0.3
#
# Author:
# Massimo Menichinelli
# Website:
# http://openmetadesign.org
# http://openp2pdesign.org
# E-mail:
@openp2pdesign
openp2pdesign / S1.txt
Created Mar 10, 2018
Storyboards for 3 scenarios of appliation of the OpenMetaDesign platform. To be rendered with: https://github.com/kesiev/StripThis
View S1.txt
“S1. LET'S DEVELOP A DESIGN PROCESS ONTOLOGY"
A NEW OFFICE PANIC PANEL
BIANCA SMILING SAYS "I LOVE HOW DESIGNERS WORK!"
KESIEV SMILING SAYS "ME TOO!! THEIR IDEAS, THEIR PROCESS..."
A NEW OFFICE PANEL
BIANCA SAYS "MMH... WAIT, BUT WHAT REALLY IS A DESIGN PROCESS?"
KESIEV SAYS "WHY ARE YOU INTERESTED IN THIS?"
@openp2pdesign
openp2pdesign / wxpython-serialdata.py
Last active Jul 24, 2018
A desktop app in wxPython that draws according data from a serial port
View wxpython-serialdata.py
# -*- coding: utf-8 -*-
# Author: Massimo Menichinelli
# Homepage: http://www.openp2pdesign.org
# License: MIT
#
import wx
import serial
# A new custom class that extends the wx.Frame
View DDD Systems first simulation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.