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
| [package] | |
| name = onion_sample | |
| desc = onion_sample description | |
| version = 1.0.0 | |
| author = Taichiro Yoshida <[email protected]> | |
| [require] | |
| pear.phpunit.de/PHPUnit = '> 3.6.6' |
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
| { | |
| "repositories": { | |
| "packagist": false, | |
| "phpunit de": { | |
| "pear": { | |
| "url": "http://pear.phpunit.de" | |
| } | |
| }, | |
| "symfony-project com": { | |
| "pear": { |
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
| [mysqld_multi] | |
| mysqld = /usr/local/bin/mysqld_safe # 使用するmysqldバイナリへのフルパス | |
| mysqladmin = /usr/local/bin/mysqladmin # mysqladminへのフルパス | |
| user = XXXX # 全てのサーバで使えるSHUTDOWN権限のあるユーザとパスワード | |
| password = XXXX | |
| [mysqld1] | |
| server-id = 1 # 連番で良いはず | |
| port = 3306 # 使用するポート | |
| datadir = /usr/local/var/mysql_multi/1 # データディレクトリ(分けておかないと大変なことになるはず) |
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
| require 'formula' | |
| class Phpbrew < Formula | |
| head 'https://raw.github.com/c9s/phpbrew/master/phpbrew' | |
| homepage 'https://github.com/c9s/phpbrew' | |
| def install | |
| system "chmod a+x phpbrew" | |
| system "mkdir -p #{prefix}/bin" | |
| system "cp phpbrew #{prefix}/bin" |
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
| # coding: utf-8 | |
| require 'rubygems' | |
| require 'hpricot' | |
| require 'fileutils' | |
| # for multi byte string in yaml | |
| require 'psych' | |
| require 'yaml' | |
| require 'time' | |
| # for multi byte string |
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
| #! /bin/sh | |
| filename="slide.pdf" | |
| if [ $# -ne 2 ]; then | |
| echo "Usage: ./hslide2pdf.sh url maxpage" | |
| exit 1 | |
| fi | |
| if [ ! -d tmp ] ; then | |
| mkdir tmp |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <keymap version="1" name="Eclipse on Mac" parent="Eclipse"> | |
| <action id="$Copy"> | |
| <keyboard-shortcut first-keystroke="meta C" /> | |
| </action> | |
| <action id="$Cut"> | |
| <keyboard-shortcut first-keystroke="meta X" /> | |
| <keyboard-shortcut first-keystroke="shift DELETE" /> | |
| </action> | |
| <action id="$Delete"> |
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 | |
| class Entry { | |
| const STATUS_DRAFT = 'draft'; | |
| const STATUS_PUBLISHED = 'published'; | |
| const STATUS_DELETED = 'deleted'; | |
| var $status = self::STATUS_DRAFT; | |
| var $title; | |
| public function publish() { |
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 | |
| spl_autoload_register(function ($className) { | |
| include "$className.php"; | |
| }); | |
| class EntrySpec extends PHPUnit_Extensions_Story_TestCase { | |
| /** | |
| * @scenario | |
| */ |
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 | |
| spl_autoload_register(function ($className) { | |
| include "$className.php"; | |
| }); | |
| class EntryTest extends PHPUnit_Framework_TestCase { | |
| public function testStatus() { | |
| $entry = new Entry(); | |
| $this->assertEquals(Entry::STATUS_DRAFT, $entry->status); |