TomMasz

joined 2 years ago
[–] TomMasz 3 points 2 days ago

I can assure you he doesn't feel "slammed".

[–] TomMasz 8 points 2 days ago

Now your mom has to turn her oxygen off before she can light up.

[–] TomMasz 7 points 2 days ago

Texas Instruments of mass destruction.

[–] TomMasz 5 points 4 days ago (4 children)

Geez, the Greeks are a surly bunch.

[–] TomMasz 33 points 6 days ago (6 children)

Does he ever shut up?

[–] TomMasz 1 points 1 week ago

Symbolic gesture.

[–] TomMasz 10 points 1 week ago

I grew up in Nassau County. It (and the rest of Long Island) are way more conservative than you'd expect given the proximity to NYC. But that's not unusual in New York, most cities are staunchly blue, but the suburbs and rural areas red.

[–] TomMasz 17 points 1 week ago

I almost forgot this was still on TV. It used to be one of my favorite shows but I haven't watched an episode in years.

[–] TomMasz 3 points 1 week ago (1 children)

Where has The Verge been this year that this is news?

[–] TomMasz 16 points 1 week ago

Ukraine is right to worry about the end of US aid. TFG is definitely not on their side.

[–] TomMasz 61 points 1 week ago (4 children)

Twitter is not a public service/utility. You shouldn't rely on it for important, factual informatilon.

[–] TomMasz 11 points 1 week ago

Phony Stark, I don’t like using Elmo. I love the real Elmo.

 

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?

67
Ride paranoid! (lemmy.world)
submitted 1 year ago by TomMasz to c/bikes
 
 

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):

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?

view more: next ›