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)
|
# Dependency directories (remove the comment below to include it)
|
||||||
# vendor/
|
# vendor/
|
||||||
.DS_Store
|
.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
|
Permission to use, copy, modify, and/or distribute this software for any purpose
|
||||||
with or without fee is hereby granted.
|
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
|
Day int
|
||||||
Quip string
|
Quip string
|
||||||
}{
|
}{
|
||||||
Day: int(dur.Hours() / 24),
|
Day: int(dur.Hours()/24) + 1,
|
||||||
Quip: quips[rand.Intn(len(quips))],
|
Quip: quips[rand.Intn(len(quips))],
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
17
quips.json
17
quips.json
|
@ -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.",
|
"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",
|
"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.",
|
||||||
"Coffee is the second reason that justifies the existence of Earth",
|
"It's not DNS, there's no way it was DNS, it was DNS."
|
||||||
"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>"
|
|
||||||
]
|
]
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [ go gopls goimports bashInteractive ];
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>What Day of March, 2020 Is It?</title>
|
<title>What Day of March 2020 Is It?</title>
|
||||||
<style>
|
<style>
|
||||||
main {
|
main {
|
||||||
font-family: monospace, monospace;
|
font-family: monospace, monospace;
|
||||||
|
@ -26,6 +26,10 @@
|
||||||
color: #ebdbb2;
|
color: #ebdbb2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
background-color: #3c3836;
|
background-color: #3c3836;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
@ -95,27 +99,25 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="top">
|
<body id="top">
|
||||||
<center>
|
<main>
|
||||||
<main>
|
<big>Today is March <big>{{.Day}}</big>, 2020</big>
|
||||||
<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>
|
<footer>
|
||||||
<p>From <a href="https://christine.website">Within</a> - <a
|
<p>From <a href="https://christine.website">Within</a> - <a
|
||||||
href="https://twitter.com/theprincessxena">@theprincessxena</a> - <a
|
href="https://twitter.com/theprincessxena">@theprincessxena</a> - <a
|
||||||
href="https://tulpa.dev/cadey/todayinmarch2020">Source Code</a></p>
|
href="https://tulpa.dev/cadey/todayinmarch2020">Source Code</a></p>
|
||||||
</footer>
|
</footer>
|
||||||
</main>
|
</main>
|
||||||
</center>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue