Foobar
Add the theme to the gatsby-config.js
! Title: Search engine domains | |
! Description: Remove certain domains from Google/DuckDuckGo | |
! See also: https://github.com/darekkay/config-files/blob/master/adblocker/search-engines.txt | |
! See also: https://gist.github.com/quenhus/6bd2c47e5780f726f0c96c0a2ee762a4 | |
! Low quality | |
google.*##.g:has(a[href*="geeksforgeeks.org"]) | |
google.*##.g:has(a[href*="gutefrage.net"]) |
import * as React from "react" | |
import { Box, BoxProps } from "@chakra-ui/react" | |
interface ISpacerProps extends BoxProps { | |
size: BoxProps["width"] | |
axis: "vertical" | "horizontal" | |
} | |
const Spacer = ({ size, axis, ...rest }: ISpacerProps) => { | |
const width = axis === `vertical` ? `1px` : size |
# Disable executionpolicy | |
Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
# install scoop | |
iwr -useb get.scoop.sh | iex | |
# setup applications | |
scoop bucket add github-gh https://github.com/cli/scoop-gh.git | |
scoop bucket add extras |
module.exports = { | |
space: [0, 4, 8, 16, 32, 64, 128, 256, 512], | |
fonts: { | |
body: '-apple-system, BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"', | |
heading: 'inherit', | |
monospace: 'Menlo, monospace', | |
}, | |
fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 96], | |
lineHeights: { | |
body: 1.5, |
const spawn = require('cross-spawn') | |
/** | |
* GetLastUpdatedTimestamp - Get the last time a file was commited to GitHub and therefore was updated | |
* @param filepath | |
* @returns {number} - Date | |
*/ | |
const getLastUpdatedTimestamp = filepath => | |
parseInt(spawn.sync('git', ['log', '-1', '--format=%ct', filepath]).stdout.toString('utf-8'), 10) * 1000 |
/** | |
* Filters an array of objects with multiple criteria. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria as the property names | |
* @return {Array} | |
*/ | |
function multiFilter(array, filters) { | |
const filterKeys = Object.keys(filters); | |
// filters all elements passing the criteria |