WordPress を使った開発を行う時の、PhpStorm の設定メモ。
$ brew install php56
$ brew install composer --ignore-dependencies
$ brew install wp-cli --ignore-dependencies
<?php | |
/** | |
* Validation rule chatwork. | |
* | |
* @param array $validation_rules | |
*/ | |
function mwform_validation_rule_chatwork( $validation_rules ) { | |
if ( ! class_exists("MW_Validation_Rule_Chatwork") ) { | |
class MW_Validation_Rule_Chatwork extends MW_WP_Form_Abstract_Validation_Rule { | |
/** |
/** | |
* 文字列の末尾からスラッシュを削除する | |
* | |
* @param {string} str | |
* @returns {string} | |
*/ | |
function delete_trailing_slash(str) { | |
if (str.slice(-1) === '/') { | |
str = str.slice(0,-1); | |
} |
<?php | |
/** | |
* Plugin Name: KUCKLU Test Plugin | |
* Plugin URI: | |
* Description: -_- | |
* Author: KUCKLU | |
* Version: 1.0.0 | |
* Author URI: http://visualive.jp/ | |
* Text Domain: kuck1u-test-plugin | |
* Domain Path: /langs |
<?php | |
/** | |
* Attachment image to base64 | |
* | |
* @package WordPress | |
* @subpackage VA Attachment image to base64 | |
* @author KUCKLU <kuck1u@visualive.jp> | |
* Copyright (C) 2015 KUCKLU and VisuAlive. | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
/** | |
* 幅: 364 (3人分表示する場合) | |
* 幅: 488 (4人分表示する場合) | |
* 高さ: 145 (横一列の場合) | |
* | |
* アバターを左から順に並べたい場合は、voice-states クラスの justify-content プラパティを削除 | |
* アバターを右から順に並べたい場合は、voice-states クラスに justify-content プラパティを追加して flex-end を指定 | |
**/ | |
:root { | |
--avatar-count: 3; |
#!/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} |
[mail function] | |
smtp_port = 1025 | |
sendmail_path = C:/Users/HOGE/scoop/apps/ruby/current/gems/bin/catchmail -f send@mamp.dev | |
[curl] | |
; A default value for the CURLOPT_CAINFO option. This is required to be an | |
; absolute path. | |
; https://curl.haxx.se/ca/cacert.pem | |
curl.cainfo = "D:/Google/Development/SSL/curl/cacert.pem" |
javascript:(function(){var url=top.document.URL;if(url.match(/https.*?amazon/)){document.location.href=url+'&emi=AN1VRQENFRJN5&field-is_prime=1';}})(); |
php artisan config:cache | |
php composer.phar dump-autoload | |
php artisan db:seed --class=prefacture --force | |
php artisan migrate:fresh --seed | |
git stash | |
git flow init | |
git stash list | |
git branch | |
git stash show stash@{0} |