Skip to content

Instantly share code, notes, and snippets.

@sharvit
sharvit / slot-and-fill.js
Created August 18, 2019 15:46
Slot and fill suggestion
const LayoutToolbarButtonsSlot = () => (<>
<Slot id="layout-toolbar-buttons" multi />
<Fill slot="layout-toolbar-buttons" weight={100}>
<ExportButton />
</Fill>
<Fill slot="layout-toolbar-buttons" weight={200}>
<DocumentationButton documentationURL={documentationURL} />
</Fill>
</>);
import React from 'react';
import ForemanModal, { reducers } from './index';
import { setModalOpen, setModalClosed } from './ForemanModalActions';
import IntegrationTestHelper from '../../common/IntegrationTestHelper';
describe('ForemanModal - integration test', () => {
it('should flow', () => {
const integrationTestHelper = new IntegrationTestHelper(reducers);
/* eslint-disable no-await-in-loop, no-console */
const { sleep } = require('../helpers');
const { createNetworkProvider } = require('../web3');
class BlocktimeMonitor {
network;
protocol;
@sharvit
sharvit / init.coffee
Last active June 28, 2022 15:22
My atom editor settings. automatic update by http://atom.io/packages/sync-settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->