Skip to content

Instantly share code, notes, and snippets.

View wwwjsw's full-sized avatar
:octocat:
Working from home since 2019

guilherme wwwjsw

:octocat:
Working from home since 2019
  • Brazil
  • 03:46 (UTC -03:00)
View GitHub Profile
@wwwjsw
wwwjsw / async-await-fetch-map.js
Created July 22, 2020 02:05 — forked from ericls/async-await-fetch-map.js
async/await with fetch and map
// Use hacker news API as example
async function getData() {
const ids = await (await fetch('https://hacker-news.firebaseio.com/v0/topstories.json')).json()
const data = Promise.all(
ids.map(async (i) => await (await fetch(`https://hacker-news.firebaseio.com/v0/item/${i}.json?print=pretty`)).json())
)
return data
}
getData()
[
{
"id": 11,
"nome": "Café do Brasil",
"regiao": "Minas Gerais",
"avaliacao": 95,
"imagem": "https://picsum.photos/id/42/200/200",
"descricao": "Um café encorpado e aromático, produzido nas montanhas de Minas Gerais."
},
{
[
{
"modalidade": "R",
"descricao": "frete rodoviario",
"cep_inicial": "85806750",
"cep_final": "85806750",
"total": "1",
"peso": "",
"tipo_desconto": "F",
"desconto": "10"
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
{
"code": 200,
"status": "OK",
"data": [
{
"date": "2024-03-03",
"error": true
},
{
"date": "2024-03-04",
{
"code": 200,
"status": "OK",
"data": {
"ranking": [
{
"taskId": 311,
"taskName": "task gerente",
"description": "task gerente",
"legend": "teste",

Cardápio Semanal Ajustado - Emagrecimento + Energia (Alterado)

Legenda de Cores (simulada):
🔵 Pré/Pós-treino | 🟢 Refeições principais | 🟡 Lanches | 🟣 Ceia

Horário Segunda, Quarta, Sexta (Com CrossFit às 5h30) Terça, Quinta, Sábado, Domingo (Sem CrossFit)
🔵 5h00 Pré-Treino 1 banana OU 1 colher (10g) de mel OU 1 fatia de pão integral com 1 colher (15g) de doce de leite
🔵 6h30 Pós-Treino 1 scoop de Whey + 2 colheres (20g) de aveia + 1 fruta (banana ou maçã)

Ementa: Aprendizado de Kotlin Multiplatform (KMP) e Compose Multiplatform (CMP)

Objetivo:
Capacitar desenvolvedores a criar aplicações nativas multiplataforma (Android, iOS, Desktop e Web) usando Kotlin Multiplatform para lógica compartilhada e Compose Multiplatform para UIs declarativas.


Módulo 1: Fundamentos do Kotlin Multiplatform (KMP)

  • Introdução ao KMP:
  • Visão geral, vantagens e casos de uso.