// makeStore.ts - A function for creating more stores
import {
Dispatch,
Reducer,
useContext,
useReducer,
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
| actor: Tester | |
| paths: | |
| tests: tests | |
| log: tests/_output | |
| data: tests/_data | |
| support: tests/_support | |
| envs: tests/_envs | |
| settings: | |
| bootstrap: _bootstrap.php | |
| params: |
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
| { | |
| "src": "./src", | |
| "dest": "./public", | |
| "html": { | |
| "src": "html", | |
| "dest": "./" | |
| }, | |
| "static": { |
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
| # To enable | |
| defaults write com.apple.Dock appswitcher-all-displays -bool true | |
| killall Dock | |
| # To revert | |
| defaults write com.apple.Dock appswitcher-all-displays -bool false | |
| killall Dock |
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
| defaults write com.apple.Dock appswitcher-all-displays -bool true | |
| killall Dock |
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
| wget --wait=2 --level=inf --limit-rate=20K --recursive --page-requisites --user-agent=Mozilla --no-parent --convert-links --adjust-extension --no-clobber -e robots=off https://example.com |
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
| { | |
| "buttons": [ | |
| "html", | |
| "formatting", | |
| "bold", | |
| "italic", | |
| "unorderedlist", | |
| "orderedlist", | |
| "link", | |
| "file" |
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
| {# prettier-ignore #} | |
| {% if blocks is defined and blocks is iterable %} | |
| {% for blk in blocks %} | |
| {% if blk.type is defined %} | |
| {% include '_blocks/_' ~ blk.type ~ '.twig' ignore missing with { | |
| blk: blk, | |
| index: loop.index, | |
| } %} | |
| {% endif %} | |
| {% endfor %} |
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 React from 'react' | |
| import { ThemeToggler } from "gatsby-plugin-dark-mode" | |
| function ThemeToggle() { | |
| return ( | |
| <ThemeToggler> | |
| {({ theme, toggleTheme }) => ( | |
| <div className="flex justify-between items-center"> | |
| <label className={`w-14 h-8 flex items-center rounded-full p-1 ${ theme === 'dark' ? "bg-indigo-500" : "bg-yellow-200"}`}> | |
| <input type="checkbox" className="hidden" | |
| onChange={e => toggleTheme(e.target.checked ? 'dark' : 'light')} |
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
| module.exports = { | |
| options: { | |
| hideIcon: true, | |
| }, | |
| defaultBrowser: 'Safari', | |
| handlers: [ | |
| { | |
| match: finicky.matchHostnames(['localhost']), | |
| browser: 'Brave Browser', | |
| }, |