Skip to content

Instantly share code, notes, and snippets.

View lithiumfrost's full-sized avatar

Nathaniel Vos lithiumfrost

  • Alberta, Canada
View GitHub Profile
from typing import Dict, Set
import os
import re
import requests
from bs4 import BeautifulSoup
from sqlalchemy import create_engine, select, String, Column, MetaData
from sqlalchemy.orm import Session, declarative_base
CONNSTR = os.environ.get("DB_CONNECTION_STRING")
telegram_key = os.environ.get("TELEGRAM_KEY")
@lithiumfrost
lithiumfrost / get_emails.fsx
Created February 22, 2023 07:02
Pull out emails matching critera
#r "nuget:MimeKit"
open System.IO
open System.Text.RegularExpressions
open MimeKit
let (=~) (input: InternetAddressList) pattern =
input
|> Seq.exists (fun addr ->
(import 'java.time.format.DateTimeFormatter
'java.time.LocalDateTime)
(require '[org.httpkit.client :as hk])
(def previous-year
(let [date (LocalDateTime/now)
formatter (DateTimeFormatter/ofPattern "yyyy")]
(-> (.format date formatter)
(Integer/parseInt)

Keybase proof

I hereby claim:

  • I am lithiumfrost on github.
  • I am protium (https://keybase.io/protium) on keybase.
  • I have a public key ASAzLZWaJMXepTeIsPd0EwWNfIvwZOj0AZOtMc0qYtx2dAo

To claim this, I am signing this object: