This commit is contained in:
Daniel Flanagan 2024-05-07 09:08:39 -05:00
parent 8a847c9a3f
commit 9194c58444
9 changed files with 38 additions and 24 deletions

View file

@ -35,7 +35,7 @@ can either use [`Ecto.Changeset.change/2`][Ecto.Changeset.change/2] to handle
the results of an admin user submitting those forms or implement some sort of
protocol that lets you specify an admin-specific changeset.
## Getting That Sweet, Sweet Metadata
# Getting That Sweet, Sweet Metadata
My first issue was figuring out how to get the metadata that I knew Ecto already
had about my schemas. Y'know, which fields are which types, so that I could use
@ -301,7 +301,7 @@ single schema you have, too! Ahh, simplicity.
Here's all the code jumbled together (and perhaps slightly different):
## All Together Now!
# All Together Now!
```elixir
# router.ex

View file

@ -22,7 +22,7 @@ Check it out in context on
<a href="https://ellie-app.com/53ypTnnFykXa1" target="_blank">Ellie</a>,
the Elm playground!
## How Did I Get Here?
# How Did I Get Here?
To preface this, I'm going to be writing a *lot* of forms with a *lot* of
fields, all of which will pretty much work exactly the same, so creating a layer
@ -42,7 +42,7 @@ of copying code from it, I'm just going to roll my own, which is generally
a really good way to learn something anyways. So, while frustrated, I was also
eager to tackle the problem.
## Code Already!
# Code Already!
Since the Elm compiler is so awesome, I've taken to what I'm calling
"compiler-driven development", which is where I write out what I expect to work
@ -248,7 +248,7 @@ do (computers, amirite?) before I made it to this point.
Now, I'm confident Elm is a tool that can do everything I need it to do. I look
forward to using it more in the future!
## Full Source
# Full Source
Check it out in context on
<a href="https://ellie-app.com/53ypTnnFykXa1" target="_blank">Ellie</a>,

View file

@ -1,6 +1,7 @@
---
title: "Fetching Go Modules via `goproxy` Inside VPN"
date: "2024-02-29"
toc: false
---
I think I finally setup the holy grail of universally being able to

View file

@ -1,6 +1,7 @@
---
title: "iex and dbg/1 without pry prompts"
date: "2023-06-22"
toc: false
---
I love `iex -S mix ...` but I usually don't like when `dbg` asks me to `pry`.

View file

@ -23,13 +23,13 @@ https://git.faceless.lyte.dev/lytedev/weechat-matrix-encryption-guide.git
/tmp/wmeg && $EDITOR /tmp/wmeg/easy-script.bash && /tmp/wmeg/easy-script.bash`
+ [Configure](#configuration) as needed
## Python Versions
# Python Versions
We need to establish which version of Python your WeeChat is using. You can find
this out in WeeChat with `/python version`. In my case, my `python` binary is
3.7.2 (`python -V`) while my WeeChat Python version is 2.7.15.
## Dependencies
# Dependencies
There are a number of dependencies we can go ahead and start grabbing. The main
repository lists a number of them in the `README`, so we will grab those. We
@ -44,7 +44,7 @@ Notice that we left out the [`matrix-nio`][matrix-nio] dependency. It's not in
PyPi, so we can't just `pip2 install matrix-nio` (yet!) and PyPi's `nio` package
is something probably unrelated, so we'll need to install it manually.
## Installing `matrix-nio`
# Installing `matrix-nio`
Let's go ahead and clone down the repository and get ready to do some stuff:
@ -98,7 +98,7 @@ package:
sudo python2 ./setup.py install
```
## Weechat Plugin Installation
# Weechat Plugin Installation
Once we've done that, we should have all the dependencies for `weechat-matrix`,
so let's go ahead and clone that and install it!
@ -111,7 +111,7 @@ make install
Done!
## Configuration
# Configuration
The rest is up to you! You'll need to [configure your Matrix servers within
WeeChat][weechat-matrix-config] and then verify keys. Verifying keys isn't

View file

@ -10,7 +10,7 @@
</p>
{{ end }}
{{ if not (isset .Params "toc") }}
<details style="margin-bottom: 2.5em;">
<details class="left-border" style="margin-bottom: 2.5em;">
<summary>
<h3>Table of Contents</h3>
</summary>

View file

@ -1,8 +1,10 @@
<h3>
<a style="flex-shrink: 1; margin-right: auto;" href="{{ .Permalink }}">
{{ .Title }}
</a>
<br />
<small>Posted on {{ dateFormat "Jan 2 2006" (cond .Date.IsZero .Lastmod .Date) }}</small>
</h3>
{{ .Summary }}
<div class="left-border">
<h3>
<a style="flex-shrink: 1; margin-right: auto;" href="{{ .Permalink }}">
{{ .Title }}
</a>
<br />
<small>Posted on {{ dateFormat "Jan 2 2006" (cond .Date.IsZero .Lastmod .Date) }}</small>
</h3>
{{ .Summary }}
</div>

View file

@ -37,9 +37,14 @@ button.copy-code-button
img, embed, frame, iframe { max-width: 100vw }
details
position relative
details > summary
cursor pointer
list-style none
text-decoration underline
color var(--link-fg)
details > summary::-webkit-details-marker
display none
@ -47,17 +52,20 @@ details > summary::-webkit-details-marker
details > summary::after
position absolute
top 0
right 0
align-self center
content "+"
right -1em
background-image url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' style='width: 1em; height: 1em;'><path stroke-linecap='round' stroke-linejoin='round' d='M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z' /></svg>")
details[open] > summary::after
content "-"
details
.left-border
position relative
padding-left 0.5em
border-left solid var(--syntax-bpx) var(--syntax-ledg)
transition 0.2s border-color
&:hover
border-color var(--syntax-ledgh)
html,body
min-height 100vh

View file

@ -22,6 +22,7 @@ light-theme = {
--syntax-brd: rgba(255, 255, 255, 0.2),
--syntax-bg: #e6e9ef,
--syntax-ledg: rgba(0, 0, 0, 0.1),
--syntax-ledg: rgba(0, 0, 0, 0.3),
--syntax-sh: #6c6f85,
--syntax-name: latte['green'],
--syntax-mag: latte['red'],
@ -50,7 +51,8 @@ light-theme = {
dark-theme = {
--syntax-brd: rgba(255, 255, 255, 0.2),
--syntax-bg: #181825,
--syntax-ledg: #313244,
--syntax-ledg: alpha(mocha['sapphire'], 0.5),
--syntax-ledgh: mocha['sapphire'],
--syntax-sh: #6c7086,
--icon-shadow: #000,
--syntax-name: mocha['green'],