I hereby claim:
- I am deizel on github.
- I am deizel (https://keybase.io/deizel) on keybase.
- I have a public key ASCPDlKpiQTlFfqLAA74eY_hXEiy9vMF3NF6owa2M3LLCAo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -e | |
sudo route -n delete 172.17.0.0/16 | |
sudo route -n add 172.17.0.0/16 local.docker | |
DOCKER_INTERFACE=$(route get local.docker | grep interface: | cut -f 2 -d: | tr -d ' ') | |
DOCKER_INTERFACE_MEMBERSHIP=$(ifconfig "${DOCKER_INTERFACE}" | grep member: | cut -f 2 -d: | cut -c 2-4) |
I hereby claim:
To claim this, I am signing this object:
language: php | |
php: | |
- 5.5 | |
- 5.6 | |
- 7.0 | |
sudo: false | |
env: |
*** composer.lock 2015-10-07 20:19:52.000000000 -0500 | |
--- /tmp/royalty/ApiGen/composer.lock 2015-10-10 17:28:03.000000000 -0500 | |
*************** | |
*** 6,9 **** | |
], | |
! "hash": "b9d08183efa4f1d45cb3c4a2523ffd8c", | |
! "content-hash": "b1bbcac7ab9bdbe9e02a4a0a4ce0ebaf", | |
"packages": [ | |
--- 6,9 ---- | |
], |
build/ |
<?php | |
$countries = ['Denmark', 'Netherlands', 'France']; | |
$types = ['Italian', 'Japanese', 'Chinese']; | |
collection($countries) | |
->unfold(function ($country) use ($types) { | |
foreach ($types as $type) { | |
yield $country => $type; | |
} | |
}) |
When setting up CI servers, it can sometimes be necessary to have different versions of Composer dependencies installed globally.
For example, when your CI server mainly deals with CakePHP 2.x and 3.x applications, where the coding standards vary.
This guide aims to walk you through how one might acheive this.
diff --git i/ruleset.xml w/ruleset.xml | |
index 89c13c9..672d340 100644 | |
--- i/ruleset.xml | |
+++ w/ruleset.xml | |
@@ -98,16 +98,16 @@ | |
<exclude-pattern>*/tests/*</exclude-pattern> | |
</rule> | |
<rule ref="Squiz.NamingConventions.ValidFunctionName"> | |
- <exclude-pattern>*/src/*</exclude-pattern> | |
- <exclude-pattern>*/tests/*</exclude-pattern> |
http://www.reddit.com/r/PHP/comments/3bhok2/github_syntax_highlighting_stop_making_me_read/
echo "I think he's implying that some evil person is making him read grey PHP code";
deizel at CakeDC in ~/Projects/cakephp (3.0●) | |
$ ag "const " | |
src/Console/ConsoleOutput.php | |
51: const RAW = 0; | |
58: const PLAIN = 1; | |
65: const COLOR = 2; | |
72: const LF = PHP_EOL; | |
src/Console/ConsoleIo.php | |
58: const VERBOSE = 2; |