- What it is
- Why do we need it
- How do we use it
- How it works
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 = { | |
type: 'react-app', | |
webpack: { | |
extra: { | |
resolve: { | |
extensions: ['.js', '.jsx', '.json', '.tsx', '.ts' ] | |
}, | |
module: { | |
rules: [ | |
{ test: /\.jsx|tsx?$/, exclude: /node_modules/, |
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
/* | |
## NexusFolder.ahk | |
## | |
## Switch default filemanager by launching this script without | |
## commandline parameters. If you send a file or folder as a |
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 * as React from 'react' | |
import Grid from './Grid' | |
import './App.css' | |
interface BaseLineItem { | |
id: string | |
name: string | |
cost: number | |
} |
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
#!/usr/bin/env bash {} /* | |
cd ~/.mozilla/firefox || cd ~/Library/Application\ Support/Firefox* | |
source <(grep Default= profiles.ini) | |
mkdir $Default/chrome | |
tee $Default/chrome/userChrome.css <<EOF | |
/*#region Firefox */ | |
#browser, |
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 * as React from 'react' | |
import { render } from 'react-dom' | |
import { compose, fromRenderProps } from 'recompose' | |
import { identity, pick, mapValues } from 'lodash' | |
const withDependencies = (...services: Array<[any, Function]>) => { | |
const enhance = compose( | |
...services.map(([service, mapProps]) => fromRenderProps( | |
Service.contextFor(service).Consumer, | |
mapProps |
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
{ | |
"BTTPresetName" : "Default", | |
"BTTGeneralSettings" : { | |
"disableScrollingIf3" : true, | |
"BTTPasteWhenTriggeringClipboardAgain" : true, | |
"BTTForceNormalClickPressure5F" : 200, | |
"disableScrollingIf2" : true, | |
"BTTDidRegisterForUpdateStats" : "3.140", | |
"BTTShowControlStrip" : true, | |
"BTTShowControlStripItem" : true, |
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
type Func = (..._) => any | |
const overload = <Default extends Func>(defaultFunc: Default): OverloadBuilder<Default> => { | |
// @ts-ignore | |
const match = cases => Object.assign( | |
(...args) => { | |
const matcher = cases.find(([ guard ]) => guard(args)) | |
const func = matcher | |
? matcher[1] | |
: defaultFunc |
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
/** | |
* @template [T=any] | |
* @property {{ (_: T): Promise<void>} & { pending?: Promise<T> }} put | |
*/ | |
class CacheIOError extends Error { | |
constructor(cause, context) { | |
Object.assign(this, context, { cause }) | |
} | |
} |
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 os | |
import collections | |
import pickle | |
import json | |
import urllib.parse | |
import re | |
from functools import wraps | |
from typing import Callable, Any | |
from dataclasses import dataclass, fields |