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
$user = "Login User Name" | |
$exePath = "putty exe Path" | |
$inputFilePath = "Server List Text FilePath" | |
$sr = New-Object System.IO.StreamReader($inputFilePath, [Text.Encoding]::GetEncoding("Shift_Jis")) | |
while (($line = $sr.ReadLine()) -ne $null) | |
{ | |
$arg = "-ssh " + $line + " -l " + $user | |
Start-Process $exePath -ArgumentList $arg | |
} |
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
function showStaticMember($className) { | |
$class = new ReflectionClass($className); | |
$propertyList = $class->getStaticProperties(); | |
print_a($propertyList); | |
return ; | |
} |
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
/** | |
* コンストラクタ | |
* | |
* @access public | |
* @author sakuragawa | |
*/ | |
public function __construct($request = null, $response = null) { | |
// サブクラスのメンバをマージする | |
$this->__mergeSubClass(); |
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
SELECT | |
* | |
FROM | |
tablename | |
WHERE | |
col IN ('A','B','C') |
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
<h2>/shops/indexのview</h2> | |
<p>ここでshopsに特化したelementを読み込み</p> | |
<?php echo $this->Partial->render('form'); ?> |
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
<p>PartialHelperのテスト</p> | |
<p>shopsコントローラーに特化したelement</p> |
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 ShopsController extends AppController { | |
var $helpers = array('Partial'); | |
} | |
?> |
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
SELECT | |
-- 年齢範囲ごとのフラグ | |
CASE | |
when date_part('year', age('2010-12-1',birthday)) between 1 and 19 then 10 | |
when date_part('year', age('2010-12-1',birthday)) between 20 and 29 then 20 | |
when date_part('year', age('2010-12-1',birthday)) between 30 and 39 then 30 | |
when date_part('year', age('2010-12-1',birthday)) between 40 and 49 then 40 | |
when date_part('year', age('2010-12-1',birthday)) between 50 and 59 then 50 | |
when date_part('year', age('2010-12-1',birthday)) between 60 and 69 then 60 | |
when date_part('year', age('2010-12-1',birthday)) between 70 and 79 then 70 |
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
SELECT | |
-- 年齢範囲ごとのフラグ | |
CASE | |
when date_part('year', age('2010-12-1',birthday)) between 1 and 19 then 10 | |
when date_part('year', age('2010-12-1',birthday)) between 20 and 29 then 20 | |
when date_part('year', age('2010-12-1',birthday)) between 30 and 39 then 30 | |
when date_part('year', age('2010-12-1',birthday)) between 40 and 49 then 40 | |
when date_part('year', age('2010-12-1',birthday)) between 50 and 59 then 50 | |
when date_part('year', age('2010-12-1',birthday)) between 60 and 69 then 60 | |
when date_part('year', age('2010-12-1',birthday)) between 70 and 79 then 70 |
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
SELECT | |
date_part('year', age('2010-12-1',birthday)), | |
count(date_part('year', age('2010-12-1',birthday))) | |
FROM | |
member | |
GROUP BY | |
date_part('year', age('2010-12-1',birthday)) | |
ORDER BY | |
date_part('year', age('2010-12-1',birthday)) |
NewerOlder