- A Fly.io account
- Fly.io's CLI is installed on your machine
- Prerequisites in the repository
- An OpenAI account and API key (note: this is pay as you go).
- Telegram, a Telegram bot, and its token.
- Python 3.10 and pipenv (optional, only if you want to edit the bot locally)
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
/* Paul Tol's Diverging Color Palettes | |
Source: https://personal.sron.nl/~pault/ */ | |
:root { | |
/* Sunset Palette */ | |
--sunset-1: #364B9A; | |
--sunset-2: #4A7BB7; | |
--sunset-3: #6EA6CD; | |
--sunset-4: #98CAE1; | |
--sunset-5: #C2E4EF; |
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
.editor-group-watermark > .letterpress { | |
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png") !important; | |
opacity: 0.75; | |
} |
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
# ============================================================================= | |
# | |
# Author: jskherman | |
# Date: 2024-03-08 | |
# Description: | |
# This script parses an XML file from status.cafe in the Atom format, which | |
# typically represents an RSS feed. The script extracts relevant information | |
# from the entries in the feed, such as the title, author, published | |
# timestamp, content, ID, and link. It then processes this information and | |
# writes it to a CSV file. |
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
-- Pandoc Lua-filter for Obsidian Callouts | |
-- Original Source: https://forum.obsidian.md/t/rendering-callouts-similarly-in-pandoc/40020/ | |
-- Notes: | |
-- Original snippet modified to output Hugo {{< admonition >}} shortcodes with collapse. | |
-- Make sure to have a blank line before and after the `> [!note]` line of the callout block. | |
-- The filter works recursively so if you want callouts within callouts, make sure to leave a blank line | |
-- before and after the `> [!note] Your title here` line of each callout. | |
-- Usage: |
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
def get_gh_commit_data(github_username: str) -> list: | |
""" | |
Get GitHub commit data for a given username by scraping the GitHub | |
contribution calendar heatmap for each year of activity. | |
This function returns a list of dictionaries with the following keys: | |
- date: The date of the commit | |
- commits: The number of commits on that date | |
Parameters |
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
{ | |
"Acentric_Factor": 0.5, | |
"BO_BSW": 0.0, | |
"BO_GOR": 0.0, | |
"BO_OilVisc1": 0.0, | |
"BO_OilVisc2": 0.0, | |
"BO_OilViscTemp1": 0.0, | |
"BO_OilViscTemp2": 0.0, | |
"BO_PNA_A": 0.0, | |
"BO_PNA_N": 0.0, |
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 packages | |
import os | |
import dotenv # for .env files | |
import datetime | |
import requests | |
import pandas as pd | |
# Do `pip install notion-df` first | |
import notion_df |
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 packages | |
import os | |
import dotenv # For .env files | |
import datetime | |
import pandas as pd | |
# import base64 | |
import requests | |
import io |
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
-- Source: https://stackoverflow.com/a/33511182 | |
-- Check if array contains a specific value | |
local function has_value (tab, val) | |
for index, value in ipairs(tab) do | |
if value == val then | |
return true | |
end | |
end | |
return false |
NewerOlder