HackerTrans
トップ新着トレンドコメント過去質問紹介求人

michaelbryzek

no profile record

投稿

Show HN: Building a 2D Platformer Video Game on an Oscilloscope

cameronbryzek.com
3 ポイント·投稿者 michaelbryzek·7 か月前·0 コメント

コメント

michaelbryzek
·7 か月前·議論
Ruby script on my PATH to use sips to convert to jpeg. I can cd to the directory and run "convert.rb" - will find all HEIC files and convert

    #!/usr/bin/env ruby
    
    def run(extension)
      files = `find . -type f -name "\*.#    {extension}"`.split("\n")
      files.each do |f|
        jpg = f.sub(/\.#{extension}/i, '.jpg')
        if !File.exist?(jpg)
          cmd = "sips -s format jpeg '#{f}' --out '#{jpg}'"
          `#{cmd}`
          puts cmd
        end
      end
    end

    run("HEIC")
    run("heic")
michaelbryzek
·7 か月前·議論
Tubeless now - no flats in 5 years :)
michaelbryzek
·7 か月前·議論
3-day bike trip, NYC to Provincetown. On day two, our group split up and I was riding with a close friend. 15 miles into the 100-mile day, we got our 3rd flat. We had only carried 2 spare tubes.

We had barely pulled our bikes onto the sidewalk when a woman in a sedan slowed down to ask if we needed help. We said yes and she quickly pulled over. We piled our bikes into her car, trunk open, and she drove us to the nearest bike shop.

Turns out her family member ran the shop.

Truly saved our day. We made it to Provincetown and 15 years later still remember her so fondly and are so thankful!
michaelbryzek
·9 か月前·議論
Thanks for mentioning Google Takeout - was not aware of that service and found it very useful