View npm.json
"name": "gablaxian",
"version": "1.0.0",
"description": "gablaxian website",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+"
View TwiMLbin-forwarding.xml
// to forward a call and setup voicemail on timeout
<Dial timeout="20" record="record-from-answer">xxx-xxx-xxxx</Dial>
// to forward a sms to another number
<Message to="+1xxxxxxxxxx">{{From}}: {{Body}}</Message>
View antispambot-wordpress-shortcode.php
* Hide email from Spam Bots using a shortcode.
* Anti-Spambot Email Shortcode, v1.1.1
* @param array $atts Shortcode attributes. Not used.
* @param string $content The shortcode content. Should be an email address.
* @return string The obfuscated email address.
View php-percentage-calc-format.php
function employeeGrowth ( int $employees, int $employees_6_months_ago) {
$employee_percent_change = ($employees - $employees_6_months_ago)/$employees_6_months_ago;
$formatter = new NumberFormatter('en_US', NumberFormatter::PERCENT);
echo $formatter->format($employee_percent_change);
View php-money-breakdown-mil-bil.php
function formatMoney( int $number = null ) {
// display numbers as K or B or M
if ($number < 1000) {
// Anything less than a thousand
$format_num = number_format($number);
} else if ($number < 1000000) {
// Anything less than a million
View estimated-reading-time.php
* Estimate time required to read the article
* @return string
function bm_estimated_reading_time() {
$post = get_post();
$words = str_word_count( strip_tags( $post->post_content ) );
View disable-rest-endpoints.php
* Disable WP REST API JSON endpoints if user not logged in
function chuck_disable_rest_endpoints( $access ) {
if( ! is_user_logged_in() ) {
return new WP_Error( 'rest_cannot_access', __( 'Only authenticated users can access the REST API.', 'disable-json-api' ), array( 'status' => rest_authorization_required_code() ) );
return $access;
View .zshrc
# Path to your oh-my-zsh installation
export ZSH=/Users/chuck/.oh-my-zsh
# See
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
View Gravity Forms Reset Styles
// These styles are made in mind to be used with SCSS or LESS
// If you use these styles, you must go to the Gravity Forms settings in the WordPress back end and set Output CSS to No.
////----- Core Containers