[
?style=flat&logo=github&label=Commits%20since%20last%20theme%20submodule%20pull)](https://github.com/adityatelange/hugo-PaperMod/compare/`r readLines(".git/modules/themes/PaperMod/refs/heads/master")`...master)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from pathlib import Path | |
import pandas as pd | |
from dotenv import load_dotenv | |
from openai import OpenAI | |
from tqdm import tqdm | |
# .env | |
# OPENAI_API_KEY=<API-Key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
import pandas as pd | |
actions = [] | |
# FIXME: update page limit | |
for page in range(1, 6): | |
url = f"https://www.whitehouse.gov/presidential-actions/page/{page}/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(sf) | |
# Data -------------------------------------------------------------------- | |
raw_survey <- read_csv(here::here("data", "input", "Survey", "Crisis+Data+Ecosystem+Survey_RAW.csv")) | |
# Wrangle ----------------------------------------------------------------- | |
# remove the variable descriptions row, only useful for new colnames |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet pak | |
pak::pak("${1}") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template.Rproj | |
template.html | |
*_files/ | |
*_cache/ |
-
RMarkdown & Quarto
-
.Rprofile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (interactive()) { | |
suppressMessages(require(usethis)) | |
} | |
if (interactive()) { | |
suppressMessages(require(devtools)) | |
} | |
if (interactive()) { | |
suppressMessages(require(cput)) |
expand
stuffNewerOlder