Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/* | |
Reddit DailyProgrammer Challenge #180 -- Tamagotchi Emulator | |
By Aerospark12 (aka Luke) | |
I may have gone a little bit overboard with this one, but I've got fond memories of tamagotchi from when | |
I was but a wee laddie, I've always wanted to make something like this, and I really enjoy graphics and animation | |
The design of this is partially inspirte by how I understand "low level" ICs to work, as an homage to the real tamagotchi |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
require 'openssl' | |
def gen_key(name) | |
key = OpenSSL::PKey::RSA.new 1048 | |
file = File.new(name, "w") | |
file.write(key) | |
file.close | |
end | |
def get_key(name) |