Skip to content

Instantly share code, notes, and snippets.

View leorcvargas's full-sized avatar
🎯
Studying

Leonardo Vargas leorcvargas

🎯
Studying
View GitHub Profile
@leorcvargas
leorcvargas / rearct-native-app-in-wsl2.md
Created March 1, 2021 20:42 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2
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 };
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 };
};

Keybase proof

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:

int sizeX;
int sizeY;
char linha[50];
FILE *fp;
fp = fopen("img.txt", "r");
if (fp == NULL)
{
perror("Read error");
#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);