View use-visual-viewport.js
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 { useCallback, useEffect } from "react" | |
/** | |
React hook to update the CSS custom properties `--viewport-height` and | |
`--viewport-width` when the window is resized. | |
Alternatively, an object with properties `height` and `width` can be | |
used with the CSS custom properties to update can be provided instead. | |
@param {object} [props] |
View VisualViewport.jsx
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, { useEffect, useRef, useState } from "react" | |
export const VisualViewport = ({ | |
as: Element = "div", | |
children, | |
style = {}, | |
...props | |
}) => { | |
const ref = useRef (null) |
View Element.jsx
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 { css } from "@amory/style" | |
import { motion } from "framer-motion" | |
import { createElement } from "react" | |
export const Element = ({ | |
animate, | |
as = "div", | |
className, | |
custom, | |
drag, |
View template.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View deep-merge-map.js
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
/* eslint-disable no-use-before-define */ | |
const isArr = Array.isArray | |
const isMap = (value) => value instanceof Map | |
const isObj = (value) => typeof value === "object" | |
const canMerge = (value) => | |
Boolean (value) && | |
isObj (value) && | |
!(/^\[object (?:Date|RegExp)\]$/) |
View static-site-generator-webpack-plugin.js
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
/* eslint compat/compat: off, max-statements: off */ | |
const RawSource = require ("webpack-sources/lib/RawSource") | |
const evaluate = require ("eval") | |
const path = require ("path") | |
const cheerio = require ("cheerio") | |
const url = require ("url") | |
const Promise = require ("bluebird") | |
const findAsset = (src, compilation, webpackStatsJson) => { |
View .gitignore
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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data | |
pids | |
*.pid |
View .babelrc
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
Show hidden characters
{ | |
"presets": [ | |
"env" | |
] | |
} |
View adblock.sh
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
unset LANG; adblock () { test -n "$1" && curl --compressed --location --silent 'https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist' 'https://github.com/azet12/KADhosts/raw/master/KADhosts.txt' 'https://github.com/FadeMind/hosts.extras/raw/master/add.2o7Net/hosts' 'https://github.com/FadeMind/hosts.extras/raw/master/add.Dead/hosts' 'https://github.com/FadeMind/hosts.extras/raw/master/add.Risk/hosts' 'https://github.com/FadeMind/hosts.extras/raw/master/add.Spam/hosts' 'https://github.com/FadeMind/hosts.extras/raw/master/SpotifyAds/hosts' 'https://github.com/FadeMind/hosts.extras/raw/master/UncheckyAds/hosts' 'https://github.com/mitchellkrogza/Badd-Boyz-Hosts/raw/master/hosts' 'https://github.com/StevenBlack/hosts/raw/master/data/StevenBlack/hosts' 'https://github.com/tyzbit/hosts/raw/master/data/tyzbit/hosts' 'https://www.malwaredomainlist.com/hostslist/hosts.txt' 'https://mirror1.malwaredomains.com/files/justdomains' 'http://adblock.mahakala.is/' 'https://s3.amazonaws.com/lists.disconnect.me/s |
NewerOlder