I hereby claim:
- I am mlgill on github.
- I am mlgill (https://keybase.io/mlgill) on keybase.
- I have a public key whose fingerprint is 64D5 7A40 E2C2 1E49 EF96 F194 E45F 4767 96F8 74BB
To claim this, I am signing this object:
| #!/bin/bash | |
| # Michelle L. Gill | |
| # 2014/10/25 | |
| # For use with Today Scripts | |
| # http://www.reddit.com/r/osx/comments/2k24ps/today_scripts_widget_update_colorized_output | |
| # Inspired by: https://gist.github.com/anonymous/470bb40b05173fdb6348 | |
| # Set this to "cpu" or "mem" | |
| procname="cpu" |
| #!/bin/bash | |
| # The "tmuxifier" | |
| # Execute parallel processes in an arbitrary number of tmux panes | |
| # This script requires the path to an existing script to | |
| # execute in parallel. Optionally, the number of threads to | |
| # and the name of the tmux session can be input. If threads | |
| # and session name are not entered, threads are determined | |
| # automatically and session names is set to a default. |
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
| import re, hashlib, uuid, json, random, os, urllib2, os.path, time, sys, SimpleHTTPServer, SocketServer, string, console, webbrowser, shutil, zipfile | |
| class SmarterHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
| server_version = 'SimpleHTTP/0.6' | |
| file_name = '' | |
| def do_GET(self): | |
| if self.path.startswith('/transfer'): | |
| self.get_transfer() | |
| else: | |
| f = self.send_head() |
| import multiprocessing | |
| import pandas as pd | |
| import numpy as np | |
| def _apply_df(args): | |
| df, func, kwargs = args | |
| return df.apply(func, **kwargs) | |
| def apply_by_multiprocessing(df, func, **kwargs): | |
| workers = kwargs.pop('workers') |
| #!/usr/bin/env python | |
| """ | |
| Starts a Tornado static file server in a given directory. | |
| To start the server in the current directory: | |
| tserv . | |
| Then go to http://localhost:8000 to browse the directory. | |
| Use the --prefix option to add a prefix to the served URL, |
I hereby claim:
To claim this, I am signing this object:
| # taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
| # generate server.xml with the following command: | |
| # openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
| # run as follows: | |
| # python simple-https-server.py | |
| # then in your browser, visit: | |
| # https://localhost:4443 | |
| import BaseHTTPServer, SimpleHTTPServer | |
| import ssl |