This file contains hidden or 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
(base) mitch@Mitchells-MacBook-Pro gaussian-splatting-kit % docker build . | |
[+] Building 1331.2s (22/32) | |
[+] Building 4139.7s (23/32) | |
=> [internal] load build definition from Dockerfile 0.0s | |
=> => transferring dockerfile: 4.46kB |
This file contains hidden or 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
RUN apt-get install cron -y | |
COPY crontab /etc/cron.d/crontab | |
RUN crontab /etc/cron.d/crontab | |
COPY service_discovery.py $DAGSTER_HOME/service_discovery.py |
This file contains hidden or 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
#[derive(Deserialize, Serialize)] | |
pub struct Markdown<T> { | |
pub meta: T, | |
pub content_markdown: String, | |
pub content_html: String, | |
} | |
const FRONTMATTER_DELIMITER: &str = "---"; | |
pub fn parse_frontmatter<'de, T>(post: &'de str) -> Result<(T, &'de str), toml::de::Error> |
This file contains hidden or 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
use anyhow::{anyhow, Context, Result}; | |
use bytes::Bytes; | |
use spin_sdk::{ | |
http::{Request, Response}, | |
http_component, | |
}; | |
use std::path::Path; | |
use std::{fs::File, io::Read}; | |
/// A Spin HTTP component that reads and returns a static asset. |
This file contains hidden or 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 urllib, pyxhook, threading, json | |
totalchars = 0 | |
minuteChar = [] | |
def fileArray(): | |
urllib.urlretrieve("https://tmi.twitch.tv/group/user/ecumene/chatters", "data/chatters.json") | |
global totalchars | |
minuteChar.append(totalchars) | |
with open('data/minuteChars.txt', 'w') as outfile: |