Skip to content

Instantly share code, notes, and snippets.

@smaudet
smaudet / comma-first-var.js
Created April 5, 2024 16:34 — forked from isaacs/comma-first-var.js
A better coding convention for lists and object literals in JavaScript
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",
@echo off
set vernum=8u144
set jdkbasename=jdk8
set "tool7z=C:\Program Files\7-Zip\7z.exe"
set "jdk_exe=%1"
echo Extracting '.rsrc/1033/JAVA_CAB10/111'
%tool7z% e %jdk_exe% .rsrc/1033/JAVA_CAB10/111
rem :: %tool7z% e %jdk_exe% .rsrc/1033/version.txt