This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Benchmark = require( 'benchmark') | |
var Immutable = require("immutable") | |
var suite = new Benchmark.Suite; | |
var json = { | |
"hello": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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+ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cypress.Commands.add("clickRecaptcha", () => { | |
cy.window().then(win => { | |
win.document | |
.querySelector("iframe[src*='recaptcha']") | |
.contentDocument.getElementById("recaptcha-token") | |
.click(); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nix-instantiate --strict --json --eval -E 'builtins.map (p: p.name) (import <nixpkgs/nixos> {}).config.environment.systemPackages' | nix run nixpkgs.jq -c jq -r '.[]' | sort -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"/nix/store/hynacjy0ps0qnz7bycsvnyiimv3q0i6h-netgen.drv": { | |
"outputs": { | |
"out": { | |
"path": "/nix/store/8qbgz0psv6zvfrn3kwgmjd8sb3b0jk90-netgen" | |
} | |
}, | |
"inputSrcs": [ | |
"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ReactNode } from "react"; | |
import { UnreachableCaseError } from "ts-essentials"; | |
export type RemoteDataContents<T> = T extends RemoteData<infer Data, any> | |
? Data | |
: never; | |
export enum RemoteDataStatus { | |
Initialized = "Initialized", | |
Pending = "Pending", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// need to add src/.linaria-cache to .gitignore. I had to move .linaria-cache inside src folder because CRA | |
// does not allow imports outside src folder. | |
// I've no idea what is this shit behind babelOptions but it works. | |
const addLinaria1x = () => (config) => { | |
addBabelPreset("linaria/babel")(config); | |
const babelLoader = getBabelLoader(config); | |
const { loader, options } = babelLoader; | |
const { plugins, presets } = options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=xmonad-dema-xsession | |
pkgver=1.0 | |
pkgrel=0 | |
arch=("any") | |
package (){ | |
mkdir -p "${pkgdir}/usr/share/xsessions" | |
cp ../xmonad.desktop "${pkgdir}/usr/share/xsessions" |
OlderNewer