Skip to content

Instantly share code, notes, and snippets.

View djfm's full-sized avatar
💭
Freelance. Won't set foot in office again.

François-Marie de Jouvencel djfm

💭
Freelance. Won't set foot in office again.
View GitHub Profile
@djfm
djfm / foreach_submodule.js
Last active March 30, 2018 09:06
Execute git submodule foreach... in parallel! Useful for PrestaShop development :)
#!/usr/bin/nodejs
var fs = require('fs');
var spawn = require('child_process').spawn;
function parseSubmodules(data) {
var lines = data.split(/\n+/);
var modules = {};
var currentPath;
<?php
$translations = require 'install.php';
echo "<meta charset='utf8'>";
echo implode('', array_map(function ($value) {
return "<p>$value</p>";
}, $translations['translations']));