Skip to content

Commit

Permalink
feat: auto bio
Browse files Browse the repository at this point in the history
  • Loading branch information
encody committed Jul 18, 2024
1 parent 8a4f841 commit db80677
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 42 deletions.
9 changes: 9 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@ youtube = "GeekLaunch"
contact = "https://docs.google.com/forms/d/e/1FAIpQLSfL9-JbBMUk2m4D31KouzAHntMtMOb9LOi7uQNiXYX6XEQhiQ/viewform?usp=sf_link"

[params.author]
# Site author
name = "Jacob Lindahl"

# Specific article authors
[params.author."Jacob Lindahl"]
bio = """
Jacob Lindahl is a graduate student at the [Tokyo Institute of Technology](https://www.titech.ac.jp/).
Connect with Jacob on [Twitter](https://twitter.com/sudo_build), [Mastodon](https://infosec.exchange/@hatchet), and [Farcaster](https://warpcast.com/hatchet).
"""

[params.plausible]
host = "plausible.c0d3r.dev"
domain = "geeklaunch.io"
Expand Down
2 changes: 0 additions & 2 deletions content/blog/dumping-databases-for-faster-furigana.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,3 @@ sys 0m0.000s
```

Much better! The test document is 100,845 bytes, so this is a processing speed of about 280,905 bytes/second. For reference, the SQLite version took over 1m53s to annotate the same document (889 bytes/second). That's a 315x speed-up!

{{%bio%}}
2 changes: 0 additions & 2 deletions content/blog/fathomable-rust-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,3 @@ This derive macro creates an implementation of `Display` on the targeted enum. I
- [The Little Book of Rust Macros](https://veykril.github.io/tlborm/)
- [dtolnay's procedural macros workshop](https://github.com/dtolnay/proc-macro-workshop)
- [Rust AST Explorer](https://carlkcarlk.github.io/rust-ast-explorer/) (credit: [matklad](https://matklad.github.io/))

{{% bio %}}
Original file line number Diff line number Diff line change
Expand Up @@ -374,5 +374,3 @@ This is also a highly-parallelizable task—so long as we split up the text
Until then, this was a really fun project, and I'm planning to continue working on it in my spare time going forward.

If you haven't already, I'd appreciate it if you'd [check out the project](https://github.com/encody/autoruby), maybe try it out, and give it a star?

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/how-to-speed-up-your-code-using-graphs.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,3 @@ Try it for yourself:
- [Modeling graphs in Rust using vector indices](https://smallcultfollowing.com/babysteps/blog/2015/04/06/modeling-graphs-in-rust-using-vector-indices/)
- [Creating an Iterator in Rust](https://aloso.github.io/2021/03/09/creating-an-iterator)
- [Five Clique](https://gitlab.com/bpaassen/five_clique/-/tree/main/)

{{% bio %}}
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,3 @@ You should be greeted with the following success screen:
![Successfully verified domain on GitHub](./08-github-domain-verified.png)

Congratulations! Your organization's domain is now verified on GitHub.

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/introducing-compulang-podcast.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ This will also be a fun venture for me into finally getting around to learning t
All of this to say, I'm starting a podcast and I'd love for you to give it a listen.

Cheers!

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/make-invalid-states-unrepresentable.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,5 +386,3 @@ I would be remiss if I failed to mention the body of work preceding me on this t
- [CppCon 2016: Ben Deane “Using Types Effectively" (CppCon on youtube.com)](https://www.youtube.com/watch?v=ojZbFIQSdl8)

[^minsky]: The author, Yaron Minsky, actually [coined the phrase "make illegal states unrepresentable."](https://twitter.com/yminsky/status/1034947939364425731) Thanks to [u/dist1ll on Reddit](https://www.reddit.com/r/rust/comments/155b6qc/comment/jsup7ju/?utm_source=share&utm_medium=web2x&context=3) for pointing this out.

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/modern-dearth-of-intelligent-crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,3 @@ Solidity contracts absolutely. There are quite a few respectable auditing firms
This is a lot, and one of the longer blogs I've written, but with good reason: security is ever-increasing in its importance in this industry, and it's all-too-often ignored. I've barely scratched the surface here, but I hope it was a good jumping-off point.

Don't be the next multi-billion dollar victim.

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/nothing-in-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,3 @@ impl FailureLogProvider for Partner {
```

The function implementation in the example always succeeds, but the trait allows for implementations to fail. To indicate this, the associated `Error` type is the never type.

{{%bio%}}
2 changes: 0 additions & 2 deletions content/blog/rust-pro-tips-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -1023,5 +1023,3 @@ vs.
```rust
my_function(dbg!(&value));
```

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/rust-quickstart-for-javascript-programmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -894,5 +894,3 @@ Note: Lifetimes is a somewhat stubborn topic that can take a little bit of work
- [Rust Playground](https://play.rust-lang.org/) is not actually a source of exercises, but it is a good place to try out some code without having to spin up an editor and new project.
- [Rustlings](https://github.com/rust-lang/rustlings) is a repository of all sorts of exercises to help you get comfortable using Rust.
- [Exercism](https://exercism.org/tracks/rust) provides a variety of online exercises and other resources.

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/seek-the-stretch.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,3 @@ He nods. "It's like… I should put myself out there and not be afraid to g
"Exactly! Do hard things. Seek the stretch."

"*Seek the stretch*. I like that."

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/storage-locations-in-ethereum-vs-near.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,3 @@ When I first encountered the NEAR ecosystem, I was stunned at how developer-frie
You can find a comprehensive suite of NEAR smart contracts on the [Learn NEAR GitHub organization](https://github.com/Learn-NEAR), as well as a bevy of tutorials and examples on the [NEAR Examples GitHub origanization](https://github.com/near-examples).

Good luck!

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/the-guts-of-two-factor-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,3 @@ This means that as long as the client and the server have their clocks synchroni
## Sample implementation

A simple example implementation of HOTP and TOTP in Rust can be found [here](https://github.com/GeekLaunch/totp/blob/main/src/lib.rs).

{{%bio%}}
2 changes: 0 additions & 2 deletions content/blog/the-state-of-web3-in-2022.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,3 @@ I encountered two interesting projects for the first time over the past week. (N
## Does [insert protocol here] have a chance to take over as the de-facto dapp platform?

Not really.

{{% bio %}}
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,3 @@ Threshold signatures (distribute $n$ keyshares, any $t < n$ of them can generate
- [Pairings for beginners (Craig Costello)](https://static1.squarespace.com/static/5fdbb09f31d71c1227082339/t/5ff394720493bd28278889c6/1609798774687/PairingsForBeginners.pdf) ([archive.org](https://web.archive.org/web/20240119065123/https://static1.squarespace.com/static/5fdbb09f31d71c1227082339/t/5ff394720493bd28278889c6/1609798774687/PairingsForBeginners.pdf))[^thanks-porter]
[^thanks-porter]: Thanks to [Porter Adams](https://www.linkedin.com/feed/update/urn:li:activity:7171725082224963584?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7171725082224963584%2C7171754572875517952%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287171754572875517952%2Curn%3Ali%3Aactivity%3A7171725082224963584%29) for this suggestion!
{{%bio%}}
2 changes: 0 additions & 2 deletions content/blog/versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ It really is just a number.
---

Thanks to [Don Dall](https://github.com/dndll/) for his advice in constructing this rant.

{{% bio %}}
2 changes: 0 additions & 2 deletions content/blog/what-does-my-rsa-public-key-actually-mean.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,3 @@ On top of all the different sites I linked in this post, I'd like to credit the
- [What are x509 certificates? RFC? ASN.1? DER?](https://cryptologie.net/article/262/what-are-x509-certificates-rfc-asn1-der/)
- [How to store/retrieve RSA public/private key](https://stackoverflow.com/questions/1193529/how-to-store-retrieve-rsa-public-private-key/13104466#13104466)
- [node-rsa/src/formats/pkcs8.js](https://github.com/rzcoder/node-rsa/blob/master/src/formats/pkcs8.js)

{{% bio %}}
13 changes: 12 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ <h1 class="font:40 font:bold">{{ .Title }}</h1>
</aside>
{{ end }}

{{- partial "prose.html" . -}}
{{- $content := .Content -}}

{{- if and
(eq .Kind "page")
(ne (index site.Params.Author .Params.Author) nil)
(isset (index site.Params.Author .Params.Author) "bio")
-}}
{{- $bio := index (index site.Params.Author .Params.Author) "bio" | markdownify -}}
{{- $content = print $content "<hr>" $bio | safeHTML -}}
{{- end -}}

{{- partial "prose.html" (dict "Content" $content) -}}
</article>
{{ end }}
5 changes: 0 additions & 5 deletions layouts/shortcodes/bio.html

This file was deleted.

0 comments on commit db80677

Please sign in to comment.