例文を組み込んだAlfred Workflowを作りました: Alfred Git Commit Message Example
以下転載:
| struct MonitorMutex { | |
| inner: Mutex<RateLimiter>, | |
| } | |
| impl MonitorMutex { | |
| fn new(limiter: RateLimiter) -> Self { | |
| MonitorMutex { | |
| inner: Mutex::new(limiter), | |
| } | |
| } |
以下転載:
| <?php | |
| // You only have to pass the necessary arguments | |
| WrapperForExampleApi::search(['arg2' => 'x', 'arg4' => 'x']); | |
| /** | |
| * hand-written wrapper class for ExampleApi | |
| */ | |
| class WrapperForExampleApi | |
| { | |
| public static function search() |
| { | |
| "minimum-stability": "dev", | |
| "require": { | |
| "ackintosh/snidel": "0.11.0" | |
| } | |
| } |
| { | |
| "name": "GIT_USER_ID/GIT_REPO_ID", | |
| "description": "", | |
| "keywords": [ | |
| "swagger", | |
| "php", | |
| "sdk", | |
| "api" | |
| ], | |
| "homepage": "http://swagger.io", |
Why Should I Care (For Developers)
"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."
| <?php | |
| App::uses('SimplePasswordHasher', 'Controller/Component/Auth'); | |
| class GenPasswordShell extends AppShell { | |
| public function main() { | |
| $passwordHasher = new SimplePasswordHasher(); | |
| $this->out($passwordHasher->hash($this->args[0])); | |
| } | |
| } |