Quick and dirty debugging output for tired programmers.
const useAnimationFrame = callback => {
// Use useRef for mutable variables that we want to persist
// without triggering a re-render on their change
const requestRef = React.useRef();
const previousTimeRef = React.useRef();
const animate = time => {
if (previousTimeRef.current != undefined) {
const deltaTime = time - previousTimeRef.current;
callback(deltaTime)
}
previousTimeRef.current = time;
requestRef.current = requestAnimationFrame(animate);
}
React.useEffect(() => {
requestRef.current = requestAnimationFrame(animate);
return () => cancelAnimationFrame(requestRef.current);
}, []); // Make sure the effect runs only once
}
const Counter = () => {
const [count, setCount] = React.useState(0)
useAnimationFrame(deltaTime => {
// Pass on a function to the setter of the state
// to make sure we always have the latest state
setCount(prevCount => (prevCount + deltaTime * 0.01) % 100)
})
return <div>{Math.round(count)}</div>
}
Source : https://css-tricks.com/using-requestanimationframe-with-react-hooks/
easy WebGL tool to animate images and videos
JavaScript UI component for interacting with audio waveforms
An open-source machine embroidery design platform based on Inkscape.
The Internals of PostgreSQL, with :
- Chapter 1. Database Cluster, Databases and Tables
- Chapter 2. Process and Memory Architecture
- Chapter 3. Query Processing
- Chapter 4. Foreign Data Wrappers (FDW) and Parallel Query
- Chapter 5. Concurrency Control
- Chapter 6. VACUUM Processing
- Chapter 7. Heap Only Tuple (HOT) and Index-Only Scans
- Chapter 8. Buffer Manager
- Chapter 9. Write Ahead Logging (WAL)
- Chapter 10. Base Backup and Point-In-Time Recovery (PITR)
- Chapter 11. Streaming Replication
Prisma Python is an auto-generated and fully type-safe database client providing a simplistic yet extremely powerful API
Cut with start position and duration
$ ffmpeg -i input.mp4 -ss 00:03:17 -t 00:10:11 -c:v copy -c:a copy output.mp4
-t
specifies the duration from the start position
Cut with start position and end position
$ ffmpeg -i input.mp4 -ss 00:15:23 -to 00:17:32 -c:v copy -c:a copy output.mp4
-to
to specify an exact time to cut to from the starting position.
Trim duration from end of video
ffmpeg -sseof -00:12:00 -i input.mp4 -c copy output.mp4
hue.tools is web app that helps you to work with colors. An open source toolbox for colors.
Create ridiculously fast Lexers.
frawk is a small programming language for writing short programs processing textual data. To a first approximation, it is an implementation of the AWK language; many common Awk programs produce equivalent output when passed to frawk. You might be interested in frawk if you want your scripts to handle escaped CSV/TSV like standard Awk fields, or if you want your scripts to execute faster.
CSS-in-JS with ahead-of-time compilation.
An easy to use tool to change the mapping of your input device buttons. Supports mice, keyboards, gamepads, X11, Wayland, combined buttons and programmable macros. Allows mapping non-keyboard events (click, joystick, wheel) to keys of keyboard devices.
Fast PDF password cracking utility equipped with commonly encountered password format builders and dictionary attacks.
A system to organise projects
“Hey Kristy, where can I find the payroll schedule?” “12.03”
Garage is a lightweight S3-compatible distributed object store
Use Tailwind CSS to design HTML emails.
Displays JSON files in a flat format
Video stabilization using gyroscope data
soketi is your simple, fast, and resilient open-source WebSockets server
Quickwit is a fast and cost-efficient distributed search engine for large-scale, immutable data.
git commit --amend --no-edit --date "20220115T13:42:11"
Chirpy is a privacy-friendly and customizable Disqus(comment system) alternate.
Fornjot is an early-stage project to create a next-generation Code-CAD application. Because the world needs another CAD program.
Gluegun is a delightful toolkit for building Node-based command-line interfaces (CLIs) in TypeScript or modern JavaScript
Rich is a Python library for rich text and beautiful formatting in the terminal.
The Rich API makes it easy to add color and style to terminal output. Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more — out of the box.
Rich-cli is a command line toolbox for fancy output in the terminal, built with Rich.
Use the rich command to highlight a variety of file types in the terminal, with specialized rendering for Markdown and JSON files. Additionally you can markup and format text from the command line.