Instantly share code, notes, and snippets.

View upgrade.js
// upgrade all dependencies
// requires `spawncommand`
// node upgrade.js
const spawncommand = require('spawncommand')
const { devDependencies, dependencies } = require('./package.json');
(async () => {
const keys = Object.keys({ ...devDependencies, ...dependencies })
  1. To display error automatically: Text -> StyledText
  2. Use getApi to ref the form to be able to submit from outside.
  3. Validation must explicitly return null to reset errors.
  4. postSubmit is not a function.

To use VSCode debugger with a custom version of Node.js, we can use node.js bash script to run the correct version using nvm.


[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/"  # This loads nvm

nvm run $*

How to Ignore Merge Conflicts for Specific Files in a Git Repository

Create a directory and git init it

$ mkdir merge-test
$ cd merge-test/
$ git init

Keybase proof

I hereby claim:

  • I am z-vr on github.
  • I am anton_da ( on keybase.
  • I have a public key whose fingerprint is 0B5D 2B88 72BF 5593 3CA2 EEF2 5661 00D7 1426 8985

To claim this, I am signing this object: