Skip to content

Instantly share code, notes, and snippets.

View Roasbeef's full-sized avatar
🏂
squad up 🏂

Olaoluwa Osuntokun Roasbeef

🏂
squad up 🏂
View GitHub Profile
@hrldcpr
hrldcpr / tree.md
Last active September 1, 2024 07:04
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@v-yarotsky
v-yarotsky / .tmux.conf
Created March 22, 2012 11:57
Mac OS X tmux config
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH
@sandrogauci
sandrogauci / portforwarder.py
Last active August 14, 2024 07:24
An example of a port forwarder in python's new asyncio stdlib. Comments and corrections welcome
#!/usr/bin/env python
# encoding: utf-8
"""
portforwarder.py
Created by Sandro Gauci on 2014-03-18.
"""
import sys
import os