Skip to content

Instantly share code, notes, and snippets.

View eroncardoso88's full-sized avatar
🎯
Focusing

Eron O. eroncardoso88

🎯
Focusing
  • Brazil
View GitHub Profile
@eroncardoso88
eroncardoso88 / cloudSettings
Created June 1, 2020 19:14 — forked from gbrocha/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-01T14:43:49.371Z","extensionVersion":"v3.4.3"}
@eroncardoso88
eroncardoso88 / jsonSample.js
Last active May 24, 2019 13:11
Json data to be accessed
const apiCallArr = [
{"coord":{"lon":-43.21,"lat":-22.9},
"sys":{"type":1,"id":8429,"message":0.0055,"country":"BR","sunrise":1558516909,"sunset":1558556248},
"weather":[{"id":721,"main":"Haze","description":"haze","icon":"50d"}],
"main":{"temp":28.98,"pressure":1013,"humidity":70,"temp_min":28.89,"temp_max":29},
"visibility":5000,
"wind":{"speed":1.5,"deg":40},
"clouds":{"all":20},"dt":1558544075,
"id":3451190,
"name":"Rio de Janeiro"},
@eroncardoso88
eroncardoso88 / searchData.js
Last active May 24, 2019 15:45
Async code getting an undefined result
// final code for openweather.com app
// **********************************
searchData = async () => {
// API call
let data = await fetch(link);
console.log('inside API');
const res = await data.json();
this.parseChecker(res);
};