namerefs (introduced in bash 4.0) act as aliases for other variables
var=meow
declare -n ref=var
echo $ref # prints meow
ref=moo
echo $var # prints moonamerefs (introduced in bash 4.0) act as aliases for other variables
var=meow
declare -n ref=var
echo $ref # prints meow
ref=moo
echo $var # prints moo| "use client"; | |
| import { useRouter } from "next/navigation"; | |
| import type { ReactNode } from "react"; | |
| import { useCallback, useEffect, useState } from "react"; | |
| interface ProximityPrefetchProps { | |
| children: ReactNode; | |
| threshold?: number; | |
| predictionInterval?: number; |
| import { randomString } from "./benchUtil.js"; | |
| import { metabench } from "./metabench.js"; | |
| export function lazyWithInternalProp<T>(getter: () => T) { | |
| return { | |
| __value: undefined as T, | |
| get value() { | |
| if (this.__value) return this.__value; | |
| const value = getter(); | |
| this.__value = value; |
| // Usage: | |
| // Replace React.lazy(() => import('x')); | |
| // with retryDynamicImport(() => import('x')); | |
| import { ComponentType, lazy } from 'react'; | |
| const MAX_RETRY_COUNT = 15; | |
| const RETRY_DELAY_MS = 500; | |
| // Regex to extract the module URL from the import statement |
3.5 fps, Paperwhite 3
@adtac_
mobileread.com is your best resource here, follow the instructions from the LanguageBreak thread
I didn't really follow the LanguageBreak instructions because I didn't care about most of the features + I was curious to do it myself, but the LanguageBreak github repo was invaluable for debugging
| Provider | Primary IP | Secondary IP | Focus |
|---|---|---|---|
| Radar | 10.202.10.10 | 10.202.10.11 | Gaming |
| Shelter | 94.103.125.157 | 94.103.125.158 | Gaming |
| Electro | 78.157.42.100 | 78.157.42.101 | Filtering |
| 403 | 10.202.10.202 | 10.202.10.102 | Filtering |
| Shecan | 178.22.122.100 | 185.51.200.2 | Filtering |
| Begzar | 185.55.226.26 | 185.55.225.25 | Filtering |
| import { useEffect, useRef } from 'react' | |
| // playground: https://stackblitz.com/edit/react-ts-nv5fxe?file=App.tsx | |
| export default function App() { | |
| // create a ref and declare an instance for each countUp animation | |
| const countupRef = useRef(null); | |
| let countUpAnim; | |
Query JSON Response with JSON Path
To work more easily with Postman JSON results, I implemented JSONPath in a Postman Visualizer, to query the results.
JSONPath is to JSON what XPath is to XML, and it helps to dig into large nested objects and get what you are looking for faster.
First I was using just a jQuery version that can be found in the examples and that worked just fine. (JSONpath Visualizer | Postman Team Collections | Postman API Network)
| interface TLBoundsWithCenter { | |
| minX: number | |
| midX: number | |
| maxX: number | |
| minY: number | |
| midY: number | |
| maxY: number | |
| width: number | |
| height: number | |
| } |