If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
<?php | |
/** | |
* WP-API modify post response fields | |
* | |
*/ | |
/** | |
* Posts per page | |
*/ | |
function kli_wp_api_query_post_per_page( $query ){ |
<?php | |
/** | |
* Thanks for James Kemp / Iconic turning the idea into a plugin | |
* https://wordpress.org/plugins/shortcode-pagination-for-woocommerce | |
* | |
* This code shows pagination for WooCommerce shortcodes when it's embeded on single pages. | |
* Include into functions.php. | |
*/ | |
if ( ! is_admin() ) { |
<?php | |
/** | |
* WordPress Gutenberg gallery block fix to the gallery shortcode. | |
*/ | |
/** | |
* Replace Gutenberg gallery block with the gallery shortcode. | |
* Tested until Gutenberg 2.4 | |
* |
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { SafeHtmlPipe } from "./pipes" | |
@NgModule({ | |
declarations: [ | |
SafeHtmlPipe, |
<?php | |
/** | |
* WordPress Plugin Isolation helper | |
* This helps your plugin/theme to have isolated webpages, keeping only your organized prefixed hooks. | |
* @package Hashtagg | |
* @subpackage Base | |
* @author Klipolis | |
* @copyright 2014 Klipolis | |
* @since 0.1.0 | |
* @version 0.1.0 |
# Toggle paused status for running containers | |
if [[ $(docker ps -q -f status=paused | wc -l) -gt 0 ]]; then docker unpause $(docker ps -q -f status=paused); else docker pause $(docker ps -q -f status=running); fi; |
/** | |
* Fill Space Up | |
* ver 0.1.0 | |
* | |
* Repeater to fillup remaining screen space in the line. | |
* @TD Make it work for row and column, initial alignment of horizontally or vertically | |
* @TD Make calculations with js, without wrapping elements into div | |
* |
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { AppComponent } from './app.component'; | |
import { CheckScriptsPipe, SafeHtmlPipe } from "./pipe.safehtml.loadJsURL.ts" | |
@NgModule({ | |
declarations: [ |
/** | |
* Log Function in es6 | |
*/ | |
function log() { | |
var line = Array.prototype.slice | |
.call(arguments) | |
.map(function(argument) { | |
return typeof argument === 'string' ? argument : JSON.stringify(argument); | |
}) | |
.join(' '); |