start new:
tmux
start new with session name:
tmux new -s myname
| /** | |
| * This gulpfile will copy static libraries and a index.html file as well as | |
| * merge, babelify and uglify the rest of the javascript project. | |
| * | |
| * TODO: | |
| * - Separate media, libs and src with different watchers. | |
| * - Media and libs should only be copied to dist if they are different sizes. | |
| * | |
| * The expected project is to be laid out as such: | |
| * |
| <?php | |
| class CustomWalker extends Walker { | |
| public $tree_type = 'category'; | |
| public $db_fields = array( | |
| 'parent' => 'parent', | |
| 'id' => 'term_id', | |
| ); | |
| public function start_lvl( &$output, $depth = 0, $args = array() ) { | |
| $output .= "<ul class='children'>\n"; |
| /* | |
| Following code is solved the return type issue and if condition syntax error. The original code that is from Stackoverflow, but it had two issues; return type is not consistent and a logical sytax error. | |
| original: https://stackoverflow.com/questions/42462187/wordpress-rest-api-v2-how-to-list-taxonomy-terms | |
| endpoint: http://youdomain.com/wp-json/wp/v2/all-terms?term=you_taxonomy | |
| */ | |
| class All_Terms { | |
| public function __construct() { |
| // get random color | |
| background-color: ${"#" + (0x1000000 + Math.random() * 0xffffff).toString(16).substr(1, 6)}; | |
| <?php | |
| /** | |
| * Adds Filters Automatically from Array Keys | |
| */ | |
| add_action('genesis_meta', 'bw_add_array_filters_genesis_attr'); | |
| function bw_add_array_filters_genesis_attr() | |
| { | |
| $filters = bw_merge_genesis_attr_classes(); | |
| foreach(array_keys($filters) as $context) { |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
| const idleMachine = Machine( | |
| { | |
| id: "idle", | |
| initial: 'idle', | |
| states: { | |
| idle: { | |
| entry: 'logEntry', | |
| exit: 'logExit' | |
| } | |
| }, |