How I work
This is my own interpretation of how I like to work, feedback welcome! Especially if my own view of how I think I like to work doesn't match your experience of how it seems I like to work!
ls *.zip > filelist | |
for FILENAME in `cat filelist` | |
do | |
unzip $FILENAME | |
rm $FILENAME | |
done | |
rm filelist |
{ | |
"files.trimTrailingWhitespace": true, | |
"[markdown]": { | |
"files.trimTrailingWhitespace": false | |
} | |
} |
<?php | |
/** | |
* Plugin Name: Stupid header ASCII art | |
* Plugin URI: https://jazzsequence.com | |
* Description: Displays a stupid ASCII art in the html header. | |
* Version: 1.0 | |
* Author: Chris Reynolds | |
* Author URI: https://github.com/jazzsequence | |
* License: GPLv3 | |
*/ |
; Ender 5 Custom End G-code | |
G4 ; Wait | |
M220 S100 ; Reset Speed factor override percentage to default (100%) | |
M221 S100 ; Reset Extrude factor override percentage to default (100%) | |
G91 ; Set coordinates to relative | |
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing | |
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely | |
G90 ; Set coordinates to absolute | |
G1 X0 Y220 F1000 ; Move Heat Bed to the front for easy print removal | |
M106 S0 ; Turn off cooling fan |
/** | |
* Add a character line. | |
*/ | |
function addCharacter() { | |
const addChar = document.querySelectorAll( '[id^="add-tmp-char-"]' ); | |
// Loop through added character inputs. | |
for ( const tmpCharButton of addChar ) { | |
// Add a click handler for this particular input. | |
tmpCharButton.addEventListener( 'click', () => { |
<?php | |
/** | |
* Encompass Health Blog Taxonomy Base Class | |
* | |
* Base class for creating and modifying all taxonomies for Encompass Health Blog. | |
* | |
* @package EH\Taxonomies | |
* @author Chris Reynolds <chris@humanmade.com> | |
*/ |
<?php | |
/** | |
* Remove Empty Ps | |
* | |
* Deletes empty <p> tags on save. | |
* This can be included as a standalone plugin. | |
*/ | |
namespace Gist\EmptyPs; |
This is my own interpretation of how I like to work, feedback welcome! Especially if my own view of how I think I like to work doesn't match your experience of how it seems I like to work!
<?php | |
/** | |
* Display a screen option. | |
* | |
* @param string $title The title to display. | |
* @param string $option The name of the option we're displaying. | |
*/ | |
function show_option( $title, $option ) { | |
$screen = get_current_screen(); | |
$id = "wordpress_screen_options_demo_$option"; |
<?php | |
/** | |
* Save the screen option setting. | |
* | |
* @param string $status The default value for the filter. Using anything other than false assumes you are handling saving the option. | |
* @param string $option The option name. | |
* @param array $value Whatever option you're setting. | |
*/ | |
function set_option( $status, $option, $value ) { | |
if ( isset( $_POST['wp_screen_options_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['wp_screen_options_nonce'] ) ), 'wp_screen_options_nonce' ) ) { |