- hoge
- hoge
| #!/bin/sh | |
| filename=$1 | |
| word=$2 | |
| cat ${filename} | while read line | |
| do | |
| grep -l ${word} ${line}; | |
| done |
| #!/bin/bash | |
| php -d phar.readonly=0 make_phar.php | |
| php open_test.php |
| 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) {}); | |
| } |
| <?php | |
| class ArrayTest extends PHPUnit_Framework_TestCase { | |
| /** | |
| * @test | |
| */ | |
| public function array_test() { | |
| $actual = ['b', 'a']; | |
| $expect = ['a', 'b']; | |
| $this->assertSame($expect, $actual); | |
| /* |
| <?php | |
| class Hello { | |
| public function sayHello() { | |
| echo "hello\n"; | |
| } | |
| } |
| brew upgrade | |
| brew cleanup | |
| gcloud components update |