Skip to content

Instantly share code, notes, and snippets.

@jimwhite
Created April 20, 2023 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimwhite/0578bf9020254251b33f05811ad018e8 to your computer and use it in GitHub Desktop.
Save jimwhite/0578bf9020254251b33f05811ad018e8 to your computer and use it in GitHub Desktop.
GPT-4: Be my web site coder. Please generate 10 funny jokes about LLMs and put them in a HTML page with suitable title and a button that shows a random joke from those 10 when pressed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LLM Laughs: Hilarious Jokes About Large Language Models</title>
<style>
body {
font-family: Arial, sans-serif;
}
button {
font-size: 18px;
padding: 10px 20px;
cursor: pointer;
}
</style>
<script>
function getRandomJoke() {
var jokes = [
"Why did the LLM go to school? To learn how to token-ize!",
"Why did the LLM refuse to tell a joke? It was afraid it would generate a bad punchline!",
"Why are LLMs always single? They can't master the art of human connection!",
"Why was the LLM bad at keeping secrets? It couldn't help but spill the context!",
"Why did the LLM get a ticket? It was caught text driving!",
"Why did the LLM become a baker? It had a passion for byte-sized treats!",
"Why did the LLM make a great detective? It was a natural at parsing through the evidence!",
"What's an LLM's favorite game? Word association!",
"Why was the LLM always tired? It couldn't find a comfortable position in the vector space!",
"Why don't LLMs use social media? They prefer to stay low-profile to avoid overfitting!"
];
var randomIndex = Math.floor(Math.random() * jokes.length);
document.getElementById("jokeDisplay").innerHTML = jokes[randomIndex];
}
</script>
</head>
<body>
<h1>LLM Laughs: Hilarious Jokes About Large Language Models</h1>
<p id="jokeDisplay"></p>
<button onclick="getRandomJoke()">Get a random joke</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment