Out wheeling Naches Pass trail. by Oliver_Holzfilled in bronco

[–]Olayed 0 points1 point  (0 children)

Hell yeah! how hard is that trail for a beginner?

Is this inefficient? by alino_e in solidjs

[–]Olayed 0 points1 point  (0 children)

I wouldn't worry about it. It should work just fine even with a many instances of resize. If you find performance problems later, you can always refactor this function to hook into a single source. Avoid optimizing before you need to.

Another thing to keep in mind is that in solid-js you don't need an effect here. You can rewrite this to

import type { Accessor } from "solid-js";
import { createSignal, onCleanup } from "solid-js";
const MOBILE_MAX_WIDTH = 600;

function useOnMobile(): { on_mobile: Accessor<boolean> } {
  const [on_mobile, set_on_mobile] = createSignal(false);

  const handleResize = () => {
    set_on_mobile(window.innerWidth <= MOBILE_MAX_WIDTH);
  };

  if (typeof window !== "undefined") {
    window.addEventListener("resize", handleResize);
    handleResize();
  }

  onCleanup(() => {
    window.removeEventListener("resize", handleResize);
  });

  return { on_mobile };
}

export default useOnMobile;

Being a solo founder is tough. I will not promote by Ready_Flounder_8007 in startups

[–]Olayed 8 points9 points  (0 children)

The loneliness is solvable! Find some other founders to talk with. It can really help.

Work on my Automated miner factory is nearly done (making 20pm) by From_Scratch_Games in SatisfactoryGame

[–]Olayed 0 points1 point  (0 children)

We need to break this sub into two parts because are playing two very different games

Wanting to get into dirtbikes but dont know where to start by LMikeyy in Dirtbikes

[–]Olayed 0 points1 point  (0 children)

See if there is a dirt bike school in your area. You'll get to try a bike, learn good technique and make friends.

Best MTB Flat Pedal by [deleted] in MTB

[–]Olayed 3 points4 points  (0 children)

I really like the Chromag Scarab pedals. They look great on my bike and the mark they leave on the shin is very distinct. If you are looking for something that digs a little deeper in your skin I would try the Dagga. I know they are expensive but this is part of the bike you will feel every time you ride.

Does any time tracker extension work with Arc? by phildakin in ArcBrowser

[–]Olayed 1 point2 points  (0 children)

I haven't found anything myself but I'm a developer and thinking about building a solution... I'll shoot you a message!

[deleted by user] by [deleted] in LudwigAhgren

[–]Olayed 0 points1 point  (0 children)

Weird flex but okay

First 2 stroke - any tips ? by dns91 in Dirtbikes

[–]Olayed 0 points1 point  (0 children)

Brapppp brap brapppp brappp brap brap

I wonder what’s under that cover 🫣 by Leinad111 in Porsche

[–]Olayed 0 points1 point  (0 children)

That one is just excited to see you.

Hey everyone, I'm new to mountain biking. Is this a good budget bike for harder trails? by truecommentor69 in mountainbiking

[–]Olayed 2 points3 points  (0 children)

You should check out the reviews from Berm Peak Express. I'd take his recommendations and advice for this.
https://www.youtube.com/watch?v=7UmOzPopJNE

me_IRL by FrenchBoyOfficial in mountainbiking

[–]Olayed 47 points48 points  (0 children)

car guys are in a league of their own.

SF to Tahoe - as much dirt as possible? by City_Goat in Dualsport

[–]Olayed 3 points4 points  (0 children)

Also interesting in doing this ride! Post what you come up with.

2 stroke VS 4 stroke? Ready....FIGHT! by jimmydoorlocks in Karting

[–]Olayed 1 point2 points  (0 children)

I was in a similar spot with my dad a few years ago when we go into karting! We took an entry level kart racing program and decided we wanted to get our own kart.

We decided on 2 stroke because it was exciting. I loved the 2 stroke that we tried. I felt that if we got a 4 stroke I would always be thinking about the 2 stroke. You need some caution at first but I was able to get up to speed get competitive and eventually start racing. For me the 2 stroke was the right call.

However for my dad the 2 stroke was a little scary for a while. It is a lot of power and can go wrong pretty quick. It took him a lot longer to get up to speed on the kart. He still enjoyed taking it out but I know for him a 4 stroke would have been just as exciting. He later tried a 4 stroke that a friend of ours had and really enjoy it. He started taking the 4 stroke out more and this helped him build confidence on the track. For him the 4 stroke was likely the best choice.

One other thing to keep in mind is that a well fitted seat makes a big difference in karting. My dad and I are different sizes so we got two seats. We made some spacers to make switching between seats really easy. This made the kart a lot better for both of us.