Skip to content

Instantly share code, notes, and snippets.

View HanjoStudy's full-sized avatar

HanjoStudy

  • Cape Town
View GitHub Profile
@tyleransom
tyleransom / linking_with_embeddings.R
Last active March 31, 2025 20:08
Using embeddings to fuzzy match databases
library(tidyverse)
library(openai)
#-------------------------------------------------------------------------------
# Step 1: Open AI API key
#-------------------------------------------------------------------------------
# Your OpenAI API key should be an environment variable you set in ~.Renviron
# ... you should never put your API key directly in your code!
@HanjoStudy
HanjoStudy / RSelenium.R
Last active November 10, 2023 02:15
useR2018
##########################################################
#
# HANJO ODENDAAL
# [email protected]
# www.daeconomist.com
# @UbuntR314
# https://github.com/HanjoStudy
#
#
# ██████╗ ███████╗███████╗██╗ ███████╗███╗ ██╗██╗██╗ ██╗███╗ ███╗
# This example demonstrates running furrr code distributed on 2 AWS instances ("nodes").
# The instances have already been created.
library(future)
library(furrr)
# Two t2.micro AWS instances
# Created from http://www.louisaslett.com/RStudio_AMI/
public_ip <- c("34.205.155.182", "34.201.26.217")