Skip to content

Instantly share code, notes, and snippets.

View pzelnip's full-sized avatar
🤷‍♂️

Adam Parkin pzelnip

🤷‍♂️
View GitHub Profile

iTerm2 – Useful Shortcuts (Mac OS X)

with a hat tip to Sublime Text 2 Shortcuts

The Awesome

⌘; autocomplete
⌘⌥B instant replay
⌘⌥E search across all tabs
import random
import timeit
from copy import deepcopy
def inter_reduce(sets):
return reduce(set.intersection, sets)
def inter_for_deepcopy(sets):
sets = iter(sets)
result = deepcopy(next(sets))