Skip to content

Instantly share code, notes, and snippets.

View linwoodc3's full-sized avatar

Linwood Creekmore linwoodc3

  • United States
View GitHub Profile
@linwoodc3
linwoodc3 / nba.py
Created January 31, 2015 20:07
From Ben Bengfort
# nba
# Analyzes the NBA Salary to PER data set
#
# Author: Benjamin Bengfort <[email protected]>
# Created: Sat Sep 20 09:35:11 2014 -0400
#
# Copyright (C) 2014 Bengfort.com
# For license information, see LICENSE.txt
#
# ID: nba.py [] [email protected] $
@linwoodc3
linwoodc3 / lin_nba_player_salary_stats.py
Created January 31, 2015 20:10
This summarizes the salary of NBA players. Eventually, I will compare the salary to the player efficiency rating.
__author__ = 'Linwood Creekmore'
## Wrote this for Software Engineering for Data Class ##
## My first solo creation
import csv
f = open('nba_players.csv')
csv_f = csv.reader(f)
@linwoodc3
linwoodc3 / polyglotOnMacOSX35.sh
Last active January 23, 2023 03:28
Bash script that successfully installs the polyglot multilingual text (NLP) processing toolkit on a MacOSX computer with Python 3 and Anaconda
#!/bin/bash
# Author:
# Linwood Creekmore
# email: [email protected]
# navigate to home directory; just for clean start
cd ~ &&
# exit out of whatever conda environment you are in
@linwoodc3
linwoodc3 / polyglotOnMacOSXPython27.sh
Last active September 1, 2018 14:32
Bash script that successfully installs the polyglot multilingual text (NLP) processing toolkit on a MacOSX computer with Python 2.7 and Anaconda.
#!/bin/bash
# Author:
# Linwood Creekmore
# email: [email protected]
# navigate to home directory; just for clean start
cd ~ &&
# exit out of whatever conda environment you are in
@linwoodc3
linwoodc3 / keyholemarkup_converter.py
Last active June 24, 2024 17:50
Convert KML/KMZ to CSV or KML/KMZ to shapefile or KML/KMZ to Dataframe or KML/KMZ to GeoJSON. Full script with classes to convert a KML or KMZ to GeoJSON, ESRI Shapefile, Pandas Dataframe, GeoPandas GeoDataframe, or CSV. Can write the converted file directly to disk with no human intervention.
# Author:
# Linwood Creekmore III
# email: [email protected]
# Acknowledgements:
# http://programmingadvent.blogspot.com/2013/06/kmzkml-file-parsing-with-python.html
# http://gis.stackexchange.com/questions/159681/geopandas-cant-save-geojson
# https://gist.github.com/mciantyre/32ff2c2d5cd9515c1ee7
@linwoodc3
linwoodc3 / jupyternotebookdebug.log
Created January 12, 2017 07:28
Log output of Jupyter Notebook debug
[D 02:18:44.009 NotebookApp] Searching ['/Users/linwood/projects', '/Users/linwood/.jupyter', '/Users/linwood/anaconda3/envs/scipyML/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 02:18:44.010 NotebookApp] Looking for jupyter_config in /etc/jupyter
[D 02:18:44.010 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 02:18:44.010 NotebookApp] Looking for jupyter_config in /Users/linwood/anaconda3/envs/scipyML/etc/jupyter
[D 02:18:44.011 NotebookApp] Looking for jupyter_config in /Users/linwood/.jupyter
[D 02:18:44.011 NotebookApp] Looking for jupyter_config in /Users/linwood/projects
[D 02:18:44.012 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 02:18:44.012 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 02:18:44.012 NotebookApp] Looking for jupyter_notebook_config in /Users/linwood/anaconda3/envs/scipyML/etc/jupyter
[D 02:18:44.034 NotebookApp] Loaded config file: /Users/linwood/anaconda3/envs/scipyML/etc/jupyter/
@linwoodc3
linwoodc3 / jupyterlog.log
Created January 14, 2017 20:21
another jupyter log
[D 15:17:30.243 NotebookApp] Searching ['/Users/linwood', '/Users/linwood/.jupyter', '/Users/linwood/anaconda3/envs/scipyML/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 15:17:30.244 NotebookApp] Looking for jupyter_config in /etc/jupyter
[D 15:17:30.244 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 15:17:30.244 NotebookApp] Looking for jupyter_config in /Users/linwood/anaconda3/envs/scipyML/etc/jupyter
[D 15:17:30.245 NotebookApp] Looking for jupyter_config in /Users/linwood/.jupyter
[D 15:17:30.245 NotebookApp] Looking for jupyter_config in /Users/linwood
[D 15:17:30.246 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 15:17:30.246 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 15:17:30.246 NotebookApp] Looking for jupyter_notebook_config in /Users/linwood/anaconda3/envs/scipyML/etc/jupyter
[D 15:17:30.246 NotebookApp] Loaded config file: /Users/linwood/anaconda3/envs/scipyML/etc/jupyter/jupyter_notebook_c
@linwoodc3
linwoodc3 / jupytercontribnbextensioninstall.log
Created January 15, 2017 02:16
jupyter contrib nbextension install --user log
[I 21:11:04 InstallContribNbextensionsApp] jupyter contrib nbextension install --user
[I 21:11:04 InstallContribNbextensionsApp] Installing jupyter_contrib_nbextensions nbextension files to jupyter data directory
[I 21:11:04 InstallContribNbextensionsApp] Installing /Users/linwood/anaconda3/lib/python3.5/site-packages/jupyter_contrib_nbextensions/nbextensions/code_prettify -> code_prettify
[I 21:11:04 InstallContribNbextensionsApp] Up to date: /Users/linwood/Library/Jupyter/nbextensions/code_prettify/code_prettify.js
[I 21:11:04 InstallContribNbextensionsApp] Up to date: /Users/linwood/Library/Jupyter/nbextensions/code_prettify/code_prettify.yaml
[I 21:11:04 InstallContribNbextensionsApp] Up to date: /Users/linwood/Library/Jupyter/nbextensions/code_prettify/demo-jv.gif
[I 21:11:04 InstallContribNbextensionsApp] Up to date: /Users/linwood/Library/Jupyter/nbextensions/code_prettify/demo-py.gif
[I 21:11:04 InstallContribNbextensionsApp] Up to date: /Users/linwood/Library/Jupyter/nbextensions/code_prettify/demo-R
@linwoodc3
linwoodc3 / nba_data_utils.py
Last active February 25, 2017 21:10
Utility functions to clean ESPN.com's NBA data.
# By: Linwood Creekmore
# https://www.linkedin.com/in/linwood-creekmore-iii-a2174538/
from dateutil.parser import parse
from concurrent.futures import ProcessPoolExecutor
from functools import partial
import datetime
import re
import numpy as np
import pandas as pd
@linwoodc3
linwoodc3 / cleantweets.py
Last active January 19, 2021 22:58
Python script that uses the python Twitter client (https://github.com/sixohsix/twitter) to pull tweets that are geolocated. Optionally stores in efficient columnar parquet data store with configurable file sizes. Took 13 secs to download 100 geolocated tweets on MacOS 10.12 with 16 GB RAM on 82 Mb/s connection.
# Author
# Linwood Creekmore III
# April 8 2017
# heavy input from http://socialmedia-class.org/twittertutorial.html
# [email protected]
import re
import copy
import numpy as np
import pandas as pd