# Перечислить конкретные файлы, которые нужно коммитить
hg commit file_1 file_2
hg commit foo.c foo.h dir/
# исключить файлы из коммита
hg commit -X file_3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const webpack = require('webpack'); | |
const path = require('path'); | |
const NODE_ENV = process.env.NODE_ENV || 'development'; | |
const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | |
// process.noDeprecation = true; | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); |
- Как обновить Gulp до версии 4?. How do I update to Gulp 4? - оригиналльная статья.
- The Complete-Ish Guide to Upgrading to Gulp 4
- Why I'm not the biggest WordPress fan - about weaknesses of wp, nehalist.io.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Example config for xdebug ini. Use with phpstorm ide. | |
zend_extension=xdebug.so | |
xdebug.remote_enable = on | |
xdebug.remote_connect_back = on | |
xdebug.remote_host="localhost" | |
xdebug.remote_port=9010 | |
xdebug.idekey="PHPSTORM" | |
xdebug.remote_handler=dbgp | |
xdebug.remote_autostart=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_enqueue_scripts', 'pt_like_it_scripts' ); | |
function pt_like_it_scripts() { | |
if( is_single() ) { | |
wp_enqueue_style( 'like-it', trailingslashit( plugin_dir_url( __FILE__ ) ).'css/like-it.css' ); | |
if (!wp_script_is( 'jquery', 'enqueued' )) { | |
wp_enqueue_script( 'jquery' );// Comment this line if you theme has already loaded jQuery | |
} | |
wp_enqueue_script( 'like-it', trailingslashit( plugin_dir_url( __FILE__ ) ).'js/like-it.js', array('jquery'), '1.0', true ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Add all of this tu custom page template ?> | |
<?php | |
global $wpdb; | |
$error = ''; | |
$success = ''; | |
// check if we're in reset form | |
if( isset( $_POST['action'] ) && 'reset' == $_POST['action'] ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* An example of a project-specific implementation. | |
* | |
* After registering this autoload function with SPL, the following line | |
* would cause the function to attempt to load the \Foo\Bar\Baz\Qux class | |
* from /path/to/project/src/Baz/Qux.php: | |
* | |
* | |
* new \Foo\Bar\Baz\Qux; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Comment form hidden fields | |
*/ | |
function comment_form_hidden_fields() | |
{ | |
comment_id_fields(); | |
if ( current_user_can( 'unfiltered_html' ) ) | |
{ |