Skip to content

Instantly share code, notes, and snippets.

@yoneken
yoneken / pnLED.py
Last active August 29, 2015 14:15 — forked from rohinip/pnLED.py
##################
#### pnLED.py ####
##################
# This code is ported from Raspberry Pi to Intel Edison.
# LEDs are activated in active-low signal!
from Pubnub import Pubnub
import mraa ## Import libmraa library
@yoneken
yoneken / kicad-macosx.patch
Last active October 31, 2019 22:31 — forked from jboone/kicad-boost-polygon-sort-adaptor.patch
KiCAD and wxWidgets patches to build on Mac OS X and add jboone's hacked-in "magnify" touchpad support
=== modified file 'common/drawpanel.cpp'
--- common/drawpanel.cpp 2013-02-21 20:53:50 +0000
+++ common/drawpanel.cpp 2013-09-02 15:14:40 +0000
@@ -870,6 +870,42 @@
wxCommandEvent cmd( wxEVT_COMMAND_MENU_SELECTED );
cmd.SetEventObject( this );
+ int x, y;
+ GetViewStart( &x, &y );
+