Skip to content

Instantly share code, notes, and snippets.

View reoring's full-sized avatar
🏢
work at office

reoring reoring

🏢
work at office
View GitHub Profile
@reoring
reoring / file0.txt
Created September 6, 2012 08:56
CentOSにChef Serverを最速でインストールする ref: http://qiita.com/items/1b64396e3cba879cb66e
rpm -Uvh http://rbel.frameos.org/rbel6
@reoring
reoring / gist:3774295
Created September 24, 2012 05:13
CentOS 仮想化ホスト構築マニュアル
CentOS 仮想化ホスト構築マニュアル
SELinux停止
/etc/sysconfig/selinux
@reoring
reoring / file0.txt
Created September 27, 2012 05:42
WordPressでTabbedWidgetが動作しないときの対処 ref: http://qiita.com/items/004501cc3cd0c245f3f3
function addHeader() {
wp_enqueue_script('jquery-ui-tabs', $this->plugin_path . 'js/jquery-ui-custom.min.js', array('jquery'), false, false);
wp_enqueue_script('jquery-ui-accordion', $this->plugin_path . 'js/jquery-ui-custom.min.js', array('jquery'), false, false);
wp_enqueue_script('jquery-ui-cookie', $this->plugin_path . 'js/jquery-cookie.min.js', array('jquery-ui-accordion'), false, false);
// Add default widgets styles
wp_enqueue_style('tabbed-widgets', $this->plugin_path . 'css/tabbed-widgets.css');
wp_enqueue_script('jquery-ui-accordion', $this->plugin_path . 'js/jquery-ui-custom.min.js', array('jquery'), false, true);
wp_enqueue_script('jquery-ui-cookie', $this->plugin_path . 'js/jquery-cookie.min.js', array('jquery-ui-accordion'), false, true);
@reoring
reoring / gist:5786876
Last active December 18, 2015 12:59
Chef, Vagrant勉強会

VirtualBox

4.2.16

Vagrant

http://files.vagrantup.com/packages/0219bb87725aac28a97c0e924c310cc97831fd9d/Vagrant-1.2.4.dmg

Box

VirtualBox

4.2.16

Vagrant

http://files.vagrantup.com/packages/0219bb87725aac28a97c0e924c310cc97831fd9d/Vagrant-1.2.4.dmg

Box

@reoring
reoring / gist:9109353
Created February 20, 2014 08:43
slate configuration
config defaultToCurrentScreen true
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
alias showHintsLeftHand hint AOEUIYQJKX
alias showNormalHint hint AOEUIDHTNSYXFBPKGMCW
bind e:cmd hint ${showNormalHint}
@reoring
reoring / gist:3ff898c90a81073ea37b96e0fef8746b
Last active October 25, 2022 02:50
docker-compose.yml for php and postgresql

html/index.php

<?php

phpinfo();

docker/Dockerfile

@reoring
reoring / playbook_vuejs.md
Created August 22, 2017 00:42
StorybookをVuejsで使う

StorybookをVuejsで使う Screen Shot 2017-08-21 at 17.08.26.png

Storybook3.2からVuejsのサポートが追加されたので、さっそく使ってみます。

Storybookはコンポーネントのカタログを簡単に作成できるツールで、プロジェクト内の自作コンポーネント一覧や使いかたをカタログにできます。

Screen Shot 2017-08-21 at 16.54.49.png

@reoring
reoring / file0.php
Created November 10, 2017 06:12
CakePHPのMigrationクラスを既存のクラス定義からジェネレートする ref: http://qiita.com/reoring/items/a69551c16721685e8d8e
<?php
class MigratinoClassGenerator
{
public function generate(string $className)
{
$ref = new ReflectionClass($className);
$properties = $ref->getProperties();