Skip to content

Instantly share code, notes, and snippets.

Anton z-vr

  • Moscow
Block or report user

Report or block z-vr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
z-vr / upgrade.js
Created Feb 1, 2018
yarn upgrade all
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 })
z-vr /
Last active Jan 11, 2018
Breaking changes for react-form from v1 to v2
  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.
z-vr /
Last active Jan 1, 2018
run vscode with custom version of node.js

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 $*
z-vr /
Created Feb 3, 2017 — forked from tmaybe/
ignoring merge conflicts for specific files in a git repository

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:

You can’t perform that action at this time.