Skip to content

Commit

Permalink
wip: update record
Browse files Browse the repository at this point in the history
  • Loading branch information
jthodge committed Oct 17, 2023
1 parent c14c235 commit 9582292
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def build_database(repo_path):
path = str(filepath.relative_to(root))
slug = filepath.stem
url = "https://github.com/jthodge/til/blob/main/{}".format(path)
# path_slug = tilde_encode(path.replace("/", "_"))
path_slug = path.replace("/", "_")
topic = path.split("/")[0]

Expand Down Expand Up @@ -89,6 +88,7 @@ def build_database(repo_path):

if response.status_code == 200:
record["html"] = response.text
record["path"] = tilde_encode(path_slug)
print("Rendered HTML for {}".format(path))
break
elif response.status_code == 401:
Expand Down
7 changes: 7 additions & 0 deletions ruby/numeric-literal-prefixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Numeric Literal Prefixes

In Ruby, numeric literal prefixes indicate the following bases:

- `0x`: hexadecimal (base-16)
- `0b`: binary (base-2)
- `0`: octal (base-8)

0 comments on commit 9582292

Please sign in to comment.