I hereby claim:
- I am salcode on github.
- I am salcode (https://keybase.io/salcode) on keybase.
- I have a public key ASBSYDWGe_itOiSiI6BnWuSnvvlLjok8KPK_E5OrUDofnAo
To claim this, I am signing this object:
| # Add this code to .zshrc after nvm initialization code. | |
| # | |
| # Check the current directory for a package.json file | |
| # If the node version is defined (at .engines.node) | |
| # run "nvm use" for the node version. | |
| # | |
| # If there is not a node version defined with package.json, | |
| # run "nvm use default" | |
| # Version: 20230112 | |
| # |
| import titleCase from '.'; | |
| const data = [ | |
| { | |
| value: 'lord of the flies', | |
| expected: 'Lord of the Flies', | |
| }, | |
| { | |
| value: 'once upon a time', | |
| expected: 'Once Upon a Time', |
| <?php | |
| /** | |
| * You'll need to replace | |
| * "https://phpc.social/@salcode" | |
| * with your own Mastodon URL. | |
| * and place this code somewhere executible (e.g. mu-plugins) | |
| */ | |
| add_action( 'wp_head', function() { | |
| if ( ! is_front_page() ) { |
| // Alternative code, from my tweet: | |
| // Generic, reusable Banner component | |
| function Banner({ type, children }) { | |
| const bg = type === 'success' ? 'green' : 'red'; | |
| return ( | |
| <div | |
| className={styles.banner} | |
| style={{ backgroundColor: bg }} |
| <?php | |
| class PostStatus | |
| { | |
| const PRIVATE = 'private'; | |
| const DRAFT = 'draft'; | |
| const PUBLISHED = 'published'; | |
| const TRASHED = 'trash'; | |
| /** |
| # EditorConfig helps keep your project formatting consistent. | |
| # See https://EditorConfig.org | |
| # | |
| # PHP PSR-2 Coding Standards | |
| # http://www.php-fig.org/psr/psr-2/ | |
| # | |
| # Author: Sal Ferrarello (@salcode) | |
| # | |
| # You can download this file directly | |
| # to your project from the command-line with |
| # EditorConfig helps keep your project formatting consistent. | |
| # See https://EditorConfig.org | |
| # | |
| # This is a modified version of the WordPress coding standards. | |
| # | |
| # Author: Sal Ferrarello (@salcode) | |
| # https://salferrarello.com/wordpress-editorconfig/ | |
| # | |
| # You can download this file directly | |
| # to your project from the command-line with |
| <?php | |
| /** | |
| * Plugin Name: WP CLI Test Stop Emails | |
| * Plugin URI: https://github.com/salcode/stop-emails/issues/15 | |
| * Description: Test plugin for <a href="https://github.com/salcode/stop-emails/issues/15">Issue 15</a> | |
| * Author: Sal Ferrarello | |
| * Author URI: https://salferrarello.com/ | |
| * Text Domain: wp-cli-test-stop-emails | |
| * Domain Path: /languages | |
| * Version: 0.1.0 |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Modify theme to support Beaver Builder better. | |
| * | |
| * - Set the theme layout to full width. | |
| * - Remove the `site-inner` markup. | |
| * - Remove the `content-sidebar-wrap` markup. | |
| * - Remove the entry header and page/ post title. | |
| * | |
| * @package Generico\Core |