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
| [ | |
| { | |
| "colorId":0, | |
| "hexString":"#000000", | |
| "rgb":{ | |
| "r":0, | |
| "g":0, | |
| "b":0 | |
| }, | |
| "hsl":{ |
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 | |
| /** | |
| * JSON data to html table | |
| * | |
| * @param object $data | |
| * | |
| */ | |
| function jsonToTable ($data) | |
| { |
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 | |
| /** | |
| * EC01 JSON Index. | |
| * | |
| * Allows a JSON data text file to be viewed in a directory through a | |
| * single index file. | |
| * | |
| * @package EC01 JSON Index | |
| * @since 1.0.0 |
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 | |
| /** | |
| * EC01 JSON Index. | |
| * | |
| * Allows a JSON data text file to be viewed in a directory through a | |
| * single index file. | |
| * | |
| * @package EC01 JSON Index | |
| * @since 1.0.0 |
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
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |
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 | |
| /** | |
| * How would you design something in the "real world" if you absolutely needed | |
| * something to work? Often a backup is in place. This could be a backup generator | |
| * or even a flashlight, in case the power went out. As WordPress is a complex | |
| * set of code, which can include many plugins and themes from various sources, | |
| * it can break. If that happens, here is a backup plan. Copy the top part of | |
| * this file to the index file of WordPress in the root directory and then include | |
| * the closing brace `}` at the bottom of the file. Then set SITE_NORMAL to false. |
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
| /** | |
| * Media All | |
| * | |
| * For all media types (screen, print, speech). | |
| * | |
| * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries | |
| */ | |
| @media all { |
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 | |
| /** | |
| * ----------------------------------------------------------------------------------------- | |
| * Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php` | |
| * ----------------------------------------------------------------------------------------- | |
| */ | |
| // HTML Minifier | |
| function minify_html($input) { |
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
| /* | |
| Theme Name: EC01 Style | |
| Theme URI: http://ec01.earth3300.info/ | |
| Author: Clarence Bos | |
| Author URI: http://ec01.earth3300.info/ | |
| Description: Part of a sustainable community design. | |
| Version: 1.0.0 | |
| License: GPL v3.0 | |
| License URI: https://www.gnu.org/licenses/gpl-3.0.en.html |
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 | |
| /** | |
| * EC01 XML Reader | |
| * | |
| * Reads an XML file in the directory in which it is placed and displays it in | |
| * valid HTML. Can also be used as a WordPress plugin. | |
| * | |
| * @package Earth3300\EC01 | |
| * @version 0.0.1 | |
| * @author Clarence J. Bos <[email protected]> |