Skip to content

Instantly share code, notes, and snippets.

View earth3300's full-sized avatar

Earth3300 earth3300

View GitHub Profile
@earth3300
earth3300 / printer.csv.php
Created November 3, 2019 21:08
Creates a CSV file based on loaded images.
<?php
/**
* EC01 CSV Printer (Images)
*
* Creates a CSV file from images. This CSV file can be imported into a
* database such as that used by WooCommerce and used in an online shop.
*
* @package Earth3300\EC01
* @since 1.0.1
* @author Clarence J. Bos <cbos@tnoep.ca>
@earth3300
earth3300 / wp-theme-plugin.php
Last active November 2, 2019 19:47
A plugin to perform theme customizations, including functions.php, JS and CSS.
<?php
/**
* Plugin Name: WP Theme Plugin
* Description: Theme customizations (including functions.php, JS and CSS) are added to this plugin.
* Plugin URI: https://gist.github.com/earth3300/545db2db83486fbd731b3c9ec401076a
* Version: 1.0.1
* Author: earth3300
* Author URI: http://github.com/earth3300/
* Requires at least: 4.9.1
* Tested up to: 5.2.1
@earth3300
earth3300 / printer.image.php
Last active October 26, 2019 15:16
Image processor in PHP (Copy, rename, resize, resolution).
<?php
/**
* EC01 Image Printer
*
* Capabilities: resize, rename and adjust resolution.
*
* @package Earth3300\EC01
* @version 0.9.0.2019.10.25
* @author Clarence J. Bos <cbos@tnoep.ca>
* @copyright Copyright (c) 2018, Clarence J. Bos
@earth3300
earth3300 / css.prefilled.php
Created September 26, 2019 15:32
CSS Data (Prefilled)
<?php
/**
* EC01 CSS Data (Prefilled)
*
* Standardized, (relatively) complete data set of HTML element types,
* elements, and a select list of attributes that has been prefilled.
*
* @link https://gist.github.com/earth3300/34f2272d28c1b9d6296e92821e5ccd22
*
* File: data.css.php
@earth3300
earth3300 / printer.css-from-dat-standardized.php
Last active September 26, 2019 15:31
Generates valid CSS from a set of data files using the standardized data.
<?php
/**
* EC01 CSS From Data Standardized Printer
*
* Generates valid CSS from a set of data files.
* This version uses the standardized data files created from a
* complete set of HTML elements and element types, plus a select
* list of attributes.
*
* @package Earth3300\EC01
@earth3300
earth3300 / printer.css-from-dat.php
Last active September 26, 2019 15:31
Generates a set of valid CSS files from a set of data files.
<?php
/**
* EC01 CSS From Data Printer
*
* Generates a set of valid CSS files from a set of data files.
* These data files have been generated from a set of CSS files
* that were created according to media type (i.e. media-all,
* media-screen, media-mixed, etc.). Thus they are arranged
* differently than the standarized set of CSS files.
*
@earth3300
earth3300 / printer.css-from-dat-standaridized.php
Created September 24, 2019 14:51
Creates a set of CSS files from standardized data files.
<?php
/**
* EC01 CSS From Data Standardized Printer
*
* Generates valid CSS from a set of data files.
* This version uses the standardized data files created from a
* complete set of HTML elements and element types, plus a select
* list of attributes.
*
* @package Earth3300\EC01
@earth3300
earth3300 / printer.css-to-dat.php
Last active September 26, 2019 15:36
Converts a CSS file or files to an array and saves as a PHP file or files.
<?php
/**
* EC01 Converts CSS to a PHP Data Array
*
* Converts valid CSS to a PHP data array and saves as a file.
*
* @package Earth3300\EC01
* @since 1.0.0
* @author Clarence J. Bos <cbos@tnoep.ca>
* @copyright Copyright (c) 2018, Clarence J. Bos
@earth3300
earth3300 / css.data.php
Last active September 26, 2019 15:34
CSS data saved as an array in a PHP file.
<?php
/**
* EC01 CSS Data
*
* Standardized, (relatively) complete data set of HTML element types,
* elements, and a select list of attributes.
*
* @link https://gist.github.com/earth3300/b6f7f79f198e1f955089e58698e70110
*
* File: data.css.php
@earth3300
earth3300 / printer.css-dat.php
Last active September 18, 2019 04:18
Prints CSS files from a set of data arrays.
<?php
/**
* EC01 CSS Printer (from Data)
*
* Prints CSS files from a set of data arrays.
*
* @package Earth3300\EC01
* @since 1.0.1
* @author Clarence J. Bos <cbos@tnoep.ca>
* @copyright Copyright (c) 2018, Clarence J. Bos