Twitter Updates

    Categories

    Twitter Update from PLT Scheme

    I was contemplating doing some automated twittering from schemep3, possibly when I change albums. [For an automatic update on my progress through the 1,001 albums].

    Anyway, I got it to work so here’s the function. No error checking or success fail notification.

    #lang scheme

    (provide twitter)

    (require net/base64)
    (require net/url)

    (define (strip-crlf b64-bytes)
    (subbytes b64-bytes 0 (- (bytes-length [...]

    Multiple Return Values

    This one’s for you Vincent. (But feel free to chime in Ethan)

    It seems that the best way to elegantly and efficiently write a function to find a key in a hash table, dictionary, etc is to write a function with two return values. First value is whether or not the item was [...]

    Hemingway

    “Pour one jigger absinthe into a Champagne glass. Add iced Champagne until it attains the proper opalescent milkiness. Drink three to five of these slowly.”

    Delicious.