Skip to content

Instantly share code, notes, and snippets.

@creaktive
Created March 4, 2011 17:49
Show Gist options
  • Save creaktive/855374 to your computer and use it in GitHub Desktop.
Save creaktive/855374 to your computer and use it in GitHub Desktop.
<?php $x=1;$y=1<<30;for($i=0;$i<29;$i++){$x<<=1;$y>>=1;echo strtr(sprintf("%030b\n",$x|$y),"01"," J");}?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment