Skip Navigation
Posts
2
Comments
344
Joined
2 yr. ago
  • How could a vehicle that may not disengage the accelerator when the brake is applied be allowed on the road????? And who at Tesla thought this was a perfectly fine feature to have?

  • He's dumber than most people can imagine. Jack, Ted, and Bobby might have been morally bankrupt but they weren't stupid. Something went seriously wrong with this one.

  • There's nothing in it for Trump. If he can't personally profit, it's a low-priority issue not worth spending effort on.

  • The "intense anger" tells you this is absolutely the right thing to do.

  • Well, that settles that, doesn't it?

    SPOILER: It does not.

  • IIRC, people were slapping five (and then ten) in the 60s. As with a lot of cultural things, black people were doing it first.

  • It works for me.

  • We were halfway there a long time ago. Now we're all the way there, with concentration camps and people being snatched off the streets by masked men. This is the kind of stuff we used to condemn (despite sometime clandestinely supporting in the name of "anti-communism").

  • Not to worry, he'll just replace those expensive professional miners with free slave labor. Salvadoran gulags can only hold so many, after all.

  • The more incoherent and buzzword-filled the better. It's like they don't listen to themselves speak.

  • Does anyone have the sound on these days? My volume is set to 0 most of the time, I have no idea what any of the sounds are now.

  • This is what happens when all some of the pedophiles get removed from the priesthood.

  • Sucks for fans but anything that costs Besos millions is fine by me.

  • SCOTUS says anything he does as an "official act" is legal, ergo this is not a crime.

  • Damn, even REI. The disappointments won't stop coming.

  • ObsidianMD @lemmy.world
    TomMasz @lemmy.world

    I want to be able to create new notes based on specific format

    i have a format for note-taking in meetings that I currently copy/paste to use in new notes. I would like to be able to create a new, empty, note based on that format so I can skip the copy/paste step. I have Templater but it seems far more complex than what I need. Any suggestions?

    JavaScript @programming.dev
    TomMasz @lemmy.world

    Trying to get and use JSON from a URL

    Absolute JS newbie here. I am able to use fetch() to get JSON from a URL but I can't figure out how to do anything with that JSON outside of the fetch itself.

    Here's my code (API key and GPS redacted):

     undefined
        
    fetch('https://www.airnowapi.org/aq/forecast/latLong/?format=application/json&latitude=X&longitude=X&distance=50&API_KEY=X')
            .then(result => result.json())
            .then((out2) => {     
                console.log('Fetch Output: ', out2);
            }).catch(err => console.error(err)); 
    
    
      

    Any code that references out2 other than console.log() call gives an error that out2 is undefined. How do I get access to out2 anywhere else?