Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SichangHe committed Mar 27, 2024
1 parent fc7b5f3 commit c6be43d
Show file tree
Hide file tree
Showing 36 changed files with 9,696 additions and 0 deletions.
1 change: 1 addition & 0 deletions rfcs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!rfc*.txt
3,867 changes: 3,867 additions & 0 deletions rfcs/rfc2622.txt

Large diffs are not rendered by default.

1,459 changes: 1,459 additions & 0 deletions rfcs/rfc2650.txt

Large diffs are not rendered by default.

899 changes: 899 additions & 0 deletions rfcs/rfc4012.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
121 changes: 121 additions & 0 deletions scripts/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions scripts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "scripts"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1"
flate2 = "1"
rayon = "1"
19 changes: 19 additions & 0 deletions scripts/scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import os
from dataclasses import dataclass

import requests


@dataclass
class CsvFile:
path: str
url: str

def download_if_missing(self):
if os.path.exists(self.path):
return
response = requests.get(self.url)
response.raise_for_status()
with open(self.path, "wb") as f:
f.write(response.content)
print(f"Downloaded {self.url} -> {self.path}.")
Loading

0 comments on commit c6be43d

Please sign in to comment.