This file contains 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
[ | |
"", | |
"1, улица", | |
"2, улица", | |
"3, улица", | |
"4, улица", | |
"5, улица", | |
"6, улица", | |
"7, улица", | |
"8, улица", |
This file contains 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
//-------------------------------------------------------------- | |
// Google analytics tracking helper | |
// @Author : Chris Panayotov / info[at]bassta[dot]bg | |
//-------------------------------------------------------------- | |
// Usage: tracker.track({eventCategory: '', eventLabel:''}); | |
// @eventCategory : Typically the object that was interacted with (e.g. button) | |
// @eventAction : The type of interaction (e.g. click) | |
// @eventLabel : Useful for categorizing events (e.g. nav buttons) | |
// More info @ https://developers.google.com/analytics/devguides/collection/analyticsjs/events | |
//-------------------------------------------------------------- |
This file contains 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
/** | |
* Basic event system. Use in component or as event bus | |
* Author: Chris Panayotoff <chris.panayotoff[at]gmail[dot]com> | |
*/ | |
export default class Eventify { | |
constructor() { | |
this.list = {}; | |
} |
This file contains 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
{ | |
"watch": ["src"], | |
"ext": "ts", | |
"ignore": ["src/**/*.spec.ts"], | |
"exec": "ts-node ./src/index.ts" | |
} |
This file contains 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
const util = require('util'); | |
const exec = util.promisify(require('child_process').exec); | |
const wp_path = '/Users/<User>/Documents/Sites/<WP>'; | |
async function seed(postData = {}, rawArgs = {}) { | |
const wpArgs = { ...rawArgs }; | |
let postId; | |
let featuredImageId; |
This file contains 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
// https://medium.com/@romualdasromasdakeviius/using-vue-cli-to-build-wordpress-plugin-including-hmr-1a71dfdf05c2 | |
// https://medium.com/@devs_group/wordpress-vue-js-with-webpack-and-hot-reload-7c4faea9d0d9 | |
function is_develop_serve() | |
{ | |
$connection = @fsockopen('localhost', '8080'); | |
return $connection ? true : false; | |
} | |
This file contains 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
RewriteEngine On | |
RewriteCond %{HTTP_ACCEPT} image/webp | |
RewriteCond %{DOCUMENT_ROOT}/$1.webp -f | |
RewriteRule (.*)\-.*(jpe?g|png) $1.webp [T=image/webp,E=accept:1] | |
Source: | |
https://buttercms.com/blog/front-end-performance-optimization-techniques |
This file contains 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
curl http://loripsum.net/api/4 | wp post generate --post_content --count=10 |
This file contains 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
// File webpack.mix.js | |
const mix = require('laravel-mix'); | |
const PATHS = { | |
src: 'src', | |
dist: '.', | |
proxy: 'http://localhost:8888/project' | |
}; |
This file contains 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
/** | |
* Single Component helper | |
*/ | |
import $ from 'jquery'; | |
import Emitter from './Events'; | |
class Component { | |
constructor(element, options) { | |
this.element = element; |
NewerOlder