Skip to content

Instantly share code, notes, and snippets.


snosrap snosrap

View GitHub Profile
jpryda / scdc_rxcui_ndc.sql
Last active October 25, 2022 06:33
Mapping from RxNorm to NDC [Brand/Generic RXCUI (SCD/SBD/GPCK/BPCK) and SCDC Crosswalks]
View scdc_rxcui_ndc.sql
RxNorm SCDC and Brand/Generic RXCUI (SCD/SBD/GPCK/BPCK) to NDC Crosswalks
We care about semantically defined RxNorm normal forms for clinical/branded drugs and packs ONLY.
Certain NDCs that are associated with Non-RxNorm Concepts are ignored even though these may occur (infrequently) in real data.
rspeare /
Last active April 3, 2023 01:01
P values for sklearn logistic regression
from sklearn import linear_model
import numpy as np
import scipy.stats as stat
class LogisticReg:
Wrapper Class for Logistic Regression which has the usual sklearn instance
in an attribute self.model, and pvalues, z scores and estimated
errors for each coefficient in
View promise_series.js
let itemIDs = [1, 2, 3, 4, 5];
itemIDs.reduce((promise, itemID) => {
return promise.then(_ => api.deleteItem(itemID));
}, Promise.resolve());
sebsto / gist:19b99f1fa1f32cae5d00
Created August 8, 2014 15:53
Install Maven with Yum on Amazon Linux
View gist:19b99f1fa1f32cae5d00
sudo wget -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn --version
lexrus / HD.txt
Last active December 19, 2021 05:41
All WWDC 2013 Session Videos URLs in dumped with Chrome. You can download these videos **without** a Apple developer account by running the script. There is also a sample code downloader here:
View HD.txt
jedsundwall / gist:586144
Created September 18, 2010 23:00
CSS to add commas to items in an unordered list without leaving a comma hanging at the end of the list
View gist:586144
ul.tags {
display: inline;
margin: 0;
padding: 0;
ul.tags li {
display: inline;
list-style: none;
margin: 0;