Skip to content

Instantly share code, notes, and snippets.


Phil Hazelden ChickenProp

View GitHub Profile
ChickenProp / gist:3805370
Created Sep 29, 2012
Piiwii - a Raspberry Pi-powered robot controlled by a Wii nunchuk
View gist:3805370

I turned my Raspberry Pi into a robot, controlled by a Wii nunchuk. It's surprisingly easy to do - at least, surprisingly to me, who has not previously made a robot. But because it's surprising, it might help others to have a guide, so here one is.


I'm linking to SKPang for most of these, but Sparkfun and Adafruit would be good places to look if you're in the US.

(If you're in the UK, a word of caution - I bought motors and some other stuff from Sparkfun to save £7 over SKPang, but the package got stopped at customs and I had to pay £4 VAT and £8 handling fees. My understanding is that this will only happen on packages whose contents are worth more than £15, but you'd be a fool to trust me on this. It didn't happen when I spent £20 at Adafruit or £5 at Sparkfun. YMMV.)

  • Raspberry Pi - for the robot logic. An Arduino or similar could be substituted (though the software would need to be rewritten).

Keybase proof

I hereby claim:

  • I am chickenprop on github.
  • I am philh ( on keybase.
  • I have a public key whose fingerprint is 84A5 6F31 7B32 3DBD 160C 37E8 6EAA 563A 7D8D E4A4

To claim this, I am signing this object:

ChickenProp /
Last active Apr 26, 2019
Political Polarization in the US House of Representatives

If you intend to fork this, please note that it contains my Google Analytics tracking code.


This is a visualization of political polarization in the US House of Representatives, as calculated by DW-NOMINATE. DW-NOMINATE allows one to calculate the political leaning of a member simply by comparing their voting record to others', ignoring their party affiliation and even the content of the bills they vote on.


My initial idea was to draw the career progression of every House member as a distinct path, color coded according to their party affiliation in any given congress. The user would also be able to select members to view detailed statistics about them. But when I implemented that, I discovered it was far too noisy. Trends were difficult to make out, few individual members were discernible, and the elements used to represent them were so small that they were almost impossible to select. Feedback #1 confirmed that this was

View gist:1eeca0f34e91bee0a7a968bf1a0df466
[ "GT Rent Roll 2015-02-09 Final Out"
, "Copy of 2015-03-24_Project_Auriga_Portfolio_Summary"
, "Cyclone - Master Rent Roll as of 31.03.2015"
, "01.1 - Mieterliste - 2014-09-10_Hafenplatz 6"
, "7_Static_August 2014"
, "2013-10-04 List of Tenants CBRE Battello 2013_ACTUAL_ EN"
, "2014 06_Waterfront Tenancy Schedule"
, "20150910_Rent_Roll_Victoriastadt-Lofts_FINAL_extern"
, "Copy of SokratesTenancySchedule290914srr"
, "Hamburg_Spaldinghof_ML_Stand_2014-09-18"
ChickenProp / Main.hs
Last active Apr 2, 2022
Exploring variadic functions in Haskell
View Main.hs
-- See:
{-# LANGUAGE AllowAmbiguousTypes
, ConstraintKinds
, DataKinds
, FlexibleInstances
, FunctionalDependencies
, KindSignatures
, PolyKinds
, ScopedTypeVariables