Skip to content

Instantly share code, notes, and snippets.

Dominic Baranski dcbarans

View GitHub Profile
View m4a_to_cue.js
var exec = require('child_process').exec,
fs = require('fs');
var fileName = 'mc75';
var stream = fs.createWriteStream(fileName + ".cue");
stream.once('open', function(fd) {
exec("ffprobe -v quiet -of json -show_chapters "+ fileName +".m4a", function (error, stdout, stderr) {
dcbarans / selectlist.html
Created Dec 7, 2012 — forked from serverdensity/array.php
Country dialing code select drop menu
View selectlist.html
<select name="countryCode" id="countryCode">
<option value="1" label="Canada (+1)">Canada (+1)</option>
<option value="86" label="China (+86)">China (+86)</option>
<option value="33" label="France (+33)">France (+33)</option>
<option value="49" label="Germany (+49)">Germany (+49)</option>
<option value="95" label="India (+91)">India (+91)</option>
<option value="81" label="Japan (+81)">Japan (+81)</option>
<option value="92" label="Pakistan (+92)">Pakistan (+92)</option>
<option value="44" label="United Kingdom (+44)">United Kingdom (+44)</option>
<option value="1" label="United States (+1)">United States (+1)</option>
View gist:364710
else if (typeof aValue1 === "number") {
// Grayscale
if (aValue1 <= redRange && aValue1 >= 0) {
switch(curColorMode) {
case p.RGB: aColor = p.color(aValue1, aValue1, aValue1, opacityRange); break;
case p.HSB: aColor = p.color(0, 0, (aValue1 / redRange) * blueRange, opacityRange); break;
// Color int
else if (aValue1) {
You can’t perform that action at this time.