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
"use strict"; | |
calc_money(100, 3, 12, 5); | |
function calc_money (start_money, add_rate, times, add_money) { | |
// startMoney ... 開始金額(万円) | |
// addRate ... 増加する割合(パーセント) | |
// times ... 計算回数 | |
// addMoney ... 追加金額 | |
const rate = 1 + add_rate/100; |
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
$cfg['Servers'][$i]['host'] = getenv('OPENSHIFT_MYSQL_DB_HOST'); | |
$cfg['Servers'][$i]['port'] = getenv('OPENSHIFT_MYSQL_DB_PORT'); |
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
// ** MySQL 設定 - この情報はホスティング先から入手してください。 ** // | |
/** WordPress のためのデータベース名 */ | |
define('DB_NAME', getenv('OPENSHIFT_APP_NAME')); | |
/** MySQL データベースのユーザー名 */ | |
define('DB_USER', getenv('OPENSHIFT_MYSQL_DB_USERNAME')); | |
/** MySQL データベースのパスワード */ | |
define('DB_PASSWORD', getenv('OPENSHIFT_MYSQL_DB_PASSWORD')); |