- hoge
- hoge
brew upgrade | |
brew cleanup | |
gcloud components update |
<?php | |
class ArrayTest extends PHPUnit_Framework_TestCase { | |
/** | |
* @test | |
*/ | |
public function array_test() { | |
$actual = ['b', 'a']; | |
$expect = ['a', 'b']; | |
$this->assertSame($expect, $actual); | |
/* |
var remind = function (detail) { | |
console.log(detail.url); | |
// chrome.notifications.create('reminder', { | |
// type: 'basic', | |
// iconUrl: 'icon-128.png', | |
// title: 'sent request! ' + detail.tabId, | |
// message: detail.url | |
// }, function(notificationId) {}); | |
} |
#!/bin/bash | |
php -d phar.readonly=0 make_phar.php | |
php open_test.php |
<?php | |
class Hello { | |
public function sayHello() { | |
echo "hello\n"; | |
} | |
} |
#!/bin/sh | |
filename=$1 | |
word=$2 | |
cat ${filename} | while read line | |
do | |
grep -l ${word} ${line}; | |
done |