Skip to content

Instantly share code, notes, and snippets.

View ahcyip's full-sized avatar

Arthur Yip ahcyip

View GitHub Profile
@jiahao
jiahao / RTFM.md
Created May 9, 2013 19:13
How to add yourself to the free-food mailing list at MIT
@Uberi
Uberi / Ping.ahk
Created July 12, 2013 19:35
SimplePing - AHK library providing a variety of ICMP pinging-related functionality.
#NoEnv
/*
SimplePing
==========
AHK library providing a variety of ICMP pinging-related functionality.
Examples
--------
@lebedov
lebedov / google_finance_intraday.py
Last active February 20, 2024 09:44
Retrieve intraday stock data from Google Finance.
#!/usr/bin/env python
"""
Retrieve intraday stock data from Google Finance.
"""
import csv
import datetime
import re
import pandas as pd
@gdmcdonald
gdmcdonald / eff_fuzzy_match.R
Last active February 1, 2022 13:01
Efficient fuzzy match of two data frames by one common string column in R, outputing a list of the matching and non-matching rows
#Efficient fuzzy match of two data frames by one common column
library(dplyr)
library(fuzzyjoin)
library(stringdist)
eff_fuzzy_match<-function(data_frame_A,
data_frame_B,
by_what,
choose_p = 0.1,
choose_max_dist = 0.4,
library(tidyverse)
# Let's generate our different trials data
# and save to rds
test_if_sameness <- function(size_of_group) {
tibble(person_id = 1:size_of_group) %>%
mutate(birthday = sample(1:365, n(), replace = T)) %>%
mutate(other_dates = list(rename(., person_id1 = person_id,
birthday1 = birthday))) %>%