Last active
January 2, 2016 06:28
-
-
Save druu/8263280 to your computer and use it in GitHub Desktop.
no... run this on zsh: curl -Ls http://bit.ly/JSU3jZ | zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo implode("\n",array_map(function($l){return implode("\n", array_merge($l,(array)(implode('| ', array_map(function($t){return sprintf("%-7.7s | %-6.5s " , $t[0] , $t[1]);}, array_fill(0, 5, array('HEX', 'Char')))))));},array_chunk(explode("\n", implode("\n",array_merge((array)(implode('| ', array_map(function($t){return sprintf("%-7.7s | %-6.5s " , $t[0] , $t[1]);}, array_fill(0, 5, array('HEX', 'Char'))))), array_map(function($s){ return sprintf( rtrim(str_repeat("0x%-5.5s | \U%-5.5s | ", floor(80/strlen(sprintf(" %-5.5s | %-5.5s ", ' ', ' ')))), '| '), $s[0],$s[0],$s[1],$s[1],$s[2],$s[2],$s[3],$s[3],$s[4],$s[4]);}, array_chunk( array_map(function($c){return strtoupper(dechex($c));}, range(0x1F300, 0x1F5FF)) ,5))))), 25))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
echo -e "`curl -Ls https://gist.github.com/druu/8263280/raw/045d9bc40f029097a71b65d7d1578ec5d0c6b49e/_druu.php | php`" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
return sprintf("%-7.7s | %-6.5s " , $t[0] , $t[1]);
This does not comply with psr-2