Skip to content

Instantly share code, notes, and snippets.

@druu
Last active January 2, 2016 06:28
Show Gist options
  • Save druu/8263280 to your computer and use it in GitHub Desktop.
Save druu/8263280 to your computer and use it in GitHub Desktop.
no... run this on zsh: curl -Ls http://bit.ly/JSU3jZ | zsh
<?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)));
#!/bin/zsh
echo -e "`curl -Ls https://gist.github.com/druu/8263280/raw/045d9bc40f029097a71b65d7d1578ec5d0c6b49e/_druu.php | php`"
@anlutro
Copy link

anlutro commented Jan 10, 2014

return sprintf("%-7.7s | %-6.5s " , $t[0] , $t[1]);

This does not comply with psr-2

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