This file contains hidden or 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
/** | |
* Google ドキュメントのフォームから投稿があったら確認メールを自動返信する(日本語版) | |
* English version will be available later. | |
* | |
* @author Masunaga Ray ( http://www.msng.info/ ) | |
* @instruction http://www.msng.info/archives/2012/04/google-docs-auto-reply.php | |
*/ | |
function sendConfirmation() { | |
//フォームでメールアドレスが入力される列の名前 | |
var emailColName = "メールアドレス"; |
This file contains hidden or 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
/** | |
* Google ドキュメントのフォームから投稿があったら確認メールを自動返信する(日本語版) | |
* English version will be available later. | |
* | |
* @author Masunaga Ray ( http://www.msng.info/ ) | |
* @instruction http://www.msng.info/archives/2012/04/google-docs-auto-reply.php | |
*/ | |
function sendConfirmation() { | |
try { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); |
This file contains hidden or 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 | |
//Facebook SDK for PHP の src/ にあるファイルを | |
//サーバ内の適当な場所にコピーしておく | |
require_once('php-sdk/facebook.php'); | |
$config = array( | |
'appId' => '[取得した App ID]', | |
'secret' => '[取得した App Secret]' | |
); |
This file contains hidden or 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 | |
$timestamp = strtotime('2012-11-04'); | |
$format = SUNFUNCS_RET_TIMESTAMP; | |
$latitude = 33.590383; | |
$longitude = 130.423992; | |
$sunriseTimestamp = date_sunrise($timestamp , $format, $latitude, $longitude); | |
$sunriseDateTime = date('H:i:s', $sunriseTimestamp); | |
echo $sunriseDateTime; //06:40:03 |
This file contains hidden or 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
array( | |
"New Year's Day" => '元日', | |
"Coming-of-Age Day" => '成人の日', | |
"National Foundation Day" => '建国記念の日', | |
"Vernal Equinox Day" => '春分の日', | |
"Showa Day" => '昭和の日', | |
"Constitution Memorial Day" => '憲法記念日', | |
"Greenery Day" => 'みどりの日', | |
"Children's Day" => 'こどもの日', | |
"Marine Day" => '海の日', |
This file contains hidden or 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
<script type="text/javascript"> | |
$('form').submit(function() { | |
$(this).submit(function () { | |
return false; | |
}); | |
}); | |
</script> |
This file contains hidden or 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 strpos_array($haystack, $needles, $offset = 0) { | |
if (is_array($needles)) { | |
foreach ($needles as $needle) { | |
$pos = strpos_array($haystack, $needle); | |
if ($pos !== false) { | |
return $pos; | |
} | |
} | |
return false; |
This file contains hidden or 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
<!-- コメントボックスを表示したいところにこれを置く --> | |
<script> | |
(function(){ | |
var ua = navigator.userAgent; | |
if (ua.indexOf('iPhone') == -1 | |
&& ua.indexOf('iPad') == -1 | |
&& ua.indexOf('iPod') == -1 | |
&& ua.indexOf('Android') == -1) { | |
document.write('<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="10"></div>'); | |
} |
This file contains hidden or 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 | |
$speakers = ['@voidofglans', '@mkkn_info', '@cloned', '@tanakahisateru', '@sizuhiko', '@shoichi4411', '@77web', '@hhatto']; | |
$count = 10; | |
echo "\n"; | |
for ($i = 0; $i < $count; $i++) { | |
echo "シャッフル!!\n"; | |
shuffle($speakers); | |
sleep(1); |
This file contains hidden or 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
/app/tmp/cache/* | |
!/app/tmp/cache/models/ | |
!/app/tmp/cache/persistent/ | |
!/app/tmp/cache/views/ | |
/app/tmp/cache/models/* | |
!/app/tmp/cache/models/empty | |
/app/tmp/cache/persistent/* | |
!/app/tmp/cache/persistent/empty |