In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and
returning the cached result when the same
inputs occur again.
— wikipedia
Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
Clearable version:
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} isClearable={true} />
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/bash | |
| # version 3.3.1 | |
| # https://gist.github.com/mbierman/6cf22430ca0c2ddb699ac8780ef281ef | |
| DOCKER=$(which docker) | |
| image=$1 | |
| wait=2 | |
| # Parse -f flag (must come before the image 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
| /* | |
| * credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield) | |
| * for the original concept which was part of their RoamGames submission | |
| * and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/ | |
| * | |
| */ | |
| /* ======= OPTIONS ======== */ | |
| /* note: if you change these, reload the page to see the effect */ |
Cloud
Let's say you have a video ID, like wfy02V209EwU taken from this map
The link for the video kiBnNejo0JW0 is at https://video.parler.com/ki/Bn/kiBnNejo0JW0. Notice that the link is: https://video.parler.com/ followed by the first two characters of the video ID, then /, then the next two characters, another /, and the video ID.
But if you click on this, you will get an error.
This is because the Parler video servers are still running (as of January 12) but the Domain Name System (DNS) is not running.
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 machine = Machine({ | |
| id: 'field', | |
| context: { | |
| value: '', | |
| output: '' | |
| }, | |
| type: 'parallel', | |
| states: { | |
| value: { | |
| initial: 'empty', |
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 React from "react" | |
| import { getRef } from "./getRef" | |
| export default function App() { | |
| const rCanvas = React.useRef<HTMLCanvasElement>(null) | |
| React.useEffect(() => { | |
| const canvas = getRef(rCanvas) | |
| canvas.width = window.innerWidth | |
| canvas.width = window.innerHeight |
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 log from "ololog" | |
| class Grid { | |
| rows = [] | |
| width = 0 | |
| height = 0 | |
| chars = { | |
| active: ["┌", "─", "┒", "┃", "┛", "━", "┕", "│"], | |
| inactive: ["┌", "─", "┐", "│", "┘", "─", "└", "│"], |
These are notes to the stream: https://youtu.be/S9V-pcTrdL8
- We are not aware of a lot of GNU software available to us.
- Seems that Guix more hacker-friendly/explorable.
| Description | Nix | Guix | Comment |