Code

Iowa State University, winter

I have been hacking on software for ages, and I am always trying to understand more. These are some recent examples of code and notes on stuff. Enjoy!

Recent stuff

twitter-unfav (github)
A Haskell program to delete old favorites on Twitter, using a modified askitter library
Haskell "hello world" with `let`
An introduction I wish someone had given me two years ago, briefly showing let syntaxes and the big difference in ghci
BLAKE (github) (hackage: blakesum, blakesum-demo)
An experimental Haskell implementation of the BLAKE SHA-3 candidate hash algorithms, including BLAKE-256, BLAKE-512, BLAKE-224, and BLAKE-384. (Based on the submitted BLAKE proposal.)
Operator precedence: F# and Haskell
Notes on operator precedence in Haskell and F#
Ninlil, for Tumblr (github)
An F# experiment in reading, reblogging, and deleting posts using Tumblr's API (v1)
Notes on F# agents
Fooling around with mailbox processing agents in F#
Dragon curve in JavaScript
Fractal goodness in SVG! (Tested with Chrome.)
Comparing F#, Go, and Haskell...
I did some rough testing of some sample programs written in F#, Go, and Haskell to see how efficient they can be at IO for large files. (With charts!)
A brief stab at Clojure
Attempting to do a bit of IO in Clojure...
X Window System versions
A JavaScript plotting demo: this graph shows a (very rough) comparison of the apparent version numbers and the point releases of the eternal windowing system over time. (Works in Chrome).
HTML5 Canvas Basics
An exploration of the <canvas> tag and properties...
monkeyPrototypes
Hijinks with JavaScript objects and prototypes, with examples in the primate family tree!
prettifyXHR
I've created a script which provides a function which can use XMLHttpRequest to retrieve a file, then inserts it into the document and applies syntax highlighting from prettify. This shows it in action.
firstXHR
This is a brief experiment with XMLHttpRequest.
inputFile
I'm experimenting with the HTML5 FileReader and toying with Flot and jqPlot graphs...
orbital
I'm experimenting with HTML5 geolocation. I'm not saving your location, though. Yet.
excelGrep
This is a tool for searching within Excel spreadsheets and then navigating to the cells with resulting matches: one thing I wish was better done by Excel 2003, at least. I made this from an unholy combination of JavaScript, jQuery, and ActiveX (sorry, it does require IE and Microsoft Excel). This one does something quite useful in only ~250 lines of JavaScript!

Recommended links

JS Array .slice

PromoteJS