Skip to content

Instantly share code, notes, and snippets.

@ctung
ctung / covid19_death_prob.py
Last active March 6, 2020 13:41
covid-19 death probability function
#! python3
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick
import datetime
import numpy as np
from lmfit import Parameters, fit_report, minimize
from pprint import pprint
from scipy.stats import norm
@ctung
ctung / rfid
Last active August 17, 2020 16:31
Arduino RFID Electric Door Lock Control using PN532 Mifare Reader
//Library Imports
#include <SoftwareSerial.h>
#include <EEPROM.h>
#define doorPin 6
//START USER EDIT
const int SOFT_RX = 3;
const int SOFT_TX = 10;
const int CARD_SIZE = 4;
byte MASTER_ADD[4] = {0xAB,0xCD,0xEF,0x12};