Skip to content

Instantly share code, notes, and snippets.

View akost's full-sized avatar
🏠
Working from home

Andrei K akost

🏠
Working from home
View GitHub Profile
@akost
akost / bfs.py
Last active July 2, 2017 22:54
Breadth-First Search
"""
Breadth-First Search for binary tree
"""
import unittest
class Node(object):
def __init__(self, data = None, left = None, right = None):
self.data = data
self.left = left
@akost
akost / dfs-inorder.py
Created July 2, 2017 23:42
Depth-First Search for binary tree. In-order traversal
"""
Depth-First Search for binary tree
In-order traversal
"""
import unittest
class Node(object):
def __init__(self, data = None, left = None, right = None):
self.data = data
@akost
akost / kids-20-inch-bike.md
Last active April 2, 2019 04:48
Kids 20" Bike Research

Kids' 20" inch bikes research (October 2018).

Requirements:

  • Good brand
  • Hand brakes (not a coaster brake)
  • Reasonable price
  • Multiple gears (except Cleary Bikes Owl)

Results:

@akost
akost / akost.zsh-theme
Created September 22, 2022 17:02
Oh-my-zsh Theme
# akost zsh theme
function get_pwd() {
print -D $PWD
}
function precmd() {
print -rP '
$fg_bold[green]%m$fg[white]:$(get_pwd)$reset_color $(git_prompt_info)'
}