Skip to content

Instantly share code, notes, and snippets.

@nicnocquee
Forked from benjick/dogeipsum.php
Created February 10, 2014 08:49
Show Gist options
  • Save nicnocquee/8912485 to your computer and use it in GitHub Desktop.
Save nicnocquee/8912485 to your computer and use it in GitHub Desktop.
<?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