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 40 additions and 38 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

@ -11,20 +11,5 @@
"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.",
"Coffee is the second reason that justifies the existence of Earth",
"Shame on those who look at it",
"Format C",
"Sleep disorder is commonly treated with time machines",
"Our sysadmin set fire to a chicken",
"'We should kill them.' 'Who, our sysadmin?' 'I was thinking all of them but it would be a start'",
"Of course devops is at fault, there's noone else who could be responsible for anything",
"Devops 1: 'How is the server?' Devops 2: 'Stable' Sysadmin: '*Dead* is stable'",
"Developers use their computers for precisely ten things, seven of which involve procuring a vast menagerie of furry art",
"THE MAGMA PEOPLE ARE WAITING FOR OUR MISTAKES",
"Talk Announcement: Vertex-based Elliptic Cryptography on N-way Bojangle Spaces",
"Real threat models can be roughly divided into 'Not-Mossad' and 'Mossad'",
"DOES THIS WORK LOL",
"If you're confused about what a file is, here is a life tip: DO NOT EXECUTE IT TO DISCOVER MORE CLUES",
"Proudly rendered in Quirks Mode",
"<this section is left empty on purpose>"
]
"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>