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
/** | |
* create_choices | |
* 選択肢(4つ)を生成 | |
* | |
* @param int $question_last_id question.id | |
* @return boolean | |
*/ | |
private function create_choices($question_last_id) { | |
/* | |
* IPA系の試験は選択肢は4つある |
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
/* | |
* questionはテーブル名 | |
*/ | |
class Model_Question extends Model | |
{ | |
/* | |
* questionテーブル | |
*/ | |
// 略 | |
} |
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
$ docker run -p 80:80 -v /Users/$USER/Documents/workspace/korejo:/var/www/html --name php -d php:5.6-apache |
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
volumes: | |
- /share | |
- .:/app | |
- ./docker/mysql:/etc/mysql/conf.d:ro | |
- ./docker/apache:/etc/apache2/sites-enabled:ro |
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
// 1. タイムゾーンコメントアウト | |
// 97行目あたり | |
'default_timezone' => 'Asia/Tokyo', | |
// 2. always_loadとORMのコメントアウトを外す | |
初期は下記のようにコメントアウトされています。 | |
// 259行目あたり | |
// 'always_load' => array( | |
/* 略 */ | |
// 'packages' => array( | |
// //'orm', |
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
/* 略 */ | |
\DBUtil::add_foreign_key('firstcategories', [ | |
'constraint' => 'index_firstcategories_to_secondcategories', | |
'key' => 'secondcategory_id', | |
'reference' => [ | |
'table' => 'secondcategories', | |
'column' => 'id', | |
], | |
'on_update' => 'CASCADE', | |
'on_delete' => 'CASCADE' |
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
$ sudo apt-get install tightvncserver |
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
$ sudo apt-get install nodered |
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 clone https://github.com/RyosukeKamei/raspberrypi3.git |
OlderNewer