Skip to content

Instantly share code, notes, and snippets.

@chase
chase / .eslintrc
Created July 19, 2015 15:49
Import errors
{
"plugins": ["import"],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"node": true,
"es6": true
@chase
chase / .eslintrc
Created September 5, 2015 06:33
Import Plugin Breaking on Spread
{
"parser": "babel-eslint",
"plugins": [
"react",
"import"
],
"env": {
"browser": true,
"node": true
},
@chase
chase / nginx-custom-build.sh
Created March 25, 2016 19:22
Build Ubuntu or Debian packages for nginx with custom patches, configs, and name suffixes in one command
#!/bin/bash
# Author: Alexander Rodin <[email protected]>
# License: MIT
BUILD_DIR=build
while getopts "hp:s:r:b:o:c:n" opt; do
case $opt in
h)
echo "Usage: $0 [options]"
@chase
chase / gist:cc980da37005dc0d48bed7b3cdd9f4d5
Created October 5, 2016 20:14
Jest Failed Test Output
FAIL src/renderers/shared/fiber/__tests__/ReactTopLevelFragment-test.js
● ReactTopLevelFragment › should render a simple fragment at the top of a component
ReferenceError: shouldTrackSideEffects is not defined
at deleteRemainingChildren (src/renderers/shared/fiber/ReactChildFiber.js:76:8)
at reconcileChildFibers (src/renderers/shared/fiber/ReactChildFiber.js:767:12)
at reconcileChildrenAtPriority (src/renderers/shared/fiber/ReactFiberBeginWork.js:83:30)
at reconcileChildren (src/renderers/shared/fiber/ReactFiberBeginWork.js:71:5)
at updateHostComponent (src/renderers/shared/fiber/ReactFiberBeginWork.js:285:7)
'use strict';
// Authored 2018-10-26 Chase Colman
var Util = (function() {
/**
* combinate visitor callback
* @callback Util~combinateCallback
* @param {[]} combination - currently visited combination
* @return {boolean} - terminates combinate if true
*/
@chase
chase / lok-prereqs.sh
Created July 15, 2024 09:17
lok-prereqs.sh
apt-get install -y --no-install-recommends \
git \
build-essential \
zip \
nasm \
python3 \
python3-dev \
autoconf \
gperf \
xsltproc \
@chase
chase / main.js
Last active February 18, 2025 17:20
Electron 34.2.0 crash reproduction
const { app, BrowserWindow } = require('electron');
app.whenReady().then(async () => {
const win = new BrowserWindow({
width: 800,
height: 600,
show: false,
webPreferences: {
offscreen: true,
},