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
/** | |
* 小数点以下の桁数 | |
* @param {double} 数値 | |
* @param {integer} 小数点以下の桁数(省略可能) | |
* @return {double} 四捨五入した値 | |
*/ | |
Math.round = function (round_original) { | |
return function (number, pricision) { | |
var _pow; | |
switch (arguments.length) { |
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
/** | |
* 汎用ツリー構造クラス | |
*/ | |
<?php | |
class TreeNode | |
{ | |
/** 本オブジェクトの親要素 */ | |
private $parent; | |
/** 本オブジェクトの子要素 */ |
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
<?php | |
/** | |
* 祝日かどうか判定できるDateTime拡張クラス | |
* usage: $holidayDateTime->holiday(); | |
*/ | |
class HolidayDateTime extends DateTime | |
{ | |
/** 祝日一覧 */ | |
// 種別: | |
// fixed=日付固定 |
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 TABLE `prefecture` ( | |
`id` tinyint(3) unsigned NOT NULL, | |
`name` varchar(255) DEFAULT NULL, | |
`name_kana` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
); |
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
<?php | |
namespace MyLibrary; | |
/** | |
* 日本語対応DateTime拡張クラス | |
* | |
* 元号、曜日などの日本語表記に対応したDateTime拡張クラス | |
* | |
* @version 1.0.2 | |
* @author chiyoyo |
NewerOlder