I hereby claim:
- I am larme on github.
- I am larme (https://keybase.io/larme) on keybase.
- I have a public key ASBsH1JDmGatNkAdxbU6BhOOfSm3xM_REByyK6oK0RzQzAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
; Short guide to UDP/IP Client/Server programming in Common Lisp using usockets | |
; | |
; The main reason for this guide is because there are very few examples that | |
; explain how to get started with socket programming with Common Lisp that I | |
; could understand. | |
; After working on a short example on TCP, I found the | |
; need for a UDP tutorial. So, here goes. | |
; As usual, we will use quicklisp to load usocket. |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
ruleSets: | |
- name: Potatso Config | |
rules: | |
- DOMAIN-MATCH,aka,Proxy | |
- DOMAIN-SUFFIX,edu.cn,DIRECT | |
- DOMAIN-SUFFIX,cn,DIRECT | |
- DOMAIN-MATCH,-cn,DIRECT | |
- DOMAIN-MATCH,360buy,DIRECT | |
- DOMAIN-MATCH,alipay,DIRECT |
We use lua 5.1's source codes as a replacement of luajit's source codes.
virtualvenv venv
and switch to the virtual enviornmentpip install cython
git clone https://github.com/scoder/lupa.git
cd lupa/
, copy lua 5.1 source tarball here and tar zxf
it.lua-5.1.5/src
then make macosx
setup.py
, change the following lines:(defn wrap-json [handler] | |
(fn [req] | |
(let [content-type (get-in req [:headers "content-type"]) | |
neue (if (and content-type | |
(some #{"application/json"} | |
(string/split content-type #";"))) | |
(update-in req [:params] assoc :json | |
(json/parse-string (slurp (:body req)) | |
true)) |