Skip to content

Instantly share code, notes, and snippets.

View leliel12's full-sized avatar
😡
always angry

Juan BC leliel12

😡
always angry
View GitHub Profile
import functools
import matplotlib.pyplot as plt
import attr
def plot_method(method):

MEDICAL STUDENT COVID-19 CURRICULUM

On March 15, a group of students at Harvard Medical School created a Response Team to organize their efforts against the COVID-19 pandemic.  They identified two main opportunities for impact: education and activism. Education efforts have resulted in this curriculum intended for the medical community and a public-facing social media campaign (see @FutureMDvsCOVID).  Activism work has involved coordinating ways that students can provide on-the-ground help in both the community and clinical settings. For inquiries about the HMS COVID-19 Student Response Team’s efforts, please contact: hmscovid19studentresponse@gmail.com.

This curriculum was entirely written and compiled by Harvard Medical School students.  This document is not an official publication of the institution. It is provided for educational purposes only and does not constitute medical advi

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.
from django import forms
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
import datetime #for checking renewal date range.
class RenewBookForm(forms.Form):
renewal_date = forms.DateField(help_text="Enter a date between now and 4 weeks (default 3).")
def clean_renewal_date(self):
import numpy as np
from scipy import stats
MIN, MAX = -1, 1
def rankdata(arr, reverse=False):
"""Evaluate an array and return a 1 based ranking."""
if reverse:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 12 columns, instead of 3 in line 8.
ra,dec,beamc_ra,beamc_dec,beamc_separation,beamc_law,beamc_l,beamc_b,beamc_box,beamc_ejk,beamc_ak,beamc_err_ejk
271.40109167,-30.7174277778,271.401113498,-30.7173854583,4.62934959318e-05,Cardelli89,0.6398,-4.6416,1.001,0.269,0.185,0.109
270.592316668,-30.6585166665,270.592327256,-30.6584687957,4.87295753032e-05,Cardelli89,0.3518,-4.0054,1.001,0.324,0.223,0.1037
271.326629168,-30.0354805555,271.326656593,-30.0354763623,2.4110125217e-05,Cardelli89,1.2069,-4.255,1.001,0.364,0.251,0.1131
271.286491667,-30.2098972227,271.286563414,-30.2098815483,6.39540889949e-05,Cardelli89,1.0371,-4.3093,1.001,0.348,0.24,0.1031
270.576154165,-30.375680556,270.576158332,-30.3757296116,4.91871430857e-05,Cardelli89,0.592,-3.8547,1.001,0.267,0.184,0.1018
271.404962502,-30.3089361109,271.404977255,-30.3089813972,4.70431825763e-05,Cardelli89,0.9999,-4.4468,1.001,0.322,0.222,0.1063
270.334829163,-30.5519833334,270.334816892,-30.5519202836,6.39292193036e-05,Cardelli89,0.3358,-3.76,1.001,0.278,0.192,0.0994
271.085645833,-30.7757055555,271
0.42705284 -4.09348647 1.001 1
1.45215851 -4.79991379 1.001 1
1.06828761 -4.20349923 1.001 1
0.44159950 -4.09614349 1.001 1
0.75324641 -3.96299264 1.001 1
1.68157711 -4.19523316 1.001 1
0.48150786 -4.45559507 1.001 1
1.63104413 -4.17417312 1.001 1
1.55270468 -4.31257562 1.001 1
0.68345227 -4.40690652 1.001 1
0.80297284 -4.02555287 1.001 1
1.22249419 -3.92259041 1.001 1
1.56232984 -4.25969847 1.001 1
0.84753401 -4.74787677 1.001 1
0.69543056 -3.99471421 1.001 1
0.35136245 -4.32286774 1.001 1
0.89684464 -4.18486532 1.001 1
0.57291548 -4.08049040 1.001 1
1.32813309 -4.51054337 1.001 1
1.25878090 -4.35573667 1.001 1