HackerTrans
TopNewTrendsCommentsPastAskShowJobs

michaelbryzek

no profile record

Submissions

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

cameronbryzek.com
3 points·by michaelbryzek·7 месяцев назад·0 comments

comments

michaelbryzek
·7 месяцев назад·discuss
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 месяцев назад·discuss
Tubeless now - no flats in 5 years :)
michaelbryzek
·7 месяцев назад·discuss
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 месяцев назад·discuss
Thanks for mentioning Google Takeout - was not aware of that service and found it very useful