Save this thing in your
~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
folder.
Oh, and drop the .xml file extension at the end.
| #!/bin/bash | |
| word=$1 | |
| word=${word// /_} | |
| word=`echo "$word" | tr '[:upper:]' '[:lower:]'` | |
| echo $word; |
| #!/bin/bash | |
| COUNTER=1 | |
| for line in $(cat list_of_extreme_sports.txt); do | |
| url=$(echo "$line" | cut -d'|' -s -f2) # split on pipe sep and take 2nd col | |
| if [ ! -z "$url" -a "$url" != " " ]; then # ensure not empty string. | |
| if [[ "$url" == http* ]]; then # check that it starts with http | |
| OUTFILE="outfile_${COUNTER}" | |
| ~/Workspace/Repositories/opensource/table2csv/table2csv/table2csv $url --save $OUTFILE |
| import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| from ggplot import meat | |
| def lowess(x, y, f=2/3., iter=3): | |
| n = len(x) | |
| r = int(np.ceil(f * n)) | |
| h = [np.sort(abs(x - x[i]))[r] for i in range(n)] | |
| w = np.clip(abs(([x] - np.transpose([x])) / h), 0.0, 1.0) |
| import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| from ggplot import meat | |
| from statsmodels.nonparametric.smoothers_lowess import lowess | |
| df = meat[['beef','veal']] | |
| df = df.sort_index(by=['beef']) | |
| x = meat.beef.values | |
| y = meat.veal.values |
Save this thing in your
~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
folder.
Oh, and drop the .xml file extension at the end.
| [ | |
| { | |
| "keys": ["alt+minus"], | |
| "command": "insert", | |
| "args": | |
| { | |
| "characters": " <- " | |
| }, | |
| "context": [ | |
| { |