type Dec = Record<number, never> & [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
type A = Dec[12]
type Overload<T extends Signature[]> = {
[K in number & keyof T]: (...args: Args<T[K]>) => Return<T[K]>
}
type Args = any[] & {
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 React, { PropTypes as t } from 'react' | |
var inject = (selector = pass => pass ) => | |
connect( | |
({ pass }) => selector(pass), | |
{ pass: t.object } | |
) | |
var Context = Object.assign( | |
({ children, ...props }, { pass = {} }) => |
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
{"lastUpload":"2017-07-02T02:01:08.109Z","extensionVersion":"v2.8.1"} |
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
_ = require 'lodash' | |
imdb = require 'imdb-api' | |
rarbg = require 'rarbgto-api' | |
fetch = require 'isomorphic-fetch' | |
cache = require('memoize-fs') cachePath: './memoize-fs' | |
memoize = ({ store , invalidator }, func) -> | |
options = { cacheId: store, noBody: true } | |
atempt = -> |
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
try do registerInstaller = -> require 'autoinstall' catch notFound | |
require('child_process').execSync 'npm i autoinstall' | |
registerInstaller() | |
hyperstyles = require 'hyperstyles' | |
h = require('react-hyperscript') | |
o = hyperstyles h, | |
(require 'csjs')""" | |
.panel { | |
border: 1px solid black; |
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
const deasync = require('deasync') | |
const runLoaders = deasync(require('loader-runner').runLoaders) | |
const { module: { rules } } = config = require('./webpack.base') | |
const fs = require('fs') | |
const resolveLoader = req => { | |
let loader = req | |
req = ~req.indexOf`?` | |
if (req) { | |
const index = ~req |
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
{"lastUpload":"2017-10-30T13:54:53.487Z","extensionVersion":"v2.8.3"} |
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
Package name ID Manager Installed version | |
------------------------------- ------------------------------- --------- ------------------- | |
alfred alfred cask 3.2_759 | |
amethyst amethyst cask 0.10.1 | |
cheatsheet cheatsheet cask 1.2.6 | |
chromedriver chromedriver brew 2.27 | |
ccat ccat brew 1.1.0 | |
colorls colorls gem 0.1.7 | |
DrCleaner 921458519 mas 3.2.0 | |
eintopf eintopf cask 1.3.2 |
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
graphene (0.7.3) | |
howdoi (1.1.9) | |
http-prompt (0.10.2) | |
jupyterlab (0.26.4) | |
meta-package-manager (2.5.0) |
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
function delegateTo(prop: string) { | |
const { __proto__ } = this | |
Object.setPrototypeOf(this, | |
new Proxy({}, { | |
get: (target, name) => { | |
target = this[prop] | |
if (name === prop) return target | |
if (name in __proto__) return __proto__[name] | |
return target ? target[name] : undefined |
OlderNewer