517 karma · joined November 14, 2014
Making Haiker - Beautiful Hacker News App with auto translate https://haiker.app
twitter@randyloop
I have a plan to migrate the pgsql to a DigitalOcean managed database.
Since Cusdis was designed for self-hosted, the data should be stored in your own server. The Docker image provides both sqlite and pgsql options. Then the comment widget that embed in your web page talks to this server through a http call, which fetch all the approved comments and display them.
The "Try it now" is a demo server that I've hosted for the people who want to just look around what is it look like, it's not scalable and shouldn't be used in production yet. It run in my vps on Digital Ocean, data is stored in this vps with a pgsql instance.
The main idea is I save the whole note in a json file. I designed a schema to save these bi-directional notes. The benefit of "just a json file" is everyone can develop their own application around this schema (Something like "an open standard schema for block-based note"). For example if I want to build a mobile app for it, I just need to make an app that read and write the json file.
For now, I just want to build a Roam for myself to save $15/month.
The main different with Roam is I want my app saves data on local, instead of on the cloud.
Obsidian is a good alternative for this, but Obsidian is not block-based, I can't achieve something like block level reference. It's an important feature for me.
The link I post here is not a note app, it is an editor libaray. I use this library to build my note app. I think I can open source the editor core so that the other one can build their own block-based note app.
When I found myself repeat typing some codes over and over again, I started to use code snippet help me generate these codes. It saved me so much time.
But VS Code snippet syntax [1] is hard to write and maintain. So I find some code snippet manager applications, but they are all just help me copy and paste. However, the IDE native code snippet can do a lot more than just generate codes.
So I wrote a command line tool that generates the VS Code snippet file. It looks up all the `.snp` files (which is a file contains the snippet code) in current working directory and generate the code-snippets file to VS Code snippets folder. You don't have to do anything in VS Code and it just work.
You could see how do I use this tool to manage my snippets: https://github.com/djyde/snippets
(P.S. This is my first time writing Go code. I first write this tool in Node.js in 30 mins. Then I want to make it a single executable file. So I rewrite it in Go. It cost me 2 hours :P)
- [1] https://code.visualstudio.com/docs/editor/userdefinedsnippet...
So I create and publish a TypeScript declaration file for Hammerspoon APIS. With the help of typescript-to-lua, we can now writing hammerspoon scripts in a better way.
Since there are lots of APIs, I need some help complete them. If someone are interested, pull request is welcome!
I found your Tree Notation in this post and read through the website and the papers on the Github repo. It seems like a tool for creating a new DSL (or language). But I am not quite understand how to do it (even though I watched the YouTube video).
Could you write some document for how to create a DSL using the Tree Notation?
Thank you.
I wrote a library like that several days ago https://github.com/djyde/WebClip