Skip to content

Instantly share code, notes, and snippets.

View DevinWalker's full-sized avatar
🌱
Coding for good

Devin Walker DevinWalker

🌱
Coding for good
View GitHub Profile
@ryo-utsunomiya
ryo-utsunomiya / gutenberg.xml
Created December 23, 2017 12:27
PhpStorm setting for Gutenberg Development
<code_scheme name="Gutenberg" version="173">
<HTMLCodeStyleSettings>
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
</HTMLCodeStyleSettings>
<JSCodeStyleSettings>
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" />
<option name="SPACES_WITHIN_INTERPOLATION_EXPRESSIONS" value="true" />
</JSCodeStyleSettings>
<PHPCodeStyleSettings>
@mark123jesper
mark123jesper / Countries.js
Created April 5, 2022 06:54
JS file for Countries with Country code, currency and currency symbol and even flag emoji.
export const listCountries = () => {
return [
{
name: 'Afghanistan',
code: 'AF',
capital: 'Kabul',
region: 'AS',
currency: {
code: 'AFN',
name: 'Afghan afghani',
/**
* WordPress dependencies
*/
import { createPortal, useEffect, useState } from '@wordpress/element';
import { registerPlugin } from '@wordpress/plugins';
import { Button } from '@wordpress/components';
function MyToolbarButton() {
// Lazy and one time initializations, also gives us a stable reference.
const [ container ] = useState( () => {