I hereby claim:
- I am Russtopia on github.
- I am russtopia (https://keybase.io/russtopia) on keybase.
- I have a public key whose fingerprint is A6D0 F721 AC83 6F92 7B1C A46B 18E6 347F C7C3 1510
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Simple demo of a GO CGI program that takes | |
// file uploads. | |
// | |
// NOTE NOTE DANGER DANGER | |
// Absolutely No filename/path sanitizing is done, | |
// don't run this in production unless you want hackers | |
// to overwrite your server. This is only a demo of | |
// how to untangle the go stdlib form-related datatypes | |
// and use them to take file uploads. | |
// |
// A golang translation of a 'Shakespeare insult generator' | |
// Originally from http://www.mainstrike.com/mstservices/handy/insult.html | |
package spinsult | |
import ( | |
"math/rand" | |
"time" | |
) | |
var ( |
keycode 8 = | |
keycode 9 = Escape NoSymbol Escape | |
keycode 10 = 1 exclam diaeresis U2336 | |
keycode 11 = 2 at macron U236B | |
keycode 12 = 3 numbersign less U2352 | |
keycode 13 = 4 dollar U2264 U234B | |
keycode 14 = 5 percent equal U233D | |
keycode 15 = 6 asciicircum U2265 U2349 | |
keycode 16 = 7 ampersand greater U2296 | |
keycode 17 = 8 asterisk U2260 U235F |
keymaps 0-127 | |
keycode 1 = Escape | |
alt keycode 1 = Meta_Escape | |
shift alt keycode 1 = Meta_Escape | |
altgr alt keycode 1 = Meta_Escape | |
shift altgr alt keycode 1 = Meta_Escape | |
control alt keycode 1 = Meta_Escape | |
shift control alt keycode 1 = Meta_Escape | |
altgr control alt keycode 1 = Meta_Escape | |
shift altgr control alt keycode 1 = Meta_Escape |