Skip to content

Instantly share code, notes, and snippets.

View Dema's full-sized avatar

Dmitry Olyenyov Dema

View GitHub Profile
@Dema
Dema / .eslintrc.js
Created November 13, 2019 08:38
My typescript eslintrc
module.exports = {
extends: [
"react-app",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:css-modules/recommended",
// "plugin:redux-saga/recommended",
"plugin:jest/recommended"
@Dema
Dema / commands.js
Created October 21, 2019 20:08
Cypress recaptcha command
Cypress.Commands.add("clickRecaptcha", () => {
cy.window().then(win => {
win.document
.querySelector("iframe[src*='recaptcha']")
.contentDocument.getElementById("recaptcha-token")
.click();
});
});
@Dema
Dema / userChome.css
Last active December 9, 2019 11:03
userChome.css for Firefox Quantum. Multirow tabs
@namespace url('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul');
#TabsToolbar {
display: block !important;
}
:root {
--tab-min-height: 23px !important;
}
/* Selectors for Firefox 71+ */
var Benchmark = require( 'benchmark')
var Immutable = require("immutable")
var suite = new Benchmark.Suite;
var json = {
"hello": [
{
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Criterion.Main
import Criterion.Config
import qualified Data.ByteString.Lazy as B
import qualified Data.ByteString.Lazy.Char8 as C
import GHC.Word
bstring = B.unpack . C.pack
map_:: String -> [GHC.Word.Word8]