Skip to content

Instantly share code, notes, and snippets.

@benjick
Last active December 28, 2015 05:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benjick/7450726 to your computer and use it in GitHub Desktop.
Save benjick/7450726 to your computer and use it in GitHub Desktop.
Doge Ipsum aka Lorem Doge by dumfan
<?php
/*
░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░
░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░
░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░
░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░
░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░
░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌░░
░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐░░
░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌░
░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌░
▀▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒▐░
▐▒▒▐▀▐▀▒░▄▄▒▄▒▒▒▒▒▒░▒░▒░▒▒▒▒▌
▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒▒▒░▒░▒░▒▒▐░
░▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒░▒░▒░▒░▒▒▒▌░
░▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▒▄▒▒▐░░
░░▀▄▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▄▒▒▒▒▌░░
░░░░▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀░░░
░░░░░░▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀░░░░░
░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▀▀░░░░░░░░
*/
$first = array(
'so',
'such',
'many',
'lorem'
);
$second = array(
'text',
'ipsum',
'filler',
'doge'
)
?><!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Doge Ipsum</title>
<meta name="description" content="Doge Ipsum by dumfan">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<p><form action="" method="post"><input type="text" name="rows"> rows <input type="submit" value="wuff"></form> </p>
<?php
if(isset($_POST['rows'])) {
$rows = intval($_POST['rows']);
echo "<pre>";
echo str_repeat(" ", rand(1,10)) . "wow.\n";
for ($i = 1; $i <= $rows; $i++) {
shuffle($first); shuffle($second);
echo str_repeat(" ", rand(1,12)) . " " . $first[0] . " " .$second[0] . ".";
if($i&1) { echo "\n"; }
}
echo "</pre>";
} else {
echo '<img src="http://i.imgur.com/vaa4by0.png">';
}
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment