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 numpy as np | |
import pandas as pd | |
import pyspark.pandas as ps | |
# dbt setup and data fetching stuff, feel free to ignore | |
config_dict = {} | |
def ref(*args, **kwargs): | |
refs = {"reporting.ratio_stats_input": "\"awsdatacatalog\".\"reporting\".\"ratio_stats_input\""} |
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
# Increase Java memory | |
options(java.parameters = "-Xmx10G") | |
# Load libraries | |
library(data.table) | |
library(dplyr) | |
library(ggplot2) | |
library(ggspatial) | |
library(osmdata) | |
library(osmextract) |
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
modules: | |
jellyfin: | |
headers: | |
# The Token value here needs to be an API key generated from the | |
# Jellyfin admin panel. It's hard-coded here but I'm sure there's | |
# a better way | |
Authorization: MediaBrowser Token=ADD_TOKEN_HERE | |
Content-Type: application/json | |
accept: application/json |
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
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
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
#include <AirGradient.h> | |
#include <WiFiManager.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
#include <WiFiClient.h> | |
#include <EEPROM.h> | |
#include <SensirionI2CSgp41.h> | |
#include <NOxGasIndexAlgorithm.h> |
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
# Create an array of columns (destinations) from separate input file | |
BEGIN { | |
FS=OFS="," | |
while ((getline line <dests) > 0) { | |
contents = contents line | |
} | |
numCols = split(contents,cols) | |
} | |
# Create the CSV header by printing each destination |
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
##### Setup ##### | |
# Load the necessary libraries | |
library(tidytransit) # Parse GTFS feeds | |
library(dplyr) | |
library(tidyr) | |
library(lubridate) | |
library(sf) | |
library(ggplot2) | |
library(gganimate) # Animate the ggplot + tween between frames |