Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

LAHAXE Arnaud lahaxearnaud

💭
I may be slow to respond.
View GitHub Profile
@wesbos
wesbos / async-await.js
Created Feb 22, 2017
Simple Async/Await Example
View async-await.js
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
@mickaelandrieu
mickaelandrieu / upgrade2.3-to-2.7.md
Last active Sep 23, 2019
Complete migration guide from Symfony 2.3 LTS to Symfony 2.7 LTS
View upgrade2.3-to-2.7.md

From Symfony 2.3 to Symfony 2.7: the complete guide

Objectives

  • assume your code doesn't use any deprecated from versions below Symfony 2.3
  • update dependencies from 2.3 to 2.7
  • do not support "deprecated", be "Symfony3-ready"
  • list tasks component by component, bundle by bundle.
@benoitzohar
benoitzohar / gitolab.php
Last active Sep 3, 2017
Migrate repositories from Gitolite to GitLab.
View gitolab.php
#!/usr/bin/php -qC
<?php
/******************************************************************************
*
* @file gitolab.php
* @author Benoit Zohar
* @link http://benoitzohar.fr/
* @last-edited 2015-01-09
* @description Migrate projects from Gitolite to GitLab
You can’t perform that action at this time.