flowchart TD
%% === EMBEDDING & NORM ===
EMB["<b>Token Embedding</b><br/>(vocab → dim₀)"] --> LN0["LayerNorm"]
%% === ENCODER STAGES ===
subgraph ENC1["<b>Encoder Stage 0</b> (dim₀)"]
ENC1B1["RWKV7 Block × depth₀"] --> ENC1B2["⋮"]
end
LN0 --> ENC1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export DB_TYPE= | |
export DB_HOST= | |
export DB_PORT= | |
export DB_NAME= | |
# e.g. jdbc:mysql://database.example.com/ | |
export DB_URI=jdbc:$DB_TYPE:thin:@$DB_HOST:$DB_PORT:$DB_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def basic_way(filename): | |
with open(filename, 'r') as f: | |
lst = [line.split(',') for line in f] | |
return np.array(lst) | |
def another_way(filename): | |
return np.genfromtxt(filename, delimiter=',') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A: | |
def __init__(self, n): | |
self.v = n | |
def add(self, n): | |
self.v += n | |
x = A(3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kamon { | |
environment.service = app | |
show-aspectj-missing-warning = yes | |
modules { | |
kamon-statsd.auto-start = true | |
kamon-system-metrics.auto-start = true | |
kamon-log-reporter.auto-start = true |
This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.
The Atom documentation is excellent. It's highly worth reading the flight manual.
#
# Install Java 8
#
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz"
tar -xzvf jdk-8u45-linux-x64.tar.gz
rm -rf jdk-8u45-linux-x64.tar.gz
#
# Install Maven 3
I hereby claim:
- I am rch on github.
- I am rch (https://keybase.io/rch) on keybase.
- I have a public key whose fingerprint is A3B0 E05E E2D0 0714 B2A4 B31B B8CD 8934 7577 F749
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.require([ | |
'Ext.data.*', | |
'Ext.tree.*', | |
'Ext.grid.*', | |
'Ext.container.*', | |
]); | |
Ext.application({ | |
name : 'Main', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
from collections import OrderedDict | |
class Name(object): | |
def __init__(self, raw): | |
if raw is None: | |
self._first = '' |
NewerOlder