This file contains 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
k = hs.hotkey.modal.new('ctrl-shift', 'n') | |
function k:entered() hs.alert'Virtual Numpad' end | |
function k:exited() hs.alert'Exit Virtual Numpad' end | |
k:bind('ctrl-shift', 'n', function() k:exit() end) | |
hs.fnutils.each({ | |
{ key='j', padkey='pad1'}, | |
{ key='k', padkey='pad2'}, | |
{ key='l', padkey='pad3'}, | |
{ key='u', padkey='pad4'}, |
This file contains 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
# find top 10 largest files | |
git rev-list --objects --all | grep -f <(git verify-pack -v .git/objects/pack/*.idx| sort -k 3 -n | cut -f 1 -d " " | tail -10) | |
# clean repo | |
git filter-branch --index-filter 'git rm --cached --ignore-unmatch *.mov' -- --all | |
rm -Rf .git/refs/original | |
rm -Rf .git/logs/ | |
git gc --aggressive --prune=now | |
# push changes |
This file contains 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
# define stopwords to remove in word cloud | |
# some of these words were not useful in describing an area | |
# others were just so obvious that they appeared too much to be useful | |
stopwords = set(STOPWORDS) | |
unigram_stopwords = ["clean", "nice", "perfect", "austin", "great", "place", "stay", "definitely", | |
"would", "host", "house", "location", "home", "beautiful", "highly", "recommend", | |
"comfortable", "space", "would", "us", "everything", "'s", "bed", "amazing", | |
"room", "apartment", "ing", "really", "loved", "wonderful", "good", "needed", | |
"time", "thank", "need", "ed"] |
This file contains 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 pandas as pd | |
df = pd.read_csv("Global Temperature Anomalies.csv") | |
print(df.columns) | |
# parameter values | |
id_vars = ['Hemisphere', 'Year'] | |
cols_to_pivot = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', | |
'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'J-D', 'D-N', 'DJF', 'MAM', 'JJA', | |
'SON'] |
NewerOlder