This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Alexander Rodin <rodin.alexander@gmail.com> | |
# License: MIT | |
BUILD_DIR=build | |
while getopts "hp:s:r:b:o:c:n" opt; do | |
case $opt in | |
h) | |
echo "Usage: $0 [options]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parser": "babel-eslint", | |
"plugins": [ | |
"react", | |
"import" | |
], | |
"env": { | |
"browser": true, | |
"node": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugins": ["import"], | |
"ecmaFeatures": { | |
"jsx": true, | |
"modules": true | |
}, | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kpm restore whines about failing to write some headers, here's the non-obvious fix: | |
# Add Microsofts poorly signed certificates! | |
sudo certmgr -ssl -m https://go.microsoft.com | |
sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net | |
sudo certmgr -ssl -m https://nuget.org | |
mozroots --import --sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Fix trackpad after resume | |
After=suspend.target | |
After=hibernate.target | |
[Service] | |
User=%I | |
Type=simple | |
Environment=DISPLAY=:0 | |
ExecStart=/usr/bin/xinput -enable bcm5974 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet rollbar_deployment | |
rollbar_deployment: | |
environment: ${1:# REQUIRED} | |
token: ${2:# REQUIRED} | |
revision: ${3:# REQUIRED} | |
comment: ${4} | |
rollbar_user: ${5} | |
url: ${6:https://api.rollbar.com/api/1/deploy/} | |
user: ${7} | |
validate_certs: ${8:#yes|no} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto'); | |
var nsURL = new Buffer([0x6b,0xa7,0xb8,0x11,0x9d,0xad,0x11,0xd1,0x80,0xb4,0x00,0xc0,0x4f,0xd4,0x30,0xc8]); | |
var emailUUID = function(email) { | |
var shasum = crypto.createHash('sha1'); | |
shasum.update(Buffer.concat([nsURL, new Buffer('mailto:'+email)])); | |
shasum=shasum.digest(); | |
var result = new Buffer(16); | |
shasum.copy(result, 0, 0, 16); |
NewerOlder