Skip to content

Instantly share code, notes, and snippets.


Jérôme Tamarelle GromNaN

Block or report user

Report or block GromNaN

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

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

What's an Effective Engineer?

View EmbedIframe.js
import React from 'react';
class EmbedIframe extends React.Component {
resizeIframe = () => {
const height = Math.max(this.props.minHeight, this.iframe.contentWindow.document.body.offsetHeight);
this.iframe.height = `${height}px`;
componentDidMount = () => {
marcw /
Created Sep 9, 2016
Symfony deployment bash script
# some configurations values
host="foobar-web00" # the name of the host in my ssh config file
jehaby /
Last active Dec 29, 2019 — forked from chadrien/
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
    && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name" > /usr/local/etc/php/conf.d/xdebug.ini \
juliendufresne /
Created Apr 16, 2016
Remove large files and directories from git history
# First we need to find the big files
# source:
WORKING_DIR=$(mktemp -d);
git clone --mirror "${REPO_URL}" source.git;
pjedrzejewski / Symfony3Forms.php
Created Dec 11, 2015
Issues with removing form type names in Symfony 3.0.
View Symfony3Forms.php
class ResourceAutocompleteType extends AbstractType
// ...
private $resourceName;
public function __construct($resourceName)
OlegIlyenko / Event-stream based GraphQL
Last active Dec 14, 2019
Event-stream based GraphQL subscriptions for real-time updates
View Event-stream based GraphQL

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

GromNaN /
Last active Jul 11, 2019
Split Composer Satis repositories into smaller packages
# For each sub-package, run the Satis build command.
php bin/satis build repositories-mirrors.json ./web/mirrors
php bin/satis build repositories-pear.json ./web/pear
php bin/satis build repositoriesp-rojects.json ./web/projects
# Merge all the package files.
php web/packages.php > web/packages.json
View MoneyType.php
class MoneyType extends AbstractType implements DataMapperInterface
public function buildForm(FormBuilder $builder, array $options)
->add('amount', 'integer')
->add('currency', 'string')
JeremyJames /
Last active Aug 29, 2015
SublimeText shortcuts


  • Alignment (CMD + CTRL + A)
  • DocBlockR (Start commenting + push tab or enter)
  • GitGutter (Highlight lines changed, compare files, etc.)
  • Package control (Mandatory on Sublime)
  • Php-Twig
  • PhpNamespace (ALT + I, ALT + U)
  • TrailingSpaces (Can be triggered on save, check user config)
  • Unicode Character Highlither (Highlight non breaking spaces for example)
You can’t perform that action at this time.