Skip to content

Instantly share code, notes, and snippets.

@jpgls
jpgls / gist:e53919aafd90b8e14e01c233e6a8adb3
Created October 1, 2019 05:49
Listr - dynamically populate nested list
'use strict';
const Listr = require('listr');
const config = require('./config');
const {
connect,
getSaveableMeasures,
convertToMeasureValues,
saveMeasures,
updateMeasureState
} = require('.');
@jpgls
jpgls / css-max-values.md
Last active June 21, 2016 21:20
CSS Maximum Vaues

CSS Maximum Values

Found some maximum possible values for various CSS elements today, which don't seem to be documented anywhere that I was able to find

outline-width

  • 65534px
    • Also the ZIP Code for Laquey, MO
  • Browsers seem to accept higher values, but stop rendering the outline after this
    • outline-width: 65534px; = a gigantic outline
    • outline-width: 65535px; = no outline *This width applies even if the element is passed to the GPU for rendering using -webkit-transform: translateZ(0);
@jpgls
jpgls / page-level-redirect.md
Created March 17, 2016 17:20
Page Level Redirect

Page Level Redirect

Include this in the <head> to redirect a single page (as opposed to a whole domain) to a new page:

<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />
@jpgls
jpgls / basic.html
Created March 17, 2016 17:17
Basic HTML Page
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Basic HTML Page</title>
<meta name="description" content="Basic HTML Page">
<meta name="author" content="Jordan Pagels">
@jpgls
jpgls / safari-debug.md
Created January 19, 2015 19:34
Enable Safari Debug Menu

Enable Safari Debug Menu

This is different than the Developer Menu, which is enabled via the Safari Preferences window - this enables several rendering debug options.

In order to enable the menu, close Safari, then enter the following command in a terminal window:

defaults write com.apple.Safari IncludeInternalDebugMenu 1
@jpgls
jpgls / bandwidth.md
Last active August 29, 2015 14:08
Bandwidth Fact

Bandwidth Fact

It's measured in Megabits

Not Megabytes

This makes a lot of sense - I always thought the numbers seemed high

B = bytes b = bits

Storage is usually measured in bytes. (512 GB hard drive)

@jpgls
jpgls / cli-notes.md
Last active August 29, 2015 14:08
Command Line Notes

Command Line Notes

Trying to start a collection of the commands/workflows/etc. that I find when looking up how to accomplish something from the Command Line.

@jpgls
jpgls / npm-chown.sh
Created October 31, 2014 04:54
shell command to avoid needing to run npm install as root
sudo chown -R [user] ~/.npm
@jpgls
jpgls / HLS-alt-audio-iOS8.md
Last active August 29, 2015 14:06
HLS Alternate Audio Tracks - iOS7 vs. iOS8

Changes to HLS Alternate Audio Tracks

iOS7 vs. iOS8

Since iOS 8 went live on Friday and I updated a few of my devices over the weekend, I decided to do some quick testing of web video playback. Wanted to see if there were any little, undocumented changes that would affect REPlayer, or our general approach to HTML video - like the changes to exiting fullscreen video that came in the update from iOS6->iOS71.

Overall, things seem pretty much the same between iOS7->iOS8, and in a quick runthrough, REPlayer looks to be working just fine.

One interesting change to note though, is that the native interface (iOS default controls used when video is fullscreen) for selecting Sub-Title/CC tracks - or Alternate Audio tracks when they're available - no longer seems to recognize/display the audio tracks in iOS8.

Sub-Title selection still works just fine, but the Audio Section (and Audio Tracks) do not display in iOS8. Confirmed that the testing m3u8 still contains Alternate Audio tracks in the m

@jpgls
jpgls / css-content-unicode.md
Created September 15, 2014 23:04
Unicode Characters in CSS Content