The best Hacker News stories from Show from the past day
Latest posts:
Show HN: Tree-view visualization of threaded Twitter conversations
Show HN: Tree-view visualization of threaded Twitter conversations
Show HN: Flightlist – Find the cheapest one-way flights in the world
Show HN: Flightlist – Find the cheapest one-way flights in the world
Show HN: A stab at building my own string diffing library
Took a stab at building my own string diffing JS package.<p>I built an interactive demo for TypeIt’s website (https://typeitjs.com/build-your-own) a while back. The approach I took to handle user input necessitated a way to calculate the difference between the versions of a user’s text input.<p>I searched around for a package to help me out and found a couple of good ones (like fast-diff), but I either didn’t really like their API or didn’t want to take on a huge new dependency. Instead, I thought I’d give it a shot myself (famous last words).<p>I dove into it having no real formal knowledge of the algorithmic approaches to string diffing, and so things got frustrating real fast. But then I figured out a way to build it out using JavaScript symbols to link characters that helped ease the complexity a ton. It all resulted in “striff,” which comes in at just over 600 bytes gzipped, and that I’ve been using in production for a couple of months now.<p>It’s a little weird looking back now, because I don’t think I’d recommend someone taking the same path in building your own, but at the same time, there’s an immense satisfaction knowing I was able to figure out a pretty reliable approach. Check it out:<p>https://github.com/alexmacarthur/striff
Show HN: A stab at building my own string diffing library
Took a stab at building my own string diffing JS package.<p>I built an interactive demo for TypeIt’s website (https://typeitjs.com/build-your-own) a while back. The approach I took to handle user input necessitated a way to calculate the difference between the versions of a user’s text input.<p>I searched around for a package to help me out and found a couple of good ones (like fast-diff), but I either didn’t really like their API or didn’t want to take on a huge new dependency. Instead, I thought I’d give it a shot myself (famous last words).<p>I dove into it having no real formal knowledge of the algorithmic approaches to string diffing, and so things got frustrating real fast. But then I figured out a way to build it out using JavaScript symbols to link characters that helped ease the complexity a ton. It all resulted in “striff,” which comes in at just over 600 bytes gzipped, and that I’ve been using in production for a couple of months now.<p>It’s a little weird looking back now, because I don’t think I’d recommend someone taking the same path in building your own, but at the same time, there’s an immense satisfaction knowing I was able to figure out a pretty reliable approach. Check it out:<p>https://github.com/alexmacarthur/striff
Show HN: A stab at building my own string diffing library
Took a stab at building my own string diffing JS package.<p>I built an interactive demo for TypeIt’s website (https://typeitjs.com/build-your-own) a while back. The approach I took to handle user input necessitated a way to calculate the difference between the versions of a user’s text input.<p>I searched around for a package to help me out and found a couple of good ones (like fast-diff), but I either didn’t really like their API or didn’t want to take on a huge new dependency. Instead, I thought I’d give it a shot myself (famous last words).<p>I dove into it having no real formal knowledge of the algorithmic approaches to string diffing, and so things got frustrating real fast. But then I figured out a way to build it out using JavaScript symbols to link characters that helped ease the complexity a ton. It all resulted in “striff,” which comes in at just over 600 bytes gzipped, and that I’ve been using in production for a couple of months now.<p>It’s a little weird looking back now, because I don’t think I’d recommend someone taking the same path in building your own, but at the same time, there’s an immense satisfaction knowing I was able to figure out a pretty reliable approach. Check it out:<p>https://github.com/alexmacarthur/striff
Show HN: Privaxy – Adblocking / tracker blocking by MITMing HTTPS traffic
Show HN: Privaxy – Adblocking / tracker blocking by MITMing HTTPS traffic
Show HN: Privaxy – Adblocking / tracker blocking by MITMing HTTPS traffic
HelloInbox – Ultimate email deliverability checklist and toolkit
Show HN: Meme creator with agile/scrum based templates
Show HN: Meme creator with agile/scrum based templates
Show HN: A site that puts in a referral for you for your dream job
Show HN: A site that puts in a referral for you for your dream job
Show HN: A site that puts in a referral for you for your dream job
120k SVG logos, also available in PNG format
Show HN: Natural Language Processing Demystified (Part One)
Hi HN:<p>I published part one of my free NLP course. The course is intended to help anyone who knows Python and a bit of math go from the very basics all the way to today's mainstream models and frameworks.<p>I strive to balance theory and practice and so every module consists of detailed explanations and slides along with a Colab notebook (in most modules) putting the theory into practice.<p>In part one, we cover text preprocessing, how to turn text into numbers, and multiple ways to classify and search text using "classical" approaches. And along the way, we'll pick up useful bits on how to use tools such as spaCy and scikit-learn.<p>No registration required: <a href="https://www.nlpdemystified.org/" rel="nofollow">https://www.nlpdemystified.org/</a>
Show HN: Natural Language Processing Demystified (Part One)
Hi HN:<p>I published part one of my free NLP course. The course is intended to help anyone who knows Python and a bit of math go from the very basics all the way to today's mainstream models and frameworks.<p>I strive to balance theory and practice and so every module consists of detailed explanations and slides along with a Colab notebook (in most modules) putting the theory into practice.<p>In part one, we cover text preprocessing, how to turn text into numbers, and multiple ways to classify and search text using "classical" approaches. And along the way, we'll pick up useful bits on how to use tools such as spaCy and scikit-learn.<p>No registration required: <a href="https://www.nlpdemystified.org/" rel="nofollow">https://www.nlpdemystified.org/</a>
Show HN: Natural Language Processing Demystified (Part One)
Hi HN:<p>I published part one of my free NLP course. The course is intended to help anyone who knows Python and a bit of math go from the very basics all the way to today's mainstream models and frameworks.<p>I strive to balance theory and practice and so every module consists of detailed explanations and slides along with a Colab notebook (in most modules) putting the theory into practice.<p>In part one, we cover text preprocessing, how to turn text into numbers, and multiple ways to classify and search text using "classical" approaches. And along the way, we'll pick up useful bits on how to use tools such as spaCy and scikit-learn.<p>No registration required: <a href="https://www.nlpdemystified.org/" rel="nofollow">https://www.nlpdemystified.org/</a>