forked from cadey/todayinmarch2020
Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
Cadey Ratio | 8e0ff7513c | |
Cadey Ratio | 15b5ed4738 | |
Cadey Ratio | 3c3dadc76b | |
Cadey Ratio | 0c29a71ee5 | |
Cadey Ratio | e119e119e3 | |
Cadey Ratio | 3d559eb359 | |
Cadey Ratio | 6dec6c9031 |
|
@ -15,3 +15,4 @@
|
|||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
.DS_Store
|
||||
result
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -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.
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{ pkgs ? import <nixpkgs> { }, fetchgit ? pkgs.fetchgit
|
||||
, buildGoModule ? pkgs.buildGoModule }:
|
||||
|
||||
buildGoModule {
|
||||
name = "todayinmarch2020";
|
||||
src = ./.;
|
||||
vendorSha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
|
||||
}
|
2
main.go
2
main.go
|
@ -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))],
|
||||
})
|
||||
})
|
||||
|
|
|
@ -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."
|
||||
]
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ go gopls goimports bashInteractive ];
|
||||
}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue