This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import subprocess | |
| from string import ascii_letters | |
| from optparse import OptionParser | |
| parser = OptionParser() | |
| parser.add_option( | |
| "-y", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http.server | |
| import socketserver | |
| from http import HTTPStatus | |
| class Handler(http.server.SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| self.send_response(HTTPStatus.OK) | |
| self.end_headers() | |
| self.wfile.write(b'Hello world') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # props: https://stackoverflow.com/questions/3515597/add-only-non-whitespace-changes#answer-7149602 | |
| git diff -U0 -w --no-color | git apply --cached --ignore-whitespace --unidiff-zero |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Convert Yelp Academic Dataset from JSON to CSV | |
| Requires Pandas (https://pypi.python.org/pypi/pandas) | |
| By Paul Butler, No Rights Reserved | |
| ''' | |
| import json | |
| import pandas as pd |