A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
A warning occurred (42 apples) | |
An error occurred |
import os | |
def split(filehandler, delimiter=',', row_limit=10000, | |
output_name_template='output_%s.csv', output_path='.', keep_headers=True): | |
""" | |
Splits a CSV file into multiple pieces. | |
A quick bastardization of the Python CSV library. | |
Arguments: |
#!/usr/bin/env python | |
# let's cheat at scrabble | |
def count_letters(word): | |
count = {} | |
for letter in word: | |
if letter not in count: count[letter] = 0 | |
count[letter] += 1 | |
return count |