Compare commits

...

7 Commits
mara ... mara

Author SHA1 Message Date
Cadey Ratio 8e0ff7513c templates/index: do centering better
Signed-off-by: Christine Dodrill <me@christine.website>
2021-04-21 16:35:31 -04:00
Cadey Ratio 15b5ed4738 Update 'LICENSE' 2021-04-12 20:34:54 +00:00
Cadey Ratio 3c3dadc76b butone 2021-04-08 15:50:34 -04:00
Cadey Ratio 0c29a71ee5 oops
Signed-off-by: Christine Dodrill <me@christine.website>
2021-04-08 14:21:31 -04:00
Cadey Ratio e119e119e3 nix-build support 2021-04-08 13:52:22 -04:00
Cadey Ratio 3d559eb359 it was DNS 2021-04-08 13:49:42 -04:00
Cadey Ratio 6dec6c9031 lorri 2021-04-08 13:43:43 -04:00
8 changed files with 41 additions and 23 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
eval "$(lorri direnv)"

1
.gitignore vendored
View File

@ -15,3 +15,4 @@
# Dependency directories (remove the comment below to include it)
# vendor/
.DS_Store
result

View File

@ -1,4 +1,4 @@
Copyright (C) 2006 by Rob Landley <rob@landley.net>
Copyright (C) 2020 by Christine Dodrill <me@christine.website>
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted.

8
default.nix Normal file
View File

@ -0,0 +1,8 @@
{ pkgs ? import <nixpkgs> { }, fetchgit ? pkgs.fetchgit
, buildGoModule ? pkgs.buildGoModule }:
buildGoModule {
name = "todayinmarch2020";
src = ./.;
vendorSha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
}

View File

@ -71,7 +71,7 @@ func index(tmpl *template.Template) http.Handler {
Day int
Quip string
}{
Day: int(dur.Hours() / 24),
Day: int(dur.Hours()/24) + 1,
Quip: quips[rand.Intn(len(quips))],
})
})

View File

@ -10,5 +10,6 @@
"Developers didn't kill ordinary people because a) they seldom noticed them, b) it wasn't considered sporting and c) who'd do all the cooking and growing food and things.",
"Some people think this is paranoia, but it isn't. Paranoids only think everyone is out to get them. Developers know it.",
"Weather forecast for tomorrow: RIVERS OF BLOOD ALL DAY",
"A systems programmer will know what to do when society breaks down, because the systems programmer already lives in a world without law."
]
"A systems programmer will know what to do when society breaks down, because the systems programmer already lives in a world without law.",
"It's not DNS, there's no way it was DNS, it was DNS."
]

5
shell.nix Normal file
View File

@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [ go gopls goimports bashInteractive ];
}

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>What Day of March, 2020 Is It?</title>
<title>What Day of March 2020 Is It?</title>
<style>
main {
font-family: monospace, monospace;
@ -26,6 +26,10 @@
color: #ebdbb2;
}
main {
text-align: center;
}
pre {
background-color: #3c3836;
padding: 1em;
@ -95,27 +99,25 @@
</head>
<body id="top">
<center>
<main>
<big>Today is March <big>{{.Day}}</big>, 2020</big>
<main>
<big>Today is March <big>{{.Day}}</big>, 2020</big>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<p>{{.Quip}}</p>
<p>{{.Quip}}</p>
<br />
<br />
<br />
<br />
<footer>
<p>From <a href="https://christine.website">Within</a> - <a
href="https://twitter.com/theprincessxena">@theprincessxena</a> - <a
href="https://tulpa.dev/cadey/todayinmarch2020">Source Code</a></p>
</footer>
</main>
</center>
<footer>
<p>From <a href="https://christine.website">Within</a> - <a
href="https://twitter.com/theprincessxena">@theprincessxena</a> - <a
href="https://tulpa.dev/cadey/todayinmarch2020">Source Code</a></p>
</footer>
</main>
</body>
</html>
</html>