(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| { | |
| "name": "termtosvg-CN-fix", | |
| "version": "0.0.1", | |
| "bin": "./termtosvg-fix.js", | |
| "dependencies": { | |
| "commander": "^2.19.0" | |
| } | |
| } |
| #! python3 | |
| # -*- coding: utf-8 -*- | |
| from collections import Counter | |
| import sys | |
| import os | |
| import codecs | |
| import getopt | |
| import jieba |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| ๐ | ๐ | ๐ | ๐ |
๐ฉ | ๐ | ๐ | ๐ | ๐จ | ๐ฐ | ๐ฃ | ๐ข | ๐ญ | ๐ | ๐ฒ | ๐ฑ |
| ๐ซ | ๐ | ๐ก | ๐ค | ๐ช | ๐ | ๐ท
๐ | ๐ต | ๐ฟ | ๐ | ๐ | ๐ถ | ๐ | ๐ฝ | ๐ | ๐ | ๐ | โค๏ธ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | โจ
| (use '[clojure.core.match :only [match]]) | |
| (defn evaluate [env [sym x y]] | |
| (match [sym] | |
| ['Number] x | |
| ['Add] (+ (evaluate env x) (evaluate env y)) | |
| ['Multiply] (* (evaluate env x) (evaluate env y)) | |
| ['Variable] (env x))) | |
| (def environment {"a" 3, "b" 4, "c" 5}) |
| // Named constants with unique integer values | |
| var C = {}; | |
| // Tokenizer States | |
| var START = C.START = 0x11; | |
| var TRUE1 = C.TRUE1 = 0x21; | |
| var TRUE2 = C.TRUE2 = 0x22; | |
| var TRUE3 = C.TRUE3 = 0x23; | |
| var FALSE1 = C.FALSE1 = 0x31; | |
| var FALSE2 = C.FALSE2 = 0x32; | |
| var FALSE3 = C.FALSE3 = 0x33; |