As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
I hereby claim:
To claim this, I am signing this object:
| # !/usr/bin/env python | |
| # | |
| # Initial Author: Samuel C. Liu <[email protected]> | |
| # | |
| # Description: Parse smash.gg to get current numbers for James. | |
| # | |
| # requirements.txt: | |
| # beautifulsoup4 == 4.4.1 | |
| from bs4 import BeautifulSoup | |
| import os |
| class ColorPrinter(object): | |
| """Class to print with color.""" | |
| def __init__(self): | |
| self.colors = { | |
| "HEADER": '\033[95m', | |
| "OKBLUE": '\033[94m', | |
| "OKGREEN": '\033[92m', | |
| "WARNING": '\033[93m', | |
| "FAIL": '\033[91m', | |
| "ENDC": '\033[0m', |
| Verifying I am +samliu on my passcard. https://onename.com/samliu |
| # textanalysis.py | |
| # | |
| # Analyzing iphone text message csv dump from iBackup Viewer | |
| # (http://www.imactools.com/iphonebackupviewer/) | |
| # | |
| # Requirements: | |
| # - WordCloud (http://github.com/amueller/word_cloud) | |
| # | |
| # How to use: | |
| # 1. Generate csv dump via iphonebackupviewer and point to it in __main__ |
| #!/usr/bin/env python | |
| from datetime import datetime, timedelta | |
| import time | |
| import sys | |
| import os | |
| if len(sys.argv) is 3: | |
| music_service = str(sys.argv[1]) | |
| minutes_to_wait = float(sys.argv[2]) | |
| else: |
| # Enable us to call scrapy from manage.py | |
| from __future__ import absolute_import | |
| from django.core.management.base import BaseCommand | |
| class Command(BaseCommand): | |
| def run_from_argv(self, argv): | |
| self._argv = argv | |
| self.execute() |
| require 'open-uri' | |
| # url dsl -- the ultimate url dsl! | |
| # | |
| # You just can't beat this: | |
| # | |
| # $ irb -r url_dsl | |
| # >> include URLDSL | |
| # => Object | |
| # >> http://github.com/defunkt.json |