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
#### SINGULARIZE ######################################################### | |
# Adapted from Bermi Ferrer's Inflector for Python: | |
# http://www.bermi.org/inflector/ | |
# Copyright (c) 2006 Bermi Ferrer Martinez | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software to deal in this software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, | |
# distribute, sublicense, and/or sell copies of this software, and to permit | |
# persons to whom this software is furnished to do so, subject to the following |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// ==UserScript== | |
// @name Twitter Promoted | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Get rid of stupid promoted tweets | |
// @author Mac Gaulin | |
// @match http*://twitter.com/* | |
// @grant none | |
// ==/UserScript== |
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
# Don't display the copyright page | |
startup_message off | |
# keep scrollback n lines | |
defscrollback 3000 | |
# load ipython and my flask site in background, zsh in foreground. | |
screen -t py 0 bash -c 'jupyter lab; exec bash' | |
screen -t htop 1 bash -c 'htop; exec bash' | |
screen 2 zsh |
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
Accounting: | |
_($* #,##0_);[Red]_($* (#,##0);_($* "-"_);_(@_) | |
* Left align $, parenthesis and red for negatives, - for 0, empty for empty. |
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
from IPython.display import display | |
import ipywidgets | |
df = list(range(100)) | |
f = ipywidgets.FloatProgress(min=0, max=len(df)) | |
out = ipywidgets.Output() | |
display(f, out) | |
for i in df: |
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
from io import BytesIO | |
from zipfile import ZipFile | |
import requests | |
def download_ffind_zip(ind_num): | |
zip_url = ('http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/Siccodes{}.zip' | |
.format(ind_num)) | |
data = requests.get(zip_url) | |
zipfile = ZipFile(BytesIO(data.content)) |
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
/*******************READ ME********************************************* | |
* - Macro to download and parse the Fama French Factors - | |
* | |
* SAS VERSION: 9.4.0 | |
* DATE: 2015-12-15 | |
* AUTHOR: gaulinmp (@gmail) | |
* ORIGIN: edwinhu (https://gist.github.com/edwinhu/9397971) | |
* | |
****************END OF READ ME******************************************/ | |
%macro GET_FFDATA(file=, |
NewerOlder