Skip to content

Instantly share code, notes, and snippets.

View CEC Inverters.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 17 columns, instead of 7. in line 7.
Name,Vac,Pso,Paco,Pdco,Vdco,C0,C1,C2,C3,Pnt,Vdcmax,Idcmax,Mppt_low,Mppt_high,CEC_Date,CEC_hybrid
Units,V,W,W,W,V,1/W,1/V,1/V,1/V,W,V,A,V,V,,
[0],inv_snl_ac_voltage,inv_snl_pso,inv_snl_paco,inv_snl_pdco,inv_snl_vdco,inv_snl_c0,inv_snl_c1,inv_snl_c2,inv_snl_c3,inv_snl_pnt,inv_snl_vdcmax,inv_snl_idcmax,inv_snl_mppt_low,inv_snl_mppt_hi,inv_cec_date,inv_cec_hybrid
ABB: PVI-3.0-OUTD-S-US-A [208V],208,18.1674,3000,3142.3,310,-8.03947e-06,-1.10257e-05,0.000998581,-0.000287238,0.1,480,10.1365,100,480,10/15/2018,N
ABB: PVI-3.0-OUTD-S-US-A [240V],240,16.8813,3000,3121.67,340,-5.7019e-06,-2.119e-05,0.000583014,-0.000712316,0.1,480,9.18138,100,480,10/15/2018,N
ABB: PVI-3.0-OUTD-S-US-A [277V],277,22.0466,3000,3106.85,390,-5.46446e-06,-3.3181e-05,-3.20526e-05,-0.00118014,0.2,480,7.96628,100,480,10/15/2018,N
ABB: PVI-3.0-OUTD-S-US-Z-A [208V],208,18.1674,3000,3142.3,310,-8.03947e-06,-1.10257e-05,0.000998581,-0.000287238,0.1,480,10.1365,100,480,10/15/2018,N
ABB: PVI-3.0-OUTD-S-US-Z-A [240V],240,16.8813,3000,3121.67,340,-5.7019
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 docker-find-image-tag-version.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cs224
cs224 / algo_execute.py
Last active June 14, 2023 15:04
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,
@cs224
cs224 / pyjags_rain_sprinkler_grass_simple_bayesian_network.py
Last active October 27, 2022 17:57
Simple Bayesian Network via Monte Carlo Markov Chain in PyMC3
View pyjags_rain_sprinkler_grass_simple_bayesian_network.py
import math
import pyjags
import numpy as np
import pandas as pd
np.random.seed(0)
np.set_printoptions(precision=3)
def pyjags_trace():
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
View keys.pub
BEGIN MESSAGE.
BsHrwTSOONpT3G8 8jXbIYaIvDQHW2e 4BN5OQli1sMd3Dm M93BU8bcqYJDio2
Da0WFF8xqsIAfVo XhhJ341vfgfTCKq 6Xr2MZHgg6xgZrH fQv7fSkm5T0R7Aq
VdGS7BFfZRJs0Co tgZDSlRTkLLaOn5 8MxcSiF11HSSBP9 1UXOzwURN1Z34K5
r57jievq7aePar3 PbwQW5IcsT4fASf 6bbBd.
END MESSAGE.