Skip to content

Instantly share code, notes, and snippets.

View jtouza's full-sized avatar

Jordi Touza Bonnin jtouza

View GitHub Profile
@Insolita
Insolita / PhpArrayExport.php.js
Last active October 20, 2023 13:49
JetBrains table export in php-array format
function eachWithIdx(iterable, f) {
var i = iterable.iterator();
var idx = 0;
while (i.hasNext()) f(i.next(), idx++);
}
function mapEach(iterable, f) {
var vs = [];
eachWithIdx(iterable, function (i) {
vs.push(f(i));
@defunkt
defunkt / installing-Mustache.tmbundle.md
Created March 6, 2010 10:27
Installing Mustache.tmbundle