Skip to content

Instantly share code, notes, and snippets.

View chatgpt-proofread-blog-posts.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2022-09-22-pvgis-api-question.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cs224
cs224 / 2022-09-11-time-sampling-question.ipynb
Last active September 12, 2022 05:41
Pandas: easier way to sample interpolated time series data at given times (e.g. every full day)
View 2022-09-11-time-sampling-question.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2022-09-04-pvgis-api-question.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Makefile
TAG_DATE=202112061151
py38ds-docker-base-image:
docker build -f dockerfile.base --build-arg HTTP_PROXY=${HTTP_PROXY} --build-arg HTTPS_PROXY=${HTTPS_PROXY} --build-arg http_proxy=${HTTP_PROXY} --build-arg https_proxy=${HTTPS_PROXY} --tag py38ds-docker-base-image:${TAG_DATE} --tag py38ds-docker-base-image:latest .
# docker save -o py38ds-docker-base-image.tar py38ds-docker-base-image:latest
py38ds-container:
docker run -it --rm -v $(shell readlink -f .):/root/local:ro --name py38ds py38ds-docker-base-image:latest
@cs224
cs224 / algo_execute.py
Last active July 21, 2022 12:23
Trading Evolved: Futures Trend Following
View algo_execute.py
import futures_trading
import os
from zipline.utils.run_algo import load_extensions
load_extensions(
default=True,
extensions=['/home/xxx/.zipline/extension.py'],
strict=True,
View keys.pub
BEGIN MESSAGE.
BsHrwTSOONpT3G8 8jXbIYaIvDQHW2e 4BN5OQli1sMd3Dm M93BU8bcqYJDio2
Da0WFF8xqsIAfVo XhhJ341vfgfTCKq 6Xr2MZHgg6xgZrH fQv7fSkm5T0R7Aq
VdGS7BFfZRJs0Co tgZDSlRTkLLaOn5 8MxcSiF11HSSBP9 1UXOzwURN1Z34K5
r57jievq7aePar3 PbwQW5IcsT4fASf 6bbBd.
END MESSAGE.
View keybase.md

Keybase proof

I hereby claim:

  • I am cs224 on github.
  • I am cs224 (https://keybase.io/cs224) on keybase.
  • I have a public key ASArt1TtCcEWRvSQOyAUeTpsUIWjKusAcmM6ll-Ze_IAfgo

To claim this, I am signing this object:

View 2020-10-09-futures-test-notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2020-10-09-futures-test-notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.