Archive of 2022/02
https://github.com/zestyping/q
2022-02-26T19:22:34.958Z

Quick and dirty debugging output for tired programmers.

React hook for requestAnimationFrame
2022-02-26T13:32:19.224Z
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/

https://www.curtainsjs.com/
2022-02-26T13:24:18.495Z

easy WebGL tool to animate images and videos

https://github.com/bbc/peaks.js
2022-02-26T13:23:25.508Z

JavaScript UI component for interacting with audio waveforms

https://inkstitch.org/
2022-02-26T12:06:08.125Z

An open-source machine embroidery design platform based on Inkscape.

https://www.interdb.jp/pg/
2022-02-22T11:27:17.348Z

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
https://github.com/RobertCraigie/prisma-client-py
2022-02-22T11:25:03.657Z

Prisma Python is an auto-generated and fully type-safe database client providing a simplistic yet extremely powerful API

How to cut/trim a video using ffmpeg
2022-02-19T12:07:27.289Z

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

https://hue.tools/
2022-02-18T14:07:40.749Z

hue.tools is web app that helps you to work with colors. An open source toolbox for colors.

https://github.com/maciejhirsz/logos
2022-02-18T11:58:23.512Z

Create ridiculously fast Lexers.

https://github.com/ezrosent/frawk
2022-02-16T16:01:17.939Z

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.

https://github.com/microsoft/griffel
2022-02-15T14:28:07.075Z

CSS-in-JS with ahead-of-time compilation.

https://github.com/sezanzeb/input-remapper
2022-02-15T11:45:21.520Z

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.

https://github.com/mufeedvh/pdfrip
2022-02-15T11:43:56.288Z

Fast PDF password cracking utility equipped with commonly encountered password format builders and dictionary attacks.

https://johnnydecimal.com/
2022-02-12T20:04:33.153Z

A system to organise projects

“Hey Kristy, where can I find the payroll schedule?” “12.03”

https://git.deuxfleurs.fr/Deuxfleurs/garage
2022-02-10T21:23:36.812Z

Garage is a lightweight S3-compatible distributed object store

https://github.com/soheilpro/mailwind
2022-02-10T21:20:18.754Z

Use Tailwind CSS to design HTML emails.

https://github.com/soheilpro/catj
2022-02-09T17:18:02.569Z

Displays JSON files in a flat format

https://github.com/gyroflow/gyroflow
2022-02-09T10:51:31.157Z

Video stabilization using gyroscope data

https://github.com/soketi/soketi
2022-02-04T20:53:42.877Z

soketi is your simple, fast, and resilient open-source WebSockets server

https://github.com/quickwit-oss/quickwit
2022-02-04T20:47:08.499Z

Quickwit is a fast and cost-efficient distributed search engine for large-scale, immutable data.

Change the date of the last git commit
2022-02-04T20:28:45.538Z

git commit --amend --no-edit --date "20220115T13:42:11"

https://github.com/devrsi0n/chirpy
2022-02-04T19:36:09.827Z

Chirpy is a privacy-friendly and customizable Disqus(comment system) alternate.

https://github.com/hannobraun/Fornjot
2022-02-04T19:33:39.428Z

Fornjot is an early-stage project to create a next-generation Code-CAD application. Because the world needs another CAD program.

https://github.com/infinitered/gluegun
2022-02-04T19:32:39.914Z

Gluegun is a delightful toolkit for building Node-based command-line interfaces (CLIs) in TypeScript or modern JavaScript

https://github.com/Textualize/rich
2022-02-01T12:27:44.376Z

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.

https://github.com/Textualize/rich-cli
2022-02-01T12:27:03.723Z

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.