I hereby claim:
- I am technolize on github.
- I am technolize (https://keybase.io/technolize) on keybase.
- I have a public key whose fingerprint is 9DEE 9D11 13C1 EF3F 801F 575E EF1A CBA8 B1F7 69D5
To claim this, I am signing this object:
| function fish_prompt | |
| set -l pwd_info (pwd_info "/") | |
| echo | |
| set_color yellow | |
| if pwd_is_home | |
| echo -n " ~/" | |
| else | |
| echo -n " /" |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| if [ $# -ne 2 ]; then | |
| echo "usage: git diff-archive <name> <revision>" | |
| exit 1 | |
| fi | |
| git archive --format=zip --prefix=$1/ HEAD $(git diff --name-only HEAD $2) -o $1.zip |
| <?xml version="1.0" encoding="utf-8"?> | |
| <direct> | |
| <rule priority="1" table="filter" ipv="ipv4" chain="INPUT_direct">-p tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT</rule> | |
| <rule priority="1" table="filter" ipv="ipv4" chain="INPUT_direct">-p tcp --sport 20 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT</rule> | |
| <rule priority="1" table="filter" ipv="ipv4" chain="INPUT_direct">-p tcp --sport 1024: --dport 1024: -m state --state ESTABLISHED -j ACCEPT</rule> | |
| </direct> |
| {% for comment in post.comments %} | |
| <p>{{ comment.name }}: {{ comment.message }}</p> | |
| {% endfor %} |
| <?php | |
| $app->get('/posts/:id', function($id) use ($app) { | |
| $post = Post::find($id); | |
| $app->render("posts/show.twig", ['post' => $post]); | |
| }); |
| <?php | |
| namespace ValueObject; | |
| /** @Embeddable */ | |
| class Profile | |
| { | |
| /** @Embedded(class="Address") */ | |
| private $address; | |
| } |
| <?php | |
| $connection->getConfiguration()->setSQLLogger(null); |
| <?php | |
| $connection = $this->getContainer()->get('database_connection'); | |
| $params = $connection->getParams(); // getParameters じゃないのがちょっと… | |
| $pdo = new \PDO(...); | |
| $pdo->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false); | |
| $query = '...'; | |
| $stmt = $pdo->prepare($query); | |
| $stmt->execute(); |
| <?php | |
| protected function execute(InputInterface $input, OutputInterface $output) | |
| { | |
| $connection = $this->getContainer()->get('database_connection'); | |
| $pdo = $connection->getWrappedConnection(); | |
| $pdo->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false); | |
| ... |