The TrustYou Interpreter.
The result of live coding an algebraic expressions interpreter and REPL in Python.
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}")
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
# 256 colors | |
set -g default-terminal "screen-256color" | |
set -g status-bg colour235 | |
set -g status-fg white | |
set -g status-attr bright | |
set -g status-right-length 50 | |
set -g status-left-length 50 | |
# default window title colors |
from functools import reduce | |
from itertools import islice, takewhile, dropwhile | |
from types import FunctionType, BuiltinFunctionType, BuiltinMethodType | |
class QueryableList(list): | |
""" | |
Lists made awesome! | |
""" | |
def __init__(self, iterable): |