Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getBookData = async (id) => { | |
const book = await getBookById(id); | |
const [reviews, author, sellers] = await Promise.all([ | |
getReviewsByBookId(book.id), | |
getAuthorById(book.authorId), | |
getSellersByBookId(book.id), | |
]); | |
return { ...book, reviews, author, sellers }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getBookData = async (id) => { | |
const book = await getBookById(id); | |
const reviews = await getReviewsByBookId(book.id); | |
const author = await getAuthorById(book.authorId); | |
const sellers = await getSellersByBookId(book.id); | |
return { ...book, reviews, author, sellers }; | |
}; |
I hereby claim:
- I am leorcvargas on github.
- I am leorcvargas (https://keybase.io/leorcvargas) on keybase.
- I have a public key ASCMR2CESVyXBEbaBiY_eL2QhZqZIGrAIkJeJklSBe-jrwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int sizeX; | |
int sizeY; | |
char linha[50]; | |
FILE *fp; | |
fp = fopen("img.txt", "r"); | |
if (fp == NULL) | |
{ | |
perror("Read error"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
void hanoi(int disco, char orig, char dest, char aux) { | |
if (disco == 1) { | |
printf("Move disco %d de %c para %c\n", disco, orig, dest); | |
} else { | |
hanoi(disco - 1, orig, aux, dest); |