jonathanleane's comments

jonathanleane | 9 months ago | on: Show HN: Partycles – Zero-dependency React animations library with 11 effects

Hey HN! I built Partycles because I needed lightweight celebration animations for a React project and couldn't find anything that wasn't bloated with dependencies.

It's just one hook - useReward() - that gives you 11 different particle effects: confetti, fireworks, sparkles, hearts, stars, bubbles, snow, emoji, coins, lightning, and flower petals. The whole thing is under 10KB gzipped with zero dependencies.

Demo: https://jonathanleane.github.io/partycles

The library is MIT licensed and on GitHub. Would love contributions - especially new animation types or performance improvements. The codebase is pretty straightforward, each animation is its own module.

I'm using it in production for success notifications and user achievements. Works great on mobile too.

Tech: TypeScript, React 16.8+, rollup for bundling. No canvas - just DOM elements with CSS transforms, which keeps it simple and performant.

Happy to answer any questions!

jonathanleane | 1 year ago | on: Nellie Bly

An amazing women with some... strange?... romantic preferences:

"In 1895, Bly married millionaire manufacturer Robert Seaman. Bly was 31 and Seaman was 73 when they married. Due to her husband's failing health, she left journalism and succeeded her husband as head of the Iron Clad Manufacturing Co., which made steel containers such as milk cans and boilers. Seaman died in 1904."

You can see more about her asylum expose here: https://blogs.loc.gov/headlinesandheroes/2022/11/nellie-bly-...

EDIT: Even better, the full book: https://digital.library.upenn.edu/women/bly/madhouse/madhous...

jonathanleane | 1 year ago | on: QwQ: Alibaba's O1-like reasoning LLM

Interestingly, it failed today's NY Times Connections while 01-preview nailed it.

The prompt if anyone wants to try it:

• ENDEAVOR • CURB • NATIONAL • BOARDWALK • HERTZ • TWIN • MOLE • ENTERPRISE • SILICON • PROJECT • TIGER • VOLT • GAME • RAY • SECOND • VENTURE

Its a game of NY Times connections. You need to make 4 groups of 4 words. Can you do it?

jonathanleane | 1 year ago | on: Vernor Vinge has died

This guy was one of the greats. A deepness in the sky (the sequel) is one of my favourite sci fi books of all time, and even better than Fire upon the deep imo.

jonathanleane | 3 years ago | on: ACCC: Airbnb allegedly misled Australians about accommodation prices

Airbnb used to be my go-to, but I've since mostly returned to more conventional hotel booking sites.

Have had numerous experiences where hosts have had to 'sneak' me in because their building banned short term rentals. None of this was disclosed in advance, and no doubt it's in Airbnb's best interests to look the other way.

As others have mentioned, there's often not much of a price differential anymore, and hotels typically have their shit together way more than the average Airbnb host.

jonathanleane | 4 years ago | on: Ask HN: What's a product you wish more people knew about?

Waterpik, or some kind of analogous water flossing device. It's probably a sign of getting old, but I'm unironically excited about this purchase, even months after actually buying it.

I could basically never be bothered to floss the conventional way, but water flossing has become part of my nightly routine.

The amount of gunk that comes out from between your teeth even after brushing is pretty staggering.

jonathanleane | 4 years ago | on: Ask HN: Post Burnout Ideas

I think so, yeah. Aside from not listening to the obvious warning signs (insomnia, anxiety, depression, increased frequency of physical illness, etc.), there were definitely other red flags.

I think my biggest since issue was - and probably continues to be - very poor work/life balance (no hobbies, basically no social life outside of work, etc). Obviously it's hard to disentangle cause and effect, but I suspect a prerequisite for getting burnout is having a mania or hyper-fixation on work.

jonathanleane | 4 years ago | on: Ask HN: Post Burnout Ideas

Was tempted to make a throwaway account for this, but what the hell, burnout is really nothing to be ashamed of.

I'm in a somewhat similar situation to you, but replace the 3 years with 10 years. I had many periods of 'minor' burnout along the way that I ignored or ploughed through, which in hindsight was a pretty big mistake.

Around August last year I just couldn't continue. I wasn't sleeping, I was frequently run down, and I was self-medicating more and more with drugs and alcohol. It eventually got to the point where simply opening my laptop would elicit a fight or flight response.

I was lucky enough to be in a secure enough financial situation to largely take 6 months off. If you're in a position to do this, I highly recommend it.

I uninstalled gmail, slack, etc. from my phone. I considered getting a dumb phone, but settled for turning off push notifications for everything instead. I went away with my girlfriend for a week and left all my tech at home except for my kindle (literally the first time I've been disconnected for more than a couple of days in probably 20 years). I exercised as much as possible and spent time in nature going for walks, etc.

I've been back at it part time for the last few months. Gradually I felt the feelings of burnout being replaced with feelings of boredom, which is hopefully my brain's way of saying that it's starting to repair itself and ready to slowly return to work.

I'm still nowhere near back to peak productivity, but I'm starting to come to terms with the fact that I may never get back there. I'm 36 and probably would have dropped dead of overwork by 50 if I kept up the tempo of the last 10 years anyway.

I'm not 'cured' by any means, but I believe things are slowly getting better.

My advice to you is to be kind and patient with yourself. Try not to stress about not having a side-project, and instead just focus on self-care for a while. Someone posted this on HN a few weeks back and it really hit close to home for me: http://www.robinhobb.com/blog/posts/38429

page 1