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 | |
/** | |
* EC01 CSS Generator Printer (from Data) | |
* | |
* Generates CSS data arrays and saves to file(s). | |
* | |
* @package Earth3300\EC01 | |
* @since 1.0.1 | |
* @author Clarence J. Bos <cbos@tnoep.ca> | |
* @copyright Copyright (c) 2018, Clarence J. Bos |
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 | |
/** | |
* EC01 JSON to PHP (Array) Printer | |
* | |
* @package Earth3300\EC01 | |
* @since 1.0.1 | |
* @author Clarence J. Bos <cbos@tnoep.ca> | |
* @copyright Copyright (c) 2018, Clarence J. Bos | |
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GPL v3.0 | |
* @link https://gist.github.com/earth3300/665ac34b0f784f9c659cf89c66ebbeee/ |
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 | |
/** | |
* EC01 CSS Data (Earth3300\EC01) | |
* | |
* Structural Configuration | |
* | |
* File: data.php | |
* Created: 2019-09-07 | |
* Updated: 2019-09-16 | |
* Time: 03:34 EDT |
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 | |
/** | |
* EC01 Data (Earth3300\EC01) | |
* | |
* Data and configuration information for the other files. | |
* | |
* File: data.php | |
* Created: 2019-09-05 | |
* Updated: 2019-24 | |
* Time: 06:56 EDT |
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 | |
/** | |
* Config Printer Class | |
* | |
* Prints a configuration file. | |
* | |
* File: printer.cfig.php | |
* Created: 2019-03-14 | |
* Updated: 2019-09-03 | |
* Time: 10:10 EDT |
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 | |
/** Set the header and start building the page. */ | |
header('Content-type: text/html; charset=utf-8;'); | |
/** The `DOCTYPE` is `html` (HTML5) */ | |
$str = '<!DOCTYPE html>' . PHP_EOL; | |
/** Default Language is `en` or `en-CA`. The class is added as a complete string (i.e. 'class="..." ) */ | |
$str .= sprintf('<html lang="%s">%s', SITE_LANG, PHP_EOL); |
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
if ( ! function_exists( 'site_uploads_dir_filter' ) ) | |
{ | |
/** | |
* Site Uploads Directory Filter | |
* | |
* Filters the directory array to a non-standard location. | |
* | |
* @link https://gist.github.com/earth3300/cee9a803e5cee0b04f216d53ae9aef1f | |
* | |
* @return array |
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
[hidden]{display:none}html{font-size:100%;line-height:150%}button,html,input{font-family:sans-serif}body{margin:0}strong{font-weight:700}p{margin:1em 0}form{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal}button,input{font-size:100%;margin:0;vertical-align:baseline}button,input{line-height:normal}button{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}[hidden]{display:none!important}.pure-button{display:inline-block;zoom |
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 | |
# odf2html.sh - export all odt od doc files to html by shellscript | |
# Inspired by Marco Fioretti, | |
# who wrote this Article in 2012: http://www.techrepublic.com/blog/linux-and-open-source/how-to-convert-doc-and-odf-files-to-clean-and-lean-html/ | |
# Klaus Kappel | |
CONFIG=tidy.conf | |
# first clean the dir, if script runs in cron job | |
# rm -rf $2 |
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 | |
/** | |
* A generic class template using authorization layers before running. | |
* | |
* File: article.php | |
* Created: 2019-05-31 | |
* Updated: 2019-05-31 | |
* Time: 07:54 EDT | |
*/ |