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
# TODO: replace :token, :user, and :repo | |
curl -H "Authorization: token :token" \ | |
-H 'Accept: application/vnd.github.everest-preview+json' \ | |
"https://api.github.com/repos/:user/:repo/dispatches" \ | |
-d '{"event_type": "awesomeness", "client_payload": {"foo": "bar"}}' |
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
/** | |
* @typedef {import('react').ReactNode} ReactNode | |
* @typedef {import('antd/lib/input-number').InputNumberProps} InputNumberProps | |
* @typedef {Object} AddonProps | |
* @property {ReactNode} addonAfter | |
* @property {ReactNode} addonBefore | |
* @typedef {InputNumberProps & AddonProps} InputNumberPropsWithAddon | |
*/ | |
import { Input, InputNumber, Button } from 'antd' |
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
/**! | |
* Element Picker. | |
* A JavaScript library that allows you to point and click to get the hovered element. | |
* @author James Bechet <jamesbechet@gmail.com> | |
* @license MIT | |
*/ | |
(function elementPickerModule(factory) { | |
if (typeof define === 'function' && define.amd) { |
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
x86_64-apple-darwin | |
aarch64-apple-darwin | |
x86_64-pc-windows-msvc | |
aarch64-pc-windows-msvc | |
x86_64-unknown-linux-musl | |
aarch64-unknown-linux-musl | |
x86_64-unknown-linux-gnu | |
armv7-unknown-linux-gnueabihf |
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 { LRUCache } from 'lru-cache' | |
import { graphql, GraphqlResponseError } from '@octokit/graphql' | |
interface FileChanges { | |
additions?: AdditionChange[] | |
deletions?: DeletionChange[] | |
} | |
interface AdditionChange { | |
path: string |
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 csv from 'fast-csv' | |
/** | |
* `json object` => `csv string` | |
* | |
* the important thing is this process will holds the data type. | |
* @example | |
* ```js | |
* [ | |
* { name: 'Jim', age: 19 }, |
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 { FC, useEffect, useState } from 'react' | |
import { Stage, Layer, Circle, Arrow } from 'react-konva' | |
import Konva from 'konva' | |
import { useWindowSize } from 'react-use' | |
// https://konvajs.org/api/Konva.html | |
// https://github.com/konvajs/react-konva | |
interface Props { | |
debug?: boolean |