-
名前
- 重村道人
-
ブログ
-
[by shigemk2] (http://d.hatena.ne.jp/shigemk2/)
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
shigemk2について | |
------------------------------------------------------------ | |
重村道人 @shigemk2 | |
・開発担当 | |
2011年4月入社。 | |
最近リファクタリングばかりやってます。 | |
cakephp、php、html、ruby、JavaScriptあたりを | |
使っているwebエンジニア。 |
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 | |
/** | |
* このメソッドは適当に作りました | |
* | |
* @param[in] $hoge | |
* @return 対応する配列 | |
* @throws Exception 対応するデータがない場合 | |
*/ | |
public function hoge($hoge = '') { | |
if(! isset($array[$hoge])) { |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>hoge</title> | |
</head> | |
<body> | |
<div id="container" style="width: 60%; height: 400px"></div> | |
<script type='text/javascript' src='./js/jquery-1.4.4.min.js'></script> | |
<script type="text/javascript" src="./js/highcharts.js"></script> |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>hoge</title> | |
</head> | |
<body> | |
<div id="container" style="width: 100%; height: 400px"></div> | |
<script type='text/javascript' src='./js/jquery-1.4.4.min.js'></script> | |
<script type="text/javascript" src="./js/highcharts.js"></script> |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>hoge</title> | |
</head> | |
<body> | |
<div id="container" style="width: 50%; height: 400px"></div> | |
<script type='text/javascript' src='./js/jquery-1.4.4.min.js'></script> | |
<script type="text/javascript" src="./js/highcharts.js"></script> |
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
# -*- coding: utf-8 -*- | |
if ARGV.size < 1 | |
puts "引数はちゃんと指定しなさいよねっ! バカァ…" | |
else | |
id = File.expand_path(ARGV[0]) | |
system "open file:///#{id}" | |
end |
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
@charset "euc-jp"; | |
/* | |
* http://meyerweb.com/eric/tools/css/reset/ | |
* v2.0 | 20110126 | |
* License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, |
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 | |
$hoge = array(1, 2, 3); | |
var_dump(array_key_exists(array(), $hoge)); // PHP Warning: array_key_exists(): The first argument should be either a string or an integer bool(false) | |
var_dump(isset($hoge[array()])); // PHP Warning: Illegal offset type in isset or empty bool(false) |
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 hoge() { | |
echo 'hoge' . PHP_EOL; | |
} | |
hoge(); | |
HOGE(); | |
hoGe(); | |
hoGE(); |
OlderNewer