Skip to content

Instantly share code, notes, and snippets.

View miminari's full-sized avatar
🏠
Working from home

mimi miminari

🏠
Working from home
View GitHub Profile
{
"port": 3333,
"plugins": [ "WordPress/wp-lazy-loading", "./YOUR-AWESOME-PLUGIN" ],
"themes": [ "./YOUR-AWESOME-THEME" ]
}
@miminari
miminari / docker-compose.yml
Created May 23, 2019 02:06
docker compose for WordPress
version: '2'
services:
db:
image: mysql:5.7
volumes:
- "./.data/db:/var/lib/mysql"
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
# ==================== Emojis ====================
# ✨ :sparkles: 新機能(New Feature)
# 🐛 :bug: バグ修正(Bagfix)
# 🔧 :wrench: バグではない修正 (Update)
# 💼 :briefcase: 開発ツール(Tools)
# 🎨 :art: デザインUI/UX(Accessibility)
# 🐎 :horse: パフォーマンス(Performance)
<?php
require_once(dirname(__FILE__) . '/vendor/autoload.php');
$client = new Aws\S3\S3Client([
'credentials' => [
'key' => _AWS_ACCESS_KEY_ID,
'secret' => _AWS_SECRET_ACCESS_KEY,
],
'region' => 'ap-northeast-1',
'version' => 'latest',
<template>
<section class="container">
<div>
<h1 class="title">test app</h1>
<div v-if="projects.length != 0">
<ul>
<li v-for="project in projects" :key="project.id">
<nuxt-link :to="'/projects/'+project.projectID">{{ project.name }}</nuxt-link>
</li>
</ul>
// ===== config =====
$theme-colors: (
red: #CE2121,
gold: #988768,
base: $base-color,
texts: $text-color
);
//mixin
@mixin eachBtnColor($colors) {
@each $key, $color in $colors {
// you need rewrite rem()
hr,.wp-block-separator {
border-top: rem(2) dashed lighten($text-color,50%);
margin: rem(30) auto;
width: 50%;
&.is-style-wide {
width: auto;
margin: rem(30) 1em;
}
&.is-style-dots {
.wp-block-button {
.wp-block-button__link {
border-radius: 0.375rem;
font-weight: 700;
font-size: inherit;
line-height: auto;
padding: .7em 1.2em;
&:hover {
text-decoration: none;
box-shadow: none;