Hacker Newsnew | past | comments | ask | show | jobs | submit | bradly's commentslogin

I’ve had swiftbestpractices.com forever and still haven’t done anything with it. Meanwhile I’ve been going ham on my latest purchase of myfacespacebook.com. It’s weird the things that actually motivate us.

If anyone would like to add some Christmas lights to their site I made a little web component to add a little cheer to any site.

https://github.com/bradly/christmas-lights.js

You can see it in action at https://bradlyfeeley.com and https://birdymusic.com


Dang… I don’t even use React and it still brings down my sites. Good beats I guess.


I recently implemented dark/light mode for the first time and was really surprised to find that in order to add a toggle I had to duplicate a both of vars/styles and use JavaScript. I'm looking forward to not having to deal with that cruft in the future.


You can do without javascript. Checkbox `:checked` + `label` trick for toggling states still works.

See: https://codepen.io/abdus/pen/bNpQqXv


Thanks, I’ll check this out!


Here's a version with a 3-way theme selector (light / system / dark) using radio inputs.

https://codepen.io/abdus/pen/yyOQpvE


Would be interesting to hear from Cloudflare the extent of exploitation before today. I'm assuming they can see if/when this started being exploited.


One of my best and most productive work situations was remote with a week[0] together every quarter. Key to this was scheduling the next trip while we were together to make sure it was on the books. We got to meet new team members, share some meals together, work through new architecture designs with a whiteboard, and plan. Not much got done during that week, but we sure got a lot done each quarter.

[0]: This was actually Monday-Thursday with travel on Friday


This sounds like what PI planning is imagined to be in "safe".


That does make sense given the prompt "What is the current year and is 2026 next year?" provides the correct answer.


Thanks for sharing. I've been on a path of algo music with JavaScript (I also do not enjoy JavaScript) and have mostly just guess-and-checked my way through it. I'm going to work through this as my advent of code project.

Yesterday I put up a little dictionary of synth sounds that I'm building out to help me on my journey (https://synthrecipes.org). The goal to be able to export any particular sound in a format for different live coding environments. Sounds are defined in a JSON format like https://synthrecipes.org/recipes/acid-bass.json. I'll open source it today so other can submit sounds.

--

Edit: I've open sourced the repo so others can improve existing sounds and add new ones. https://github.com/bradly/synth-recipes/tree/main


That's really cool.

Music is funny. I played the closed hi-hat sound (https://synthrecipes.org/#closed-hi-hat) a couple of times and my brain instantly started playing AC/DC's, Back in Black. I probably haven't listened to that song in 15 years and now I'm shuffling AC/DC on Spotify.

Also, the "Sub bass" link might be broken:

https://synthrecipes.org/#Sub-bass


> Also, the "Sub bass" link might be broken

Thank you! It is now fixed <3



I did not! Very cool. Thanks for sharing. Is there a way to see the source for the sounds?


Great sound!

This Sonic Pi example really blew my mind when I first heard it. Such a rich sound out of three notes.

    use_synth :hollow
    with_fx :reverb, mix: 0.7 do
    
      live_loop :note1 do
        play choose([:D4,:E4]), attack: 6, release: 6
        sleep 8
      end
    
      live_loop :note2 do
        play choose([:Fs4,:G4]), attack: 4, release: 5
        sleep 10
      end
    
      live_loop :note3 do
        play choose([:A4, :Cs5]), attack: 5, release: 5
        sleep 11
      end
    end


A lot of great recs in this thread, but I'll a couple others I didn't see listed yet:

Mort Garson: Mother Earth's Plantasia

Hiroshi Yoshimura: Surround

Satoshi Ashikawa: Still Way (Wave Notation 2)

Shameless plug... Search BirdyMusic.com in Spotify/Apple Music/YouTube Music to hear some ambient music algo generated based on realtime Birdnet detections and weather in my backyard.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: