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 Simple_Json_Api | |
*/ | |
class Simple_Json_Api { | |
/** | |
* The top level argument for the endpoint. | |
* ex http://example.com/myjson/post/1 |
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 | |
# Approximates the phase of the moon using a known new-moon time and a fixed lunar phase of 2551443 seconds. | |
# Outputs the phase as an emoji in UTF-8 | |
CHARS=( | |
"\xf0\x9f\x8c\x91" # 0 - NEW | |
"\xf0\x9f\x8c\x91" # 1 - NEW | |
"\xf0\x9f\x8c\x92" # 2 - WAXING CRESCENT |