evancz/elm-lang.org — pull request #63 by tomberek (2013-10-27 02:27:30+00:00)
Title: Adding pastebin function to elm-lang.org

Two buttons are added; Save and Publish

1. Save: save will save the code in the editor into a map stored onto disk using acid-state. The key is four random english words drawn from /resources/misc/wordlist.txt. The URL is updated to reflect the new path. Accessing /xkcd with those four english words as the path will recall the ide with the saved code.

2. Publish will compile the code that has been saved already and bring up a new tab using the hash of the key.

Changes:
* .gitignore: I added a few common development files and folders. I also ignore the state folder created by acid-state
* elm-website.cabal: fixed and bumped version. I added a few dependency restrictions, not sure if needed, but helpful
* wordlist.txt: 53k english words, improve vocabulary!
* Editor.hs: Added buttons and slight changes to how the title is created. Also removed some lingering Windows CRLF.
* Gist.hs: Manages the queries and acid-state databases. Also created random words.
* Server.hs: imports, bracketed the simpleHTTP call with database management, added routes/handlers, a few CRLF.

Let me know if there are any changes you need.