start new:
tmux
start new with session name:
tmux new -s myname
#!/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 |
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: |
A warning occurred (42 apples) | |
An error occurred |
#coding: utf-8 | |
from nose.plugins.skip import SkipTest | |
from mongoengine.python_support import PY3 | |
from mongoengine import connect | |
try: | |
from django.test import TestCase | |
from django.conf import settings | |
except Exception as err: |
Find it here: https://github.com/bitemyapp/learnhaskell