Skip to content

Instantly share code, notes, and snippets.

@tenkoma tenkoma/index.php
Last active Jul 7, 2019

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.