Skip to content

Instantly share code, notes, and snippets.

@andfinally
andfinally / calypso-anybar-handler.sh
Last active April 25, 2018 17:22 — forked from mcsf/calypso-anybar-handler.sh
Calypso AnyBar handler
#!/bin/bash
PORT="${PORT:-1738}"
DONE_COLOR="${DONE_COLOR:-"green"}"
PROGRESS_COLOR="${PROGRESS_COLOR:-"orange"}"
INITIAL_COLOR="${INITIAL_COLOR:-"white"}"
BUILD_ERROR_COLOR="${BUILD_ERROR_COLOR:-"red"}"
TEST_ERROR_COLOR="${TEST_ERROR_COLOR:-"purple"}"
HAS_ERROR=0
@andfinally
andfinally / sample.js
Last active February 4, 2017 15:49 — forked from gfazioli/old_version_event.js
WordPress actions and filters in Javascript Forked from gfazioli/old_version_event.js.
// Add action
wpdk_add_action( 'test_action', test_action );
// Action function
function test_action()
{
console.log( 'Fires test_action' );
}
wpdk_do_action( 'test_action' );