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
<html> | |
<head> | |
<style> | |
.game { | |
width: 600px; | |
display: grid; | |
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr; | |
position: relative; | |
} |
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 { registerBlockType } = wp.blocks; | |
const { InnerBlocks, Inserter } = wp.blockEditor; | |
const { Button } = wp.components; | |
const { Fragment } = wp.element; | |
const { withSelect } = wp.data; | |
const allowed = ['test/test-inner-container']; | |
const template = [['test/test-inner-container']]; |
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 { registerBlockType } = wp.blocks; | |
const { InnerBlocks, Inserter } = wp.blockEditor; | |
const { Button } = wp.components; | |
const { Fragment } = wp.element; | |
const { withSelect } = wp.data; | |
registerBlockType('test/test-inner-container', { | |
title: 'Test Inner Container', | |
icon: 'editor-table', |
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 puppeteer = require('puppeteer'); | |
const util = require('util'); | |
if ( ! process.env.WP_URL || ! process.env.WP_USER || ! process.env.WP_PASS || ! process.env.DB_HOST || ! process.env.DB_USER || ! process.env.DB_PASSWORD || ! process.env.DB_NAME ) { | |
console.error( 'Missing env variables.' ); | |
process.exit(); | |
} | |
const prefix = process.env.DB_PREFIX || 'wp_'; |
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
<?php | |
/** | |
* Performant utility function for building a term tree. | |
* | |
* Tree will look like this: | |
* [ | |
* WP_Term( | |
* name | |
* slug | |
* children ->[ |
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
{ | |
"from": 0, | |
"size": 15, | |
"sort": [ | |
{ | |
"_score": { | |
"order": "desc" | |
} | |
} | |
], |
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
{ | |
"from": 0, | |
"size": 20, | |
"sort": [ | |
{ | |
"_score": { | |
"order": "desc" | |
} | |
} | |
], |
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
{ | |
"from": 0, | |
"size": 10, | |
"sort": [ | |
{ | |
"_score": { | |
"order": "desc" | |
} | |
} | |
], |
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
{ | |
"settings": { | |
"index.mapping.total_fields.limit": 5000, | |
"index.max_result_window": 1000000, | |
"analysis": { | |
"analyzer": { | |
"default": { | |
"tokenizer": "standard", | |
"filter": [ | |
"standard", |
NewerOlder