Skip to content

Instantly share code, notes, and snippets.

diff --git a/.gitignore b/.gitignore
index f8f1975..0d50f56 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,5 +14,3 @@
/setup.log
/setup.ml
META
-*.swp
-*.merlin
@rvantonder
rvantonder / example.py
Created November 7, 2013 13:31
This sprung from wanting to know the difference between currying and partial function application in the functional programming paradigm. An example in Python.
# Consider the function f, with arity 3:
f = lambda x,y,z: x+y+z
# Let's curry f:
f_curried = lambda x: lambda y: lambda z: x+y+z
# f_curried has arity 1. When called with an argument, it will
# return another function (say, g) of arity 1 down the chain, e.g.:
g = f_curried(1)
Files:
GoodFET.py in verbose mode, and prints out the data that gets sent over serial
GoodFETMAXUSB.py with type-through
MAXUSBApp.py with extra method send_on_endpoint_key which calls write_bytes with a length of 1
USBKeyboard.py which calls send_on_endpoint_key in MAXUSBApp.py
Notes.txt - Description of the problem
Old.txt - How the old code sent key presses through