A Regular Expression in 30 Lines of C
https://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html
@DevMisc
#regex #c #misc
https://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html
@DevMisc
#regex #c #misc
😁2
Mildly Interesting Quirks of C
https://gist.github.com/fay59/5ccbe684e6e56a7df8815c3486568f01
@DevMisc
#learn #c #misc
https://gist.github.com/fay59/5ccbe684e6e56a7df8815c3486568f01
@DevMisc
#learn #c #misc
👍1
I found a bug in SQLite
If you didn’t code it in C, it didn’t happen.
https://www.philipotoole.com/how-i-found-a-bug-in-sqlite
@DevMisc
#sqlite #c #misc
If you didn’t code it in C, it didn’t happen.
https://www.philipotoole.com/how-i-found-a-bug-in-sqlite
@DevMisc
#sqlite #c #misc
👍4
Assertions are pessimistic, assumptions are optimistic
https://blog.regehr.org/archives/1096
@DevMisc
#c #learn #misc
https://blog.regehr.org/archives/1096
@DevMisc
#c #learn #misc
👍4❤1🖕1
Writing a Physics Engine from scratch - collision detection optimization
https://youtu.be/9IULfQH7E90
@DevMisc
#c #gamedev #learn
https://youtu.be/9IULfQH7E90
@DevMisc
#c #gamedev #learn
❤1🖕1
Catch-23: The New C Standard Sets the World on Fire
https://queue.acm.org/detail.cfm?id=3588242
@DevMisc
#c #learn #misc
https://queue.acm.org/detail.cfm?id=3588242
@DevMisc
#c #learn #misc
❤4🖕1
Swap_8_and_9
A simple import can modify the Python interpreter.
https://kenschutte.com/python-swap-ints/
@DevMisc
#python #c #fun
A simple import can modify the Python interpreter.
https://kenschutte.com/python-swap-ints/
@DevMisc
#python #c #fun
🤯3🥴1
Can you use a C++ class in C?
https://d4ckard.github.io/2023/08/11/can-you-use-a-class-in-c/
@DevMisc
#c #cpp #learn
https://d4ckard.github.io/2023/08/11/can-you-use-a-class-in-c/
@DevMisc
#c #cpp #learn
😁1
How to read C type declarations
http://www.unixwiz.net/techtips/reading-cdecl.html
@DevMisc
#c #learn #misc
http://www.unixwiz.net/techtips/reading-cdecl.html
@DevMisc
#c #learn #misc
TOTP tokens on my wrist with the smartest dumb watch
https://blog.singleton.io/posts/2022-10-17-otp-on-wrist/
@DevMisc (🟠 comments)
#c #fun #misc
- The author has replaced the logic board of a classic Casio F-91W watch with a new ARM Cortex M0+ powered board from Sensor Watch.
- The new board allows the watch to be programmed and customized, including adding features like TOTP (time-based one-time password) support for two-factor authentication.
- The author was able to set up TOTP support for their Google and GitHub accounts, allowing them to access the OTP codes directly on their wrist.
- The author also created a new "ratemeter" watchface that can be used to measure rates, such as rowing strokes or cadence.
- The document provides detailed instructions on how to add TOTP secrets to the watchface code and how the ratemeter watchface was implemented.
- The Sensor Watch project provides a clean and easy to modify set of watchfaces and complications that can be customized.
- The F-91W watch case, combined with the new programmable board, offers a powerful and hackable platform with long battery life.
- The author highlights the availability of a WASM-based emulator that makes it easy to test and play with the custom builds.
- The document mentions other interesting watchfaces available in the Sensor Watch project, including a pulsometer and orrery.
- The author recommends getting a Sensor Watch from Oddly Specific Objects, though they have no affiliation with the company.
https://blog.singleton.io/posts/2022-10-17-otp-on-wrist/
@DevMisc (
#c #fun #misc
Please open Telegram to view this post
VIEW IN TELEGRAM
I Write Type Safe Generic Data Structures in C
https://danielchasehooper.com/posts/typechecked-generic-c-data-structures/
@DevMisc (🟠 comments)
#c #generics #learn
I write type safe generic data structures in C using a technique that I haven't seen elsewhere. It involves unions and typeof, but we'll get to that. My approach works for any type of data structure: maps, arrays, binary trees… but for this article I illustrate the ideas by implementing a basic linked list.
https://danielchasehooper.com/posts/typechecked-generic-c-data-structures/
@DevMisc (
#c #generics #learn
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1