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 type { RefObject } from "react"; | |
| import { useCallback } from "react"; | |
| import { useState, useEffect } from "react"; | |
| type UseDragOptions = { | |
| onPointerDown?: (event: PointerEvent) => void; | |
| onPointerUp?: (event: PointerEvent) => void; | |
| onPointerMove?: (event: PointerEvent) => void; | |
| onDrag?: (event: DragEvent) => void; | |
| }; |
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
| #!/bin/sh | |
| # | |
| # Requires | |
| # - [httpie](https://httpie.io/cli) | |
| # - [jq](https://stedolan.github.io/jq/) | |
| # - [fzf](https://github.com/junegunn/fzf) | |
| # - GITHUB_TOKEN with `repos` and `delete repos` scope. | |
| http https://api.github.com/user/repos "Authorization:token $GITHUB_TOKEN" per_page==100 type==owner \ | |
| | jq '.[] | select(.fork==true) | .full_name' \ |
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
| name: ci | |
| # https://github.com/docker/build-push-action/blob/master/docs/advanced/tags-labels.md | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| schedule: |
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 { createLocalStorage } from "localstorage-ponyfill"; | |
| export const isBrowser = | |
| typeof window !== 'undefined' && | |
| typeof window.document !== 'undefined'; | |
| export const isNode = | |
| typeof process !== 'undefined' && | |
| process.versions != null && | |
| process.versions.node != null; |
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
| ... | |
| functionGlobalContext: { | |
| i2c:require('i2c'), | |
| os:require('os'), | |
| fs:require('fs'), | |
| glob:require('glob'), | |
| ua:require('universal-analytics') | |
| // jfive:require("johnny-five"), |
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
| #!/usr/bin/env node | |
| console.log('yay gist') |
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
| const express = require('express'); | |
| const serveStatic = require('serve-static'); | |
| const STATIC_ROOT = '/static/'; | |
| const app = express(); |
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
| Random ports used by webpack-serve despite ports configured. | |
| repo: https://github.com/airtonix/netlify-cms-widget-relations | |
| It's also caused by the fact that you might have `onchange` wrapping your callto `webpack-serve`, which | |
| leads to `onchange` sending SIGTERM instead of SIGINT to the childprocess it wraps. | |
| The result is that `webpack-serve` remains running, thus keeps the intially configured port and the | |
| next process uses a random port. |
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
| var path = require('path'); | |
| var CWD = process.cwd(); | |
| var pkg = require(path.join(CWD, 'package.json')); | |
| module.exports.register = function (Handlebars) { | |
| var manifestPath = path.resolve(process.cwd(), 'dist', 'Static', 'theme', 'manifest.json'); | |
| var manifest; | |
| var errorMessage; | |
| var filecontent; | |
| try { |
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
| @charset "UTF-8"; | |
| /* default */ | |
| #ghx-work { | |
| display: flex; | |
| } | |
| #ghx-work #ghx-pool-column { | |
| display: block; | |
| flex: 1; |