Better HN
topnewbestaskshowjobs
Log inSign up

ynh

206 karma · joined Sep 1, 2012 (14y ago) · 25 submissions

Submissions

comment 1y ago · link · parent

I use https://copilot.money for my personal book keeping and am really happy with the insights it provides into my spending habits

comment 1y ago · link · parent

I think using TipTap would have been the best option but I decided to build my own editor using contenteditable with the diff-dom library to maximize my learnings.

The editor keeps track of the original text and the modified text (not yet accepted text). The rendering starts by calculating the diff between the two texts and building a virtual DOM tree with special markers for changes. Then, cursors and selections are inserted into the virtual DOM, after which the DOM is processed by the markdown parser. The parser converts markdown syntax into formatted DOM elements. Finally, the virtual DOM is diffed against the contenteditable DOM, and the minimal updates are applied. There is some additional logic to handle cursor positioning between the updates and to manage the history.

3.

Show HN: Gemini-Powered Contextual Text Editor with Inline Diffing View(ai-writing-tool.vercel.app ↗)

3 points · by ynh · 1y ago · 3 comments

4.

Ubuntu bitcoin indicator applet(github.com ↗)

2 points · by ynh · 13y ago · discuss

comment 13y ago · link · parent

Use progress as html tag?

6.

Rebuild YouTube's mobile-like progress bar in jQuery(blog.ynh.io ↗)

52 points · by ynh · 13y ago · 12 comments

comment 13y ago · link · parent

I am currently also selling my product (newsletter mailer) via codecanyon. My main concern leaving codecanyon is how to drive potential customers to my site. As you already said there is a huge support effort on codecanyon, due to "inexperienced" customers.

8.

Newsletter Mailer - What’s next?(ynhwebdev.tumblr.com ↗)

1 points · by ynh · 14y ago · discuss

comment 14y ago · link · parent

It must be a valid c/c++ program. Just wrap your code in a function

comment 14y ago · link · parent

Yes I could add some thing like a permanent link creator.

comment 14y ago · link · parent

Fixed

comment 14y ago · link · parent

Just fixed

comment 14y ago · link · parent

No problem I think I could fix it.

Can you show us how you read the content of the file. Just want to learn more

comment 14y ago · link · parent

I have now used a the wrapper by gcc-explorer https://github.com/mattgodbolt/gcc-explorer/blob/master/c-pr...

comment 14y ago · link · parent

OK I will let the user choose between both syntax

comment 14y ago · link · parent

The code is available on github https://github.com/ynh/cpp-to-assembly

comment 14y ago · link · parent

I have now fixed it. But I think there must be an other way to make it safe. Maybe a sandbox

comment 14y ago · link · parent

I have now added some basic macro detection

comment 14y ago · link · parent

Ok added to the todo list

20.

Show HN: Online C/C++ to assembly visualizer [Weekend Project](assembly.ynh.io ↗)

149 points · by ynh · 14y ago · 44 comments

comment 14y ago · link · parent

The software also supports Amazon SES

comment 14y ago · link · parent

From my point of view doing it manually is still the best option. Because know what and how you are implementing the design, this will save you a lot of energy fixing or debugging things. I personally just use PHPStorm to edit and manage my files.

comment 14y ago · link · parent

I make a little over 600$ selling a Newsletter script on Codecanyon http://codecanyon.net/item/newsletter-mailer-v13/149365

Currently I am planing a SaaS Newsletter Mailer.

comment 14y ago · link · parent

Great Book