Skip to content

Instantly share code, notes, and snippets.

@val314159
Created December 3, 2017 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save val314159/d89a8ea05a1ba5f4d025c58150024218 to your computer and use it in GitHub Desktop.
Save val314159/d89a8ea05a1ba5f4d025c58150024218 to your computer and use it in GitHub Desktop.
all:
./ws.py
install:
virtualenv .ve
.ve/bin/pip install -r requirements.txt
mkdir static
echo index >static/index.html
clean:
rm -fr *~ .*~ *.pyc */*.pyc
realclean: clean
rm -fr .ve
ipython
jupyter
gevent-websocket
leveldb
import leveldb
db = leveldb.LevelDB('./db')
db.Put('hello', 'world') print db.Get('hello')
db.Delete('hello') print db.Get('hello')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment