-
Download a Kindle-compatible version of the dictionary here. Unzip the .rar archive.
-
Get the "Send to Kindle" program on your computer. Here's the link for the Mac.
-
Right-click your recently downloaded (unzipped) dictionary file, and click the "Send to Kindle" menu item. It will arrive on your Kindle shortly.
-
Once the dictionary has arrived, go to your settings -- on my newish paperwhite, it's at Home > Settings > Device Options > Language and Dictionaries > Dictionaries > English. Choose the Webster's 1913.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.{PrintWriter, OutputStreamWriter, BufferedOutputStream} | |
// copy given string to the mac clipboard by launching pbcopy in a subprocess | |
object Clipboard { | |
def pbcopy(string: String) { | |
val pb = new ProcessBuilder("/usr/bin/pbcopy") | |
val p = pb.start() | |
val stdin = new PrintWriter(new OutputStreamWriter(new BufferedOutputStream(p.getOutputStream))) | |
stdin.print(string) | |
stdin.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOTE: Scroll down for explanation (the difference turns out to be scoping, not closures per se). | |
$ cat juices.lua | |
local fruits = {"apple", "orange", "grape"} | |
local juicers = {} | |
for i,v in ipairs(fruits) do | |
local fruit = v | |
juicers[i] = function() return fruit .. " juice" end |
Couldn't find the text of this for a while...