curl http://balanced-hangman.herokuapp.com
Hopefully you'll see something like
{
"index": "/",
"me": "/me",
import binascii | |
import struct | |
class Punk(object): | |
_END_CHUNK_TYPE = 'IEND' | |
_PUNK_CHUNK_TYPE = 'puNk' | |
_MAX_BYTES = 2147483647 | |
_chunks = dict() |
# See also http://wiki.xbmc.org/index.php?title=Autoexec.py | |
# Put this into the userdata folder, see http://wiki.xbmc.org/index.php?title=Userdata for details where this is for each platform | |
import xbmc | |
xbmc.executebuiltin('xbmc.PlayMedia("/storage/videos/","isdir")') | |
xbmc.executebuiltin('xbmc.PlayerControl(repeatall)') | |
xbmc.executebuiltin("Action(Fullscreen)") |
<?php | |
// secure hashing of passwords using bcrypt, needs PHP 5.3+ | |
// see http://codahale.com/how-to-safely-store-a-password/ | |
// salt for bcrypt needs to be 22 base64 characters (but just [./0-9A-Za-z]), see http://php.net/crypt | |
$salt = substr(strtr(base64_encode(openssl_random_pseudo_bytes(22)), '+', '.'), 0, 22); | |
// 2y is the bcrypt algorithm selector, see http://php.net/crypt | |
// 12 is the workload factor (around 300ms on my Core i7 machine), see http://php.net/crypt |