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
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1>Typewriter</h1> | |
<button onclick="typeWriter()">Click me</button> | |
<p id="demo"></p> |
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
{ | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": "explicit", | |
"source.fixAll.tslint": "explicit", | |
"source.organizeImports": "explicit" | |
}, | |
"eslint.run": "onSave", | |
"emmet.includeLanguages": { |
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
/* eslint-disable camelcase */ | |
/** | |
* WordPress dependencies | |
*/ | |
import apiFetch from '@wordpress/api-fetch'; | |
import { Fragment, useEffect, useState } from '@wordpress/element'; | |
import { __ } from '@wordpress/i18n'; | |
/** | |
* Components |
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
const { innerBlocks } = useSelect(select => select('core/block-editor').getBlocksByClientId(clientId)[0]); | |
useEffect(() => { | |
const { updateBlockAttributes } = dispatch('core/block-editor'); | |
times(innerBlocks.length, n => { | |
updateBlockAttributes(innerBlocks[n].clientId, { | |
tabParentId: `${uniqueId}` | |
}); | |
}); | |
}, [uniqueId, innerBlocks]); |
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 | |
if (!empty($gfonts)) { | |
$font_array = explode('|', $gfonts); | |
foreach ($font_array as $font) { | |
if (empty($font)) { | |
continue; | |
} | |
$query_args = ['family' => $font]; |
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
const path = require('path'); | |
const defaultConfig = require('@wordpress/scripts/config/webpack.config'); | |
const { getWebpackEntryPoints } = require('@wordpress/scripts/utils/config'); | |
module.exports = { | |
...defaultConfig, | |
entry: { | |
...getWebpackEntryPoints(), | |
'global/global': path.resolve(process.cwd(), 'src', 'global', 'index.js') | |
}, |
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
"prettier": { | |
"arrowParens": "avoid", | |
"bracketSpacing": true, | |
"htmlWhitespaceSensitivity": "css", | |
"insertPragma": false, | |
"jsxBracketSameLine": false, | |
"jsxSingleQuote": false, | |
"printWidth": 140, | |
"proseWrap": "preserve", | |
"quoteProps": "as-needed", |
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
version: "3.1" | |
services: | |
db: | |
image: mysql:5.7 | |
platform: linux/x86_64 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: PASSWORD | |
MYSQL_DATABASE: WORDPRESS | |
MYSQL_USER: USER |
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
More Triggers: https://tinyurl.com/triggers-cheatsheet | |
Gist Link: https://tinyurl.com/deploy-general | |
Gist Link: https://tinyurl.com/deploy-after-build | |
https://tinyurl.com/asset-readme | |
https://tinyurl.com/sample-distignore |
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
<Select | |
classNamePrefix="gkits" | |
value={{ | |
value: (value || '').replace(/\s+/g, '-'), | |
label: value, | |
}} | |
onChange={onFontChange} | |
options={fonts} | |
unstyled={true} | |
isSearchable={true} |
NewerOlder