Skip to content

Instantly share code, notes, and snippets.

View gouten5010's full-sized avatar

Takenori Okashita (GOUTEN) gouten5010

View GitHub Profile
@gouten5010
gouten5010 / wp-markup-template
Last active March 13, 2018 05:02
Re: WordPress Markup Template
<h1>見出し壱:夏目漱石著『吾輩は猫である』</h1>
↑あまり使わないと思う
<h2>見出し弐:レオ・レオニ作『スイミー 小さなかしこいさかなのはなし』</h2>
<h3>見出し参:あまん きみこ作、上野 紀子絵『ちいちゃんのかげおくり』</h3>
<h4>見出し四:モンゴルの民話『スーホの白い馬』</h4>
<h5>見出し五:新美南吉作『手袋を買いに』</h5>
<h6>見出し六:芥川龍之介著『羅生門』</h6>
<h2>引用 (Blockquote) テスト</h2>
@gouten5010
gouten5010 / wordmove_with_localbyflywheel.sh
Created June 15, 2017 12:02 — forked from k4zuki02h4t4/wordmove_with_localbyflywheel.sh
Enable Wordmove with "Local by Flywheel".
#!/usr/bin/env bash
set -xu
RUBY_VERSION=2.4.1
LIBSSL_VERSION=$(dpkg -s libssl1.0.0 | grep -i ^version | awk '{print $2;}')
apt-get update -y
apt-get upgrade -y
apt-get install -y software-properties-common python-software-properties vim build-essential git python-setuptools ruby-build libssl-dev=${LIBSSL_VERSION}
@gouten5010
gouten5010 / git-lesson.md
Created March 19, 2016 13:20 — forked from yatemmma/git-lesson.md
git初心者への道 - お仕事で困らないレベルまでググっとします。

git初心者への道

まずやってみよう - コミットする、ログを見る、差分を見る

初登場するコマンド: init, add, commit, log, config, status, diff

@gouten5010
gouten5010 / WP Delete ASCII Code
Last active August 29, 2015 14:26
It to remove the ASCII code from the article that was posted in WordPress. And save.
function remove_ascii( $data ) {
$ascii = '/[\x08]/';
$data['post_content'] = preg_replace($ascii, '', $data['post_content']);
return $data;
}
add_filter( 'wp_insert_post_data' , 'remove_ascii' , 10, 1);