TomMasz

joined 2 years ago
[–] TomMasz 22 points 7 hours ago

Collaborators.

[–] TomMasz 2 points 1 day ago

Marbury vs. Madison has been maintained by tradition. No one ever imagined a president who would simply ignore it.

[–] TomMasz 16 points 1 day ago

MS: Why won’t people upgrade from Windows 10?

[–] TomMasz 6 points 2 days ago

MIT didn't seem to think it did anything wrong and considered the school to be a neutral participant. I've seen nothing since that would indicate they accept any blame.

[–] TomMasz 27 points 2 days ago (2 children)

This changed a lot of people's perception of MIT, and not for the better.

[–] TomMasz 8 points 2 days ago (1 children)

Drugs are bad, kids. Don’t take drugs. Or at least not the ones he’s taking.

[–] TomMasz 8 points 4 days ago

The only Human Bartender I'd vote for.

[–] TomMasz 23 points 5 days ago

You voted for a guy who said he'd be a dictator. Now he's a dictator doing dictator things. His not doing dictator things would be surprising, not this.

[–] TomMasz 7 points 5 days ago

Fear not! Billionaires are bowing down to Trump.

[–] TomMasz 84 points 5 days ago (7 children)

Another Sinema. The Democrats don't do a very good job of vetting Congressional candidates.

[–] TomMasz 5 points 6 days ago (2 children)

In the end, it's always bees isn't it?

[–] TomMasz 27 points 6 days ago (4 children)

But they give you so many fries!

 

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 ›