tldr;
always read off of full paths with Vite's define
.
// GOOD
const MY_THING = import.meta.env.MY_THING
// BAD
const { MY_THING} = import.meta.env
tldr;
always read off of full paths with Vite's define
.
// GOOD
const MY_THING = import.meta.env.MY_THING
// BAD
const { MY_THING} = import.meta.env
An example for this issue
Add a trigger in Iterm2>Prefernces>Advanced>Triggers
(Those who have paid for Growl can simply use the growl action)
regex: #done#
action: run a command
arguments: /usr/local/bin/notify "Done" (ensure that you've copied the script to that location and made it executable)
(function (global, document) { | |
'use strict'; | |
// pause/play && accelerate/decellerate video in a slide | |
var video; | |
var debugEnabled = global.videoDebugEnabled; | |
var modifier = 'altKey'; // change this to whatever key you want to use | |
function debug () { |
// stolen from http://stackoverflow.com/a/25396283 | |
// add this in the "callback" block of the highlight plugin definition | |
// https://github.com/hakimel/reveal.js/blob/master/index.html#L399 | |
[].forEach.call( document.querySelectorAll( '.highlight' ), function( v, i ) { | |
hljs.highlightBlock(v); | |
}); |
I hereby claim:
To claim this, I am signing this object:
function buildJs () { | |
// bify returns a vinyl-source-stream wrapped browserify bundle | |
var browserified = bify(); | |
return gulp.src(SRC.js) | |
.pipe(browserified) | |
.pipe(size()); | |
} | |
gulp.task('js', function () { |
function firstAttempt () { | |
return Array.prototype.reduce.call(arguments, function (accum, arg) { | |
return Object.prototype.hasOwnProperty.call(arg, 'quack') ? | |
accum + 1 | |
: accum; | |
}, 0); | |
}; | |
// a tweak on their solution that avoids calling slice | |
function secondAttempt () { |
var assert = require('assert'); | |
function reflatten (source, accum) { | |
accum = accum || []; | |
if (Array.isArray(source)) { | |
source.forEach(function (child) { | |
if (Array.isArray(child)) { | |
reflatten(child, accum); | |
} else { |