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 | |
function calcJanCodeDigit($num) { | |
$arr = str_split($num); | |
$odd = 0; | |
$mod = 0; | |
for($i=0;$i<count($arr);$i++){ | |
if(($i+1) % 2 == 0) { | |
//偶数の総和 | |
$mod += intval($arr[$i]); | |
} else { |
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
(defadvice org-archive-subtree | |
(around org-archive-subtree-to-data-tree activate) | |
"org-archive-subtree to date-tree" | |
(if (org-entry-is-done-p) | |
(let* ((dct (decode-time | |
(org-time-string-to-time | |
(cdar (org-entry-properties nil 'special "CLOSED"))))) | |
(y (nth 5 dct)) | |
(m (nth 4 dct)) | |
(d (nth 3 dct)) |
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
;;設定 | |
;;(require 'git-status) | |
;;psvn.el http://www.xsteve.at/prg/emacs/psvn.el からの移植 | |
(eval-when-compile (require 'cl)) | |
(require 'vc-git) | |
(add-to-list 'vc-handled-backends 'Git) | |
(defvar git-status-state-mark-modeline t | |
"modeline mark display or not") |