Skip to content

Instantly share code, notes, and snippets.

Titouan Galopin tgalopin

Block or report user

Report or block tgalopin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View symfony-http-client-async-example.php
<?php
$client = \Symfony\Component\HttpClient\HttpClient::create();
// Create a few requests: this is entierely async, requests are launched in the background
$request1 = $client->request('GET', 'http://releases.ubuntu.com/18.04.2/ubuntu-18.04.2-desktop-amd64.iso?request=a');
$request2 = $client->request('GET', 'http://releases.ubuntu.com/18.04.2/ubuntu-18.04.2-desktop-amd64.iso?request=b');
$request3 = $client->request('GET', 'http://releases.ubuntu.com/18.04.2/ubuntu-18.04.2-desktop-amd64.iso?request=c');
// The code continues execution immediatly, you can do whathever you want here ...
View react-declarative.md

Answering https://twitter.com/karlhorky/status/1083028945258405888

IMO there are two main large groups of programming languages: those describing how to solve a problem and those describing the problem to solve itself.

That's my definition of declarative vs dynamic languages. A declarative language only describe what the problem is and in which context we are, then let an engine interpret these descriptions to act accordingly. There is no "logic" in the sense that in a declarative language, there is no "execution flow".

Dynamic languages, on the other hand, are much more generic: they don't describe what the problem is, they are used to express how to solve the problem. In a sense, they are closer to the hardware: you will need a

View keybase.md

Keybase proof

I hereby claim:

  • I am tgalopin on github.
  • I am tgalopin (https://keybase.io/tgalopin) on keybase.
  • I have a public key whose fingerprint is 76E1 D39D ED61 6A43 7CC3 E569 770C 1744 BBF5 0258

To claim this, I am signing this object:

View SecurityControllerTest.php
<?php
namespace App\Tests\Controller;
use Symfony\Component\HttpFoundation\Response;
/**
* @group functional
*/
class SecurityControllerTest extends AbstractControllerTest
View keybase.md

Keybase proof

I hereby claim:

  • I am tgalopin on github.
  • I am tgalopin (https://keybase.io/tgalopin) on keybase.
  • I have a public key ASABkpEc3xQN016FUZWrUm8gX08Gw42C19PR-OeKLuzitAo

To claim this, I am signing this object:

View service_subscriber_trait.php
<?php
class Foo implements ServiceSubscriberInterface
{
use ServiceSubscriberTrait;
public function do()
{
$this->getRouter();
}
View android-versions
2.1 ou version ultérieure
2.1 ou version ultérieure
2.1 and up
2.1 and up
2.1 and up
2.1 en hoger
2.1 ve üzeri
2.1 tai uudempi
2.1 és újabb
2.1 un jaunāka
View acmephpconf.yml
#
# /etc/acmephp.conf - Configuration file for ACME PHP CLI client
# See https://github.com/acmephp/cli for more informations
#
###################################################################
# Adapters
#
# Adapters are the link between the storage and the concrete
# persistance system. You can declare multiple adapters here to
View symfony_cache.txt
annotations - Filesystem > OpCache -> cache.adapter.local
validator -> cache.adapter.local
serialize -> cache.adapter.local
security -> cache.adapter.local
property_access -> cache.adapter.local
property_info -> cache.adapter.local
metadata_cache_driver -> cache.adapter.local
View gist:fb795ef12423996c6c52
11-22 21:57:30.596 19424-19739/com.poinsart.votar E/art﹕ JNI ERROR (app bug): accessed stale local reference 0x200011 (index 4 in a table of size 4)
11-22 21:57:30.596 19424-19739/com.poinsart.votar E/art﹕ 0xb487a180 SpaceTypeMallocSpace begin=0x32c00000,end=0x32e01000,limit=0x52c00000,size=2MB,capacity=192MB,non_growth_limit_capacity=512MB,name="main rosalloc space 1"]
11-22 21:57:30.596 19424-19739/com.poinsart.votar E/art﹕ 0xb4875b00 allocspace main rosalloc space 1 live-bitmap 2[begin=0x32c00000,end=0x52c00000]
11-22 21:57:30.596 19424-19739/com.poinsart.votar E/art﹕ 0xb4875ae0 allocspace main rosalloc space 1 mark-bitmap 2[begin=0x32c00000,end=0x52c00000]
11-22 21:57:30.596 19424-19739/com.poinsart.votar E/art﹕ 0xb4874120 SpaceTypeImageSpace begin=0x6fed4000,end=0x70885440,size=9MB,name="/data/dalvik-cache/arm/system@framework@boot.art"]
11-22 21:57:30.596 19424-19739/com.poinsart.votar E/art﹕ 0xb4875160 imagespace /data/dalvik-cache/arm/system@framework@boot.art live-bitmap 0[begin=0x6fed4000,end=
You can’t perform that action at this time.