Skip to content

Instantly share code, notes, and snippets.


Mark Bennett MarkBennett

View GitHub Profile
MarkBennett / json_by_line.js
Last active April 19, 2021 20:38
Output JSON from STDIN Line-By-Line And Pretty Print
View json_by_line.js
* Credit to the Node.js Docs for the line-by-line `ReadStream` example.
const readline = require('readline');
var stdin = process.stdin;
MarkBennett /
Last active May 29, 2023 15:49
Installing Ruby 2.5 on Mac M1


doctl auth init

doctl k8s cluster create --region=tor1 rio-demo


Download and install Rio CLI

View QBO_reporting_error
Async process failed: Cancel
dojo.js.uncompressed.js:5261 TypeError: Cannot read property 'slice' of undefined
at Object.renderGrid (null:1)
at Object.initReportGrid (null:1)
at Object.handleReportResponse (null:1)
at c (dojo.js.uncompressed.js:4819)
at a (dojo.js.uncompressed.js:4810)
at p.resolve (dojo.js.uncompressed.js:4974)
at d (dojo.js.uncompressed.js:4863)
at c (dojo.js.uncompressed.js:4840)

Keybase proof

I hereby claim:

  • I am markbennett on github.
  • I am markbennett ( on keybase.
  • I have a public key ASAVjXPhy1oIRWhregKYxoqgyJwNJ9DvOknpevsP_lvJBQo

To claim this, I am signing this object:

MarkBennett / gist:5701278c47c1567d915856995de22c10
Created March 1, 2018 05:16 — forked from scottburton11/gist:3222152
Audio Compression for Voiceover
View gist:5701278c47c1567d915856995de22c10

About compression

Audio compression is used to reduce the dynamic range of a recording. Dynamic range is the difference between the loudest and softest parts of an audio signal. It was originally used to guard against defects when cutting wax and vinyl phonograph records, but generally became useful as a way of increasing the loudness of an audio recording without achieving distortion.

The goal of most compression applications is to increase the amplitude of the softest parts of a recording, without increasing the amplitude of the loudest parts.

Compressor anatomy

Compressors generally all have the same conceptual parts. However, not all compressors present variable controls for all parts to the user. If you don't see all of your compressor's controls here, there's a chance it either has a fixed value (and no control), or is named something else:

MarkBennett / receiver.html
Created August 19, 2014 03:16
Chromecast Demo
View receiver.html
<script src="//"></script>
(function() {
View secretsanta.dart
import 'dart:math';
void main() {
List<String> names = '''
Zoe Washburne
Hoban Washburne
Malcolm Reynolds
Simon Tam
River Tam
Buffy Summers
MarkBennett / map.geojson
Created August 15, 2013 01:42
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
MarkBennett / example.js
Created May 17, 2013 18:08
An example of seperating business logic from the DOM
View example.js
function talk_to_webtrends(name, path) {
// Do WebTrends stuff I don't know here
$(".web-trends-link").click(function() {
var $elem, name, path;
$elem = $(this);
name = $"wtName");
path = window.location.path;