edit.php?post_type=wp_block
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
ssh-keygen -t ed25519 -f ~/.ssh/unique_key_name |
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 | |
// `get_post_datetime` 関数を利用する | |
$datetime = get_post_datetime( $post, 'date', 'gmt' ); | |
/** | |
* refs : https://developer.wordpress.org/reference/functions/get_post_datetime/ | |
*/ | |
// DateTime オブジェクトが返るので、W3C 形式で整形する |
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 | |
add_filter( 'automatic_updates_is_vcs_checkout', '__return_false', 1 ); |
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
``` | |
$ git rm $(git ls-files --deleted) | |
``` |
% mysql -uroot -proot -hlocalhost -S/Users/********/Library/Application\ Support/Local/run/*********/mysql/mysqld.sock local < local.sql
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
tap "1password/tap" | |
tap "felixkratz/formulae" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
tap "shivammathur/php" |
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
function example_dashboard_video_widget_function() { | |
ob_start(); | |
?> | |
<div class="example-dashboard-video"> | |
<iframe width="560" height="315" src="https://www.youtube.com/embed/◯◯◯◯◯◯◯" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | |
</div> | |
<p>もっと詳しい操作方法は<a href="" target="blank" rel="noopener noreferrer">こちらのリンク先の解説</a>をご覧ください。</p> | |
<style> | |
.example-dashboard-video { | |
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
# 本来のバックアップファイルの所在 '/Users/{{ユーザー名}}/Library/Application Support/MobileSync' | |
# 移動先 '/Volumes/{{外部SSD名}}/iphone-bk/Backup' | |
$ ln -s "/Volumes/{{外部SSD名}}/iphone-bk/Backup" "/Users/{{ユーザー名}}/Library/Application Support/MobileSync" |
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 | |
/** | |
* Plugin Name: L2D Sample Custom Block Styles | |
* Plugin URI: https://gist.github.com/lunaluna/580f577259cfbe9e7ee1c32438c3aa90 | |
* Description: Sample custom block style plugin for Mitaka - Kichijyoji WordPress Meetup 2020/05/02 | |
* Author: Hiroki Saiki | |
* Author URI: https://lunalunadesign.net/ | |
* Version: 1.0.0 | |
* License: GPL2+ | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt |
NewerOlder