I hereby claim:
- I am dunglas on github.
- I am dunglas (https://keybase.io/dunglas) on keybase.
- I have a public key whose fingerprint is 31D2 33ED 1FBA 7DAF F033 90EE 4D04 EBEF 06AA F3A6
To claim this, I am signing this object:
#!/bin/bash | |
# Author: Kévin Dunglas | |
if [ $# -eq 0 ] | |
then | |
echo "Link dependencies to components to a local clone of the monolithic Symfony repository" | |
echo "" | |
echo "Usage: ./link.sh /path/to/the/project" | |
exit | |
fi |
# All commits | |
git log --all --after="2016-01-01 00:00" --before="2017-01-01 00:00" --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short --no-merges --first-parent master --author-date-order --reverse > ~/cir/api-platform-standard-edition | |
# Commits from a specific author | |
git log --all --after="2016-01-01 00:00" --before="2017-01-01 00:00" --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short --no-merges --first-parent master --author-date-order --reverse --author="dunglas@gmail.com" |
new MutationObserver(mutation => { | |
for (let lemming of document.querySelectorAll('img[alt="lemming tombant"]')) { | |
lemming.dispatchEvent(new Event('mouseover', { bubbles: true })); | |
} | |
}).observe(document, {childList: true, subtree: true}); |
You are about to deploy the following services: | |
- api-platform-website/default/20161019t000544 (from [/Users/dunglas/workspace/react-redux-universal-hot-example/app.yaml]) | |
Deploying to URL: [https://api-platform-website.appspot.com] | |
Do you want to continue (Y/n)? y | |
If this is your first deployment, this may take a while...done. | |
Beginning deployment of service [default]... | |
WARNING: Deployment of App Engine Flexible Environment apps is currently in Beta |
I hereby claim:
To claim this, I am signing this object:
$c = (object) ['@context' => 'foo']; | |
var_dump($c); | |
/* | |
php shell code:1: | |
class stdClass#1 (1) { | |
public $@context => | |
string(3) "foo" | |
} | |
*/ | |
$key = '@context'; |
<?php | |
namespace Acme\ApiPlatform\FOSElastica; | |
use Dunglas\ApiBundle\Api\ResourceInterface; | |
use Dunglas\ApiBundle\Model\DataProviderInterface; | |
use Elastica\Query; | |
use FOS\ElasticaBundle\Finder\PaginatedFinderInterface; | |
use Symfony\Component\HttpFoundation\Request; |
foo: | |
path: /foo/{bar} | |
defaults: { _controller: 'action.Path\To\Your\Action' } |
public static function generateHash($value, $namespace = '') | |
{ | |
$hash = hash_init('sha256'); | |
$queue = array(array($namespace => $value)); | |
for ($i = 0; isset($queue[$i]); ++$i) { | |
foreach ($queue[$i] as $k => $v) { | |
if (is_object($v)) { | |
hash_update($hash, $k.'=>'.spl_object_hash($v).','; | |
} elseif (is_array($v)) { | |
$queue[] = $v; |
<?php | |
<<<CONFIG | |
packages: | |
- "dunglas/php-property-info: dev-master" | |
- "doctrine/orm: ~2.3" | |
- "phpdocumentor/reflection: ~1.0" | |
CONFIG; | |
use Doctrine\ORM\EntityManager; |