Skip to content

Instantly share code, notes, and snippets.

@tenkoma
Last active July 7, 2019 06:50
Show Gist options
  • Save tenkoma/416cdf36a51c9610e0a7d353102a43ce to your computer and use it in GitHub Desktop.
Save tenkoma/416cdf36a51c9610e0a7d353102a43ce to your computer and use it in GitHub Desktop.
PHPカンファレンス福岡2019 マネクラからの挑戦状 Webサイトコードゴルフ スコア60230(PHPファイル(480)+画像ファイル) https://github.com/pepabo/lolipop-mc-codegolf-challenge
<!DOCTYPEhtml><table cellspacing=0><tr><td bgcolor=#147ecc><td><td style=width:80%><table><tr><td style=height:10%><tr><td style=height:80%><img src=m width=100%><h1><?$a=$_GET;krsort($a);arsort($a);echo strrev(array_values($a)[2])?><tr><td style=height:10%></table><td><td bgcolor=#147ecc><style>body{height:100vh;font-family:Helvetica;letter-spacing:.04em}table{height:100%}*{border:none;padding:0;margin:0;font-weight:400;color:#465560;text-align:center}td{height:50%;width:5%}
<!DOCTYPEhtml>
<table cellspacing=0>
<tr>
<td bgcolor=#147ecc>
<td>
<td style=width:80%>
<table>
<tr>
<td style=height:10%>
<tr>
<td style=height:80%>
<img src=m width=100%>
<h1><?
$a=$_GET;
krsort($a);
arsort($a);
echo strrev(array_values($a)[2])
?>
<tr>
<td style=height:10%>
</table>
<td>
<td bgcolor=#147ecc>
<style>
body {
height: 100vh;
font-family: Helvetica;
letter-spacing: .04em
}
table {
height: 100%
}
* {
border: none;
padding: 0;
margin: 0;
font-weight: 400;
color: #465560;
text-align: center
}
td {
height: 50%;
width: 5%
}
@tenkoma
Copy link
Author

tenkoma commented Jun 30, 2019

(正式な競技時間より後に試行錯誤したものです)

  • Makefile, mc.png, index.php, .git/ 以外のファイル・ディレクトリを削除
  • mc.pngm にリネーム
  • index.php を上記の内容に書き換え
  • make deploy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment