I hereby claim:
- I am nicolashahn on github.
- I am nickhahn (https://keybase.io/nickhahn) on keybase.
- I have a public key ASDQvw94Kfz_5xNcpmsFEZ61JZpmvWvO-pyBTjFC2MWD1Ao
To claim this, I am signing this object:
ssh [email protected] |
class NotIn: | |
def __repr__(self): | |
return "<not in dict>" | |
NOT_IN = NotIn() | |
def ddiff(A, B): | |
""" Create a dict that shows the difference between two dicts. """ |
use std::collections::HashMap; | |
use std::fmt::Debug; | |
use std::hash::Hash; | |
use KeyDiff::{Added, Changed, Removed}; | |
#[derive(Debug)] | |
enum KeyDiff<V: PartialEq> { | |
Added(V), | |
Removed(V), | |
Changed(V, V), |
]0;fish /home/nhahn[30m(B[mWelcome to fish, the friendly interactive shell | |
[?2004h]0;fish /home/nhahn[30m(B[m[2m⏎(B[m | |
⏎ | |
[2K[1m[37m❰[32mnhahn[37m❙[34m~[37m[37m❱[37m[1m[32m✔[37m≻[30m(B[m [Kv[38;2;255;0;0mv[30m(B[m[38;2;85;85;85mim[30m(B[m[38;2;255;0;0mi[38;2;85;85;85mm[30m(B[mvi[38;2;85;85;85mm[30m(B[mm [38;2;85;85;85m.tmux.conf[10D[30m(B[m.[38;2;85;85;85mtmux.conf[9D[30m(B[m[38;2;0;215;175m[4m.[38;2;85;85;85m[24mtmux.conf[9D[30m(B[m[38;2;0;215;175m[4mv[30m(B[m[K[38;2;85;85;85mimrc[30m(B[m[38;2;0;215;175m[4mi[38;2;85;85;85m[24mmrc[30m(B[m[38;2;0;215;175m[4mm[38;2;85;85;85m[24mrc[30m(B[m[38;2;0;215;175m[4mr[38;2;85;85;85m[24mc[30m(B[m[38;2;0;215;175m[4mc[30m(B[m | |
[30m(B[m[?2004l]0;vim /home/nhahn[30m(B[m | |
[?1006h[?1002h[?2004h[?1049h[22;0;0t[?1h=[?2004h[1;80r[?12h[?12l[22;2t[ |
]0;fish /Users/nhahn[30m(B[mWelcome to fish, the friendly interactive shell | |
[?2004h]0;fish /Users/nhahn[30m(B[m[38;5;237m⏎(B[m | |
⏎ | |
[K[1m[37m❰[32mnhahn[37m❙[33m~[37m[37m❱[37m[1m[32m✔[37m≻[30m(B[m [Kt[38;2;220;50;47mt[30m(B[m[38;2;220;50;47mm[30m(B[m[38;2;88;110;117mux[30m(B[m[38;2;220;50;47mu[38;2;88;110;117mx[30m(B[m[38;2;220;50;47mx[30m(B[m[38;2;238;232;213mtmux[30m(B[m[38;2;238;232;213m [30m(B[m [38;2;88;110;117m-V[30m(B[m[K | |
[30m(B[m[?2004l]0;tmux /Users/nhahn[30m(B[m | |
[?1049h[22;0;0t[?1h=[H[2J[?12l[?25h[?1000l[?1002l[?1006l[?1005l[c(B[m[?12;25h[?12l[?25h[?1003l[?1006l[?2004l[1;1H[1;71r]112[1;1H[?1006h[?1002h[?25l[K | |
[K | |
[K | |
[K | |
[K |
alert(); |
//https://thebookofshaders.com/edit.php | |
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform vec2 u_resolution; | |
uniform vec2 u_mouse; | |
uniform float u_time; |
import sys | |
import numpy as np | |
import operator | |
# def discriminant(a,b,c): | |
# return (b**2) - 4*a*c | |
# def quadratic(a,b,c): | |
# """Compute roots from a polynomial of the form ax^2 + bx + c.""" | |
# ops = [operator.add, operator.sub] |
def token_to_atom(token): | |
''' ints, floats converted, everything else string ''' | |
if token[0] in '1234567890': | |
if '.' in token: | |
return float(token) | |
return int(token) | |
return token | |
def tokens_to_tree(tokens): | |
''' take out parens, nest lists ''' |
I hereby claim:
To claim this, I am signing this object: