- Orange County, CA
- mattandersen.me
Pinned Loading
-
JSON Data Extractor for the IntelliJ...
JSON Data Extractor for the IntelliJ IDEA Platform 1function eachWithIdx(iterable, f) { var i = iterable.iterator(); var idx = 0; while (i.hasNext()) f(i.next(), idx++); }
2function mapEach(iterable, f) { var vs = []; eachWithIdx(iterable, function (i) { vs.push(f(i));}); return vs; }
34OUT.append(JSON.stringify( mapEach(ROWS, function(row, row_idx) {
5var r = {};
-
Template for Multi Command Bash Scripts
Template for Multi Command Bash Scripts 1#!/usr/bin/env bash
23# This is a template which provides a number of utilities I find useful when building a Bash script.
4# It handles the case where one script may perform multiple commands, and that must be determined by arguments.
5# Read comments marked with TODO for how to populate the script.
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.