Skip to content

Instantly share code, notes, and snippets.

View ZhipengHe's full-sized avatar
💯

Zhipeng He ZhipengHe

💯
View GitHub Profile
@ZhipengHe
ZhipengHe / lstm-autoencoder.ipynb
Created May 3, 2024 06:14
LSTM Autoencoder.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ZhipengHe
ZhipengHe / mimiciv-ed.ps1
Last active January 31, 2023 01:42
Load MIMIC-ED to PSQL
# change path
cd ~\Downloads\mimic-iv-ed\buildmimic\postgres
# create schemas and tables
psql -U postgres -d mimiciv -f .\create.sql
psql -U postgres -d mimiciv -v mimic_data_dir='C:\Users\n10599070\Downloads\mimic-iv-ed-2.2\ed' -v ON_ERROR_STOP=1 -f load_gz.sql
psql -U postgres -d mimiciv -f .\index.sql
@ZhipengHe
ZhipengHe / lowprofool_l_1-norm_bugs.ipynb
Created December 14, 2022 05:43
LowProFool_L_1-norm_Bugs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ZhipengHe
ZhipengHe / owid-vaccination.js
Last active September 5, 2021 10:05
owid covid vaccinations
$.when(
$.getJSON('https://cdn.jsdelivr.net/npm/emoji-flags@1.3.0/data.json'),
$.getJSON('vaccinations.json')
).done(function (res0, res1) {
var flags = res0[0];
var data = res1[0];
var years = [];
}
)
@ZhipengHe
ZhipengHe / import_my_own_package.py
Last active August 1, 2021 09:22
Tips for importing my own python packages
import inspect
import os
import sys
current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir)
import my_own_package