- Shinji tanaka / hatena CEO
- githubやってるよ
- history
- 2001/7 京都にて創業
- 2004/2 Tokyo
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 | |
/** | |
* masking string | |
* | |
* @param string @secretStr | |
* @return string | |
*/ | |
function masking($secretStr) { | |
return str_repeat('*', strlen($secretStr)); | |
} |
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
.circle { | |
background-color: #cc3; | |
height: 150px; | |
width: 150px; | |
border-radius:75px; | |
-moz-border-radius:75px; | |
-webkit-border-radius: 75px; | |
} |
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
# http://d.hatena.ne.jp/kakurasan/20080414/p1 | |
#! /usr/bin/python | |
# -*- encoding: utf-8 -*- | |
a = 1 | |
class TestClass: | |
a = 10 # メンバ関数からは「self.a」で扱われる | |
def __init__(self): | |
"""オブジェクトの初期化処理・コンストラクタとも""" |
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
function orderFade() { | |
$("div:hidden:first").fadeIn('fast', function () { | |
orderFade() | |
}); | |
} | |
orderFade(); |
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_beautifier --filters "ArrayNested NewLines(before=if:switch:T_COMMENT)" -f filename.php |
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
// see. http://blog.asial.co.jp/659 | |
<script type="text/javascript"> | |
/** | |
* コールバック | |
*/ | |
function myfunc(json) { | |
var box = $('#twitterBox'); | |
$(json.results).each(function(i, v) { | |
v.jp_created_at = dateJp(v.created_at); |
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 base64_urlsafe_encode($val) { | |
$val = base64_encode($val); | |
return str_replace(array('+', '/', '='), array('_', '-', '.'), $val); | |
} | |
function base64_urlsafe_decode($val) { | |
$val = str_replace(array('_','-', '.'), array('+', '/', '='), $val); | |
return base64_decode($val); |
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 | |
/** | |
* if there is no http_response_code function (PHP 5 >= 5.4) | |
* define own http_response_code function. | |
* refs. http://www.php.net/manual/ja/function.http-response-code.php#107261 | |
*/ | |
if (!function_exists('http_response_code')) { | |
/** | |
* @param string $code http response code | |
*/ |
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 | |
$ary1 = array( | |
'matsu' => 'ary1 matsu', | |
'take' => 'ary1 take', | |
'ume' => 'ary1 ume', | |
'ary1' => 'ary1 value', | |
); | |