This file contains hidden or 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 hidden or 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 hidden or 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 <[email protected]> | |
* @license MIT | |
*/ | |
(function elementPickerModule(factory) { | |
if (typeof define === 'function' && define.amd) { |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
This file contains hidden or 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
version: '3.7' | |
services: | |
mongodb_container: | |
# This image automatically creates a replica set required for transactions | |
image: prismagraphql/mongo-single-replica:4.4.3-bionic | |
# image: prismagraphql/mongo-single-replica:5.0.3 | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: prisma | |
INIT_WAIT_SEC: 3 |
OlderNewer