Skip to content

Instantly share code, notes, and snippets.

View celestialized's full-sized avatar

You got this. celestialized

View GitHub Profile

Notes on Modern UI Development: Taking Ideas from Spaced Repetition

Introduction

I have been working on a modern typing training application for the last couple of days. One of the main motivations was to build an app with a modern UI and minimal distractions, enabling to fully focus on the training aspect. You can read more about the original idea and thought process here as well as some notes on iterating over the details here.

After adding some minimal auto close functionalities for the code training section, you can read about it here, another important feature was to make the text training part more entertaining.

@celestialized
celestialized / 00_SQL in Google Colab.md
Created February 15, 2022 15:11 — forked from stephenleo/00_SQL in Google Colab.md
[Medium] SQL in Google Colab

SQL in Google Colab

All the code for the Medium Post

Open In Colab

<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//

2015 Fdic Compliance And Procedure Manual Template==============================>>> DOWNLOAD <<<==============================2015 Fdic Compliance And Procedure Manual TemplateEnjoy the rich rewards one of the largest the Bobcat 753 series. 2015 fdic compliance and procedure manual template user manu By Sakuya Oikawa save 2015 fdic compliance and procedure manual template user manuals. 2015 Fdic Compliance And

@celestialized
celestialized / download_and_pickle_stories.py
Created February 3, 2021 15:23 — forked from glarrain/download_and_pickle_stories.py
Exporting data from Pivotal Tracker is a pain in the ass. The following scripts let you download all the stories of a given project, and then (optionally) extract all the attachments linked to those, and download them
"""Download stories of a Pivotal Tracker project.
You need the project ID (an int) and your API token. The latter can be
obtained in ``https://www.pivotaltracker.com/profile``, or using curl::
$ curl -u username:password -X GET https://www.pivotaltracker.com/services/v3/tokens/active
"""
import getpass
import pickle
import spacy
nlp = spacy.load('en_core_web_sm')
doc = nlp("The 22-year-old recently won ATP Challenger tournament.")
for tok in doc:
print(tok.text, "...", tok.dep_)
/*
* Meteor Shower posted by Chemdoc77
* Based on the outstanding MeteorShower sketch by Jon Burroughs as seen in Adam bluebottleyellowboxyellyfish’s clock
* which Chemdoc77 slightly modified.
*/
#include <FastLED.h>
#define LED_PIN 6
## This is a simple script to download comments from /r/utahjazz,
## look for bigrams that start with "G" then "H" (or vice versa),
## filter out likely non-names, and print them.
# Imports
import requests
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
@celestialized
celestialized / gist:e6a76b6b562d7edc1585564363b9a939
Created December 31, 2020 03:24 — forked from axsk/gist:879cb2887290650c3baf
Serialize/Deserialize segfault
signal (11): Segmentation fault [66/1088]
unknown function (ip: 0x7fe6892e0fb9)
jl_gc_collect at /nfs/datanumerik/bzfsikor/julia/julia-0.4.3/bin/../lib/julia/libjulia.so (unknown line)
jl_gc_alloc_2w at /nfs/datanumerik/bzfsikor/julia/julia-0.4.3/bin/../lib/julia/libjulia.so (unknown line)
jl_alloc_svec_uninit at /nfs/datanumerik/bzfsikor/julia/julia-0.4.3/bin/../lib/julia/libjulia.so (unknown line)
jl_alloc_svec at /nfs/datanumerik/bzfsikor/julia/julia-0.4.3/bin/../lib/julia/libjulia.so (unknown line)
unknown function (ip: 0x7fe689263015)
unknown function (ip: 0x7fe6892638d1)
unknown function (ip: 0x7fe6892641df)
unknown function (ip: 0x7fe68926835b)

Pfizer's vaccine effectiveness simulation

Just for fun 😄. I saw this post about Pfizer's Vaccine Effectiveness Simulation. So I simply translate the Bayesian model (implemented in Stan) into my favorite Julia library Turing.jl. For details, please read the link.

Very briefly, from Vaccine Effectiveness Simulation

NYT reports a 44 thousand person trial with half of the people going to treatment and half to control. They further report that 162 people developed COVID in the control group and 8 where in the vaccine group. What is the probability that the vaccine is effective and what is the uncertainty in that probability? The Pfizer protocol defines vaccine effectiveness as follows:

equation