This file contains 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 | |
/** | |
* Class FacadePHPDocs | |
* | |
* @author Ardhana <[email protected]> | |
*/ | |
class FacadePHPDocs{ | |
/** | |
* @var ReflectionClass |
This file contains 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/bash | |
# Read either the first argument or from stdin (http://stackoverflow.com/questions/6980090/bash-read-from-file-or-stdin) | |
cat "${1:-/dev/stdin}" | \ | |
# Convert binary to hex using xxd in plain hexdump style | |
xxd -ps | \ | |
# Put spaces between each pair of hex characters | |
sed -E 's/(..)/\1 /g' | \ | |
# Merge lines | |
tr -d '\n' |