The TrustYou Interpreter.
The result of live coding an algebraic expressions interpreter and REPL in Python.
| bind = "127.0.0.1:9006" | |
| workers = 2 | |
| worker_class = 'gevent' | |
| max_requests = 1000 | |
| timeout = 30 | |
| keep_alive = 2 | |
| preload = True |
| deploy django app on digitalocean | |
| ================================= | |
| # Packages | |
| sudo apt-get install python-pip python-dev python-virtualenv supervisor nginx | |
| # Create dirs | |
| mkdir -p /webapps/my-project/{logs,run} |
| #!/bin/bash | |
| NAME="hello_app" # Name of the application | |
| DJANGODIR=/webapps/hello_django/hello # Django project directory | |
| SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket | |
| USER=hello # the user to run as | |
| GROUP=webapps # the group to run as | |
| NUM_WORKERS=3 # how many worker processes should Gunicorn spawn | |
| DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use | |
| DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name |
| [gpg] | |
| format = ssh | |
| [commit] | |
| gpgsign = true | |
| [push] | |
| default = simple | |
| autoSetupRemote = true |
The TrustYou Interpreter.
The result of live coding an algebraic expressions interpreter and REPL in Python.
Another variation of color-cycling a spanning tree generated by Prim’s algorithm. Here the periodicity of the color scale by tree depth is varied over time, alternating between emphasis of micro and macro structure. This idea was suggested in a Hacker News comment.
This is a quick guide to Kotlin programming language. The previous part of this guide is here
#Object Oriented
fun main(args : Array<String>) {
class local (val x : Int)
val y = local(10)
println("${y.x}")