Skip to content

Instantly share code, notes, and snippets.

View mmoreram's full-sized avatar
🤑
Working on Apisearch

Marc Morera mmoreram

🤑
Working on Apisearch
View GitHub Profile
function main() {
$this->query(1);
}
function query(page) {
$this
->makeAQuery(page)
->then($result) {
nameserver 127.0.0.11
options ndots:0
/**
* Make async sleep
*
* @param float $timeout
* @param LoopInterface $loop
*
* @return PromiseInterface
*/
function sleep(float $timeout, LoopInterface $loop) {
$deferred = new Deferred();
$p1 = $client->blpop('queue', 0)->then(function() use ($client) {
var_dump('Hey1');
return $client->get('whatever')->then(function($val) {
var_dump('Yeah1');
die();
});
});
$p2 = $client->blpop('queue', 0)->then(function() use ($client) {
var_dump('Hey2');
return $client->get('whatever')->then(function($val) {
/**
* Enqueue
*
* @param Locker $locker
* @param string $resourceID
* @param float $timeout
*
* @return PromiseInterface
*/
public function enqueue(
@mmoreram
mmoreram / With improvements
Created March 11, 2019 17:09
KernelAdapter - With and without improvements comparision
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7582456
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7582408
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7662504
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7587872
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7665888
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7588384
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7599576
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7561664
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7561848
Mar 11 18:01:36 mmoreram-casa php-cgi7.1: Children memory usage: 7589000
Passos a seguir per a crear el teu propi mirror de la pàgina web del referèndum de Catalunya.
- Si no tens un compte de Github, pots crear-ne un a https://github.com. Un cop creat, segueix amb les següents instruccions.
- Ves a https://github.com/GrenderG/referendum_cat_mirror
- Fes fork del repository. Trobaràs el botonet a dalt a la dreta. Fer fork vol dir fer una còpia de la web sota el teu usuari.
- A la teva copia, ves a settings del repositori, i a baix de tot de la pàgina, a l'apartat de Github Pages, sel·lecciona la
branca master. Accepta.
- Torna al mateix apartat, i ja tindràs la URL del teu fork del repositori.
- Comparteix.
- Segueix compartint.
@mmoreram
mmoreram / your-packages-dependencies.md
Last active November 24, 2015 16:24
Sitepoint posts
  • A component should add as dependency all needed packages to have a complete functionality
  • A bundle should add as dependency as well all these bundles that define other services used in your own service definitions
  • Take care of your version policy. Being too restrictive reduces the compatibility with other packages.

Responsibilities

  • Hi. I'm Marc and I am an open source addict

Elcodi Events

Full Elcodi Events documentation. Each entry describes what the event is created for, where is thrown and how can be used.

Priorities

Each time an event is dispatched, a bunch of subscribers are ready to be executed. But who says which one must be executed first, and which one must be executed the last one?

@mmoreram
mmoreram / gitsplit-config.yml
Last active January 30, 2018 11:02
Gitsplit configuration
split:
#
# You can define one by one
# your repositories
#
src/a: [email protected]:me/a.git
src/b: [email protected]:me/b.git
#