I hereby claim:
- I am ali01 on github.
- I am alive (https://keybase.io/alive) on keybase.
- I have a public key whose fingerprint is 1E9A DEC5 A1E5 5C37 5B87 D891 8884 8CCF 6A64 CB53
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
setopt prompt_percent prompt_subst | |
autoload colors zsh/terminfo | |
colors | |
for color in RED GREEN YELLOW BLUE MAGENTA WHITE BLACK CYAN; do | |
eval CL_$color='%{$fg[${(L)color}]%}' | |
eval CL_BOLD_$color='%{$fg_bold[${(L)color}]%}' | |
done |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | |
| S | | | | | |
+ +---+ +---+---+ +---+---+ +---+ + +---+ +---+ | |
| | | | | | | | | | |
+ +---+ + +---+ + +---+ +---+---+---+---+ + + | |
| | | | | | | | | | | | |
+ + +---+ +---+---+---+ +---+ + + + +---+ + | |
| | | | | | | | |
+---+ + +---+ +---+ + +---+ +---+ + +---+ + | |
| | | | | | | | | | |
all: | |
g++ -O2 -std=c++11 longest.cpp -o longest | |
run: longest | |
@./longest | |
clean: | |
rm -rf longest |
#!/usr/bin/env python | |
class Node(object): | |
def __init__(self, value): | |
self.value = value | |
self.left = None | |
self.right = None | |
def reconstruct_binary_tree(in_order, post_order): |
Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
import functools | |
import hashlib | |
import time | |
def memoize(secs=0): | |
'''Returns a decorator to memoize stateless functions. | |
Args: secs - Amount of time (in seconds) to keep values in the cache; | |
The argument may be a floating point number to indicate a | |
more precise timeout. |