Live data from Hacker News

Ask HN: What are some tools / libraries you built yourself?

news.ycombinator.com

211–220 of 617 posts

Re: Ask HN: What are some tools / libraries you built yourself?

#211
sqldb-logger: https://github.com/simukti/sqldb-logger

It's a thin layer that wrap Go (Golang) SQL database driver, it does not change sql.DB usage in any existing Go app.

It is because I prefer to use vanilla Go sql.DB in my web service and I could not find any SQL logger for Go SQL database standard library that can use structured JSON logging.

Re: Ask HN: What are some tools / libraries you built yourself?

#212
I built an open source library for Android called Showkase [1]. Showkase autogenerates a UI component browser for your Jetpack Compose components on Android and allows you to search, visualize and organize your UI elements. Think Storybook but for Android development.

[1] https://github.com/airbnb/Showkase

Re: Ask HN: What are some tools / libraries you built yourself?

#213
post #136

Early 2017, I built Listen Notes [1] , so I can search podcast episodes by keywords and listen to individual podcast episodes without subscribing to the entire podcast. A few years ago, most podcast apps assume you wanted to subscribe to podcasts first then listen. Maybe I’m not a typical podcast listener. I don’t like subscribing to podcasts. I just want to listen to individual episodes then move on. Similar to cons…

I'm a huge fan of Listen Notes!

Thank you :)

Re: Ask HN: What are some tools / libraries you built yourself?

#214

I wrote a library for animating image backgrounds on the web using After Effects style filters and transitions: https://aeroheim.github.io/midori/ It's basically a post-processing pipeline implemented with Three.js and WebGL using a few shaders that I wrote. I created it primarily because I needed it for one of my current projects, so the use case is fairly niche and mostly only relevant for stuff like creative codin…

Wow, awesome work on this!

Thank you - much appreciated!

Re: Ask HN: What are some tools / libraries you built yourself?

#215
Night Patrol - https://github.com/jahed/night-patrol

I got tired of passing flags to Nightwatch to filter tests and looking through results to re-run failures. So I made an interactive CLI for all of that. I stopped using this once I moved to Cypress but even with Cypress' web interface, I feel something like Night Patrol would be a lot more productive.

Firebase Rules - https://github.com/jahed/firebase-rules

I didn't like how Firebase's RTDB rules were expressions in JSON strings so I built a library to build them using a lisp-like syntax to compose and re-use rules. Firebase also has its own rules language (Bolt) but I'd rather not learn and maintain yet another tool-specific language.

Promises - https://github.com/jahed/promises

This isn't a complete solution yet, I didn't get time to refine the API. But I really prefer using Promises as result types (a.k.a. either, left/right) rather than using async/await/try/catch. It's so much more powerful to write code in a way that doesn't care if your functions are async or sync. Again, kind of like a lisp, there's also power in not being tied to a language's keywords and being able to provide a more tailored vocabulary.

Re: Ask HN: What are some tools / libraries you built yourself?

#218
post #136

Early 2017, I built Listen Notes [1] , so I can search podcast episodes by keywords and listen to individual podcast episodes without subscribing to the entire podcast. A few years ago, most podcast apps assume you wanted to subscribe to podcasts first then listen. Maybe I’m not a typical podcast listener. I don’t like subscribing to podcasts. I just want to listen to individual episodes then move on. Similar to cons…

Whoa! I'm glad I found this. I think it'll fit into my writing workflow. Thanks!

Most searches are about people's names, e.g., book author's name, a celebrity's name, a CEO's name...

And you can curate playlists of episodes by topic / people, e.g.,

- Scott Galloway https://lnns.co/0LWEK3dhSfy

- Female VCs: https://lnns.co/depiDjM1XvQ

- More playlists: https://www.listennotes.com/podcast-playlists/

Re: Ask HN: What are some tools / libraries you built yourself?

#219
I needed to process some large JSON files on a 32bit machine, and kept blowing the RAM. I found it easier to process the data as msgpack, since msgpack specifies field lengths in advance, whilst JSON requires scanning through the contents to find matching delimiters. I couldn't find a conversion tool which didn't also run out of RAM (presumably due to buffering until it found a delimiter); so I wrote my own bare-bones converter (which assumes well-formed input and doesn't even support numbers): http://chriswarbo.net/git/json-to-msgpack

For another project I was getting static HTML reports from a tool, which contained third-party styles and scripts that didn't work when the reports were accessed from 'file://' URLs. I asked on StackOverflow ( https://stackoverflow.com/questions/50339325/inlining-extern... ) but all the suggestions involved a Web browser or complex Javascript build tools. I ended up writing a little Python script to replace such third-party content with data-URI versions: http://chriswarbo.net/git/html-inliner

Many years ago I wanted to control some physical sensors/actuators using an Arduino, controlled via a complicated C++ project running on my desktop. I wrote a simple sketch for the Arduino which just reads/writes 'commands' over a USB cable, in a simple JSON format http://chriswarbo.net/projects/arduino (I then wrote a trivial Python script to shuttle messages back/forth between the USB line and the C++ program)

I like reading RSS/Atom feeds in Emacs, but my preferred reader only supports maildir. There are a few projects which can convert between these, but they all include 'databases', URL fetching, etc. which I didn't need. Hence I took one of these and ripped out all of the functionality I didn't need http://chriswarbo.net/blog/2017-01-14-rss_to_maildir.html

I've come up with a few scripts and Emacs macros for extracting metadata from PDF files http://chriswarbo.net/projects/pdf-tools.html

Post reply on HN