Skip to content

Instantly share code, notes, and snippets.

Working from home

Oleksandr Kovalov okovalov

Working from home
  • Toronto
Block or report user

Report or block okovalov

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
View playground.json
"scripts": [],
"showConsole": true,
"scriptType": "module"
View js_Logging_objects.js
// Logging objects
// Don't use
View eslint_prettier_vscode_js_ts_jsx_tsx.txt
Set UP Eslint + Prettier in VSCode
// Docs (JS only) -
// Anoter docs (TS and JSX) -
1. Create react app
npx create-react-app react-ts --template typescript
okovalov / axios_send_auth_token.js
Created Jan 22, 2020
Learn how to send the authorization header using Axios (from
View axios_send_auth_token.js
const username = ''
const password = ''
const token = Buffer.from(`${username}:${password}`, 'utf8').toString('base64')
const url = 'https://...', {
headers: {
'Authorization': `Basic ${token}`
okovalov / .eslintrc.js
Last active Jan 22, 2020
temporary fork from eslint-config-sarpik
View .eslintrc.js
#!/usr/bin/env node
// .eslintrc.js
* The ESLint + Prettier config from Kipras <> (
* Supports TypeScript!
* (
* &
okovalov / index.js
Created Jan 22, 2020 — forked from zkat/index.js
npx is cool
View index.js
#!/usr/bin/env node
console.log('yay gist')
View React-PropTypes-to-prop-types.js
#!/usr/bin/env node
console.log('v6', process.argv, process.cwd(), __dirname);
const {exec} = require('child_process');
const path = require('path');
exec('npm bin', {cwd: __dirname}, (err, stdout, stderr) => {
if (err) {
} else {
View git_remove_submodule.txt
I think above can be simplified using following commands.
git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>
taken from
okovalov / index.html
Last active Jan 18, 2020
FlexBox sandbox
View index.html
<div class="screen">
<div class="first box">
<div class="second box">
<div class="third box">
okovalov / derive_keypair.ts
Last active Jan 14, 2020
an example of derriving keypairs with factories
View derive_keypair.ts
interface CurrencyKey {
keyIndex: number;
privateKey: string;
publicKey: string;
address?: string;
getKeyIndex(): number;
getPrivateKey(): string;
getPublicKey(): string;
getAddress(): string;
You can’t perform that action at this time.