Skip to content

Instantly share code, notes, and snippets.

View diego3g's full-sized avatar
🚀
Launching a rocket

Diego Fernandes diego3g

🚀
Launching a rocket
View GitHub Profile
const teste = Teste();
import { spawn } from 'child_process';
spawn("C:/Program Files/Donkey Kong/game.exe")
import Ws from '@adonisjs/websocket-client';
import { toast } from 'react-toastify';
import { eventChannel } from 'redux-saga';
import { all, takeLatest, call, take, put, select } from 'redux-saga/effects';
import { history } from '../../../services';
import {
subscribeUserRequest,
subscribeChatRequest,
subscribeChatSuccess,
@diego3g
diego3g / metatags.html
Created September 28, 2020 21:57
Meta tags do curso de Next.js
<meta httpEquiv="x-ua-compatible" content="IE=edge,chrome=1" />
<meta name="MobileOptimized" content="320" />
<meta name="HandheldFriendly" content="True" />
<meta name="theme-color" content="#121214" />
<meta name="msapplication-TileColor" content="#121214" />
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="google" content="notranslate" />
<meta property="og:title" content={pageTitle} />
<meta property="og:description" content={description} />
@diego3g
diego3g / server.json
Created September 28, 2020 21:56
Server do curso de Next.js
{
"categories": [
{ "id": "camisetas", "title": "Camisetas" },
{ "id": "calcas", "title": "Calças" }
],
"products": [
{ "id": 1, "title": "Camiseta Front-end", "price": 79.9, "category_id": "camisetas", "slug": "camiseta-front-ends"},
{ "id": 2, "title": "Camiseta CSharpolin", "price": 69.9, "category_id": "camisetas", "slug": "camiseta-csharpolin"},
{ "id": 3, "title": "Calça preta back-end", "price": 129.9, "category_id": "calcas", "slug": "calca-preta-back-end"},
{ "id": 4, "title": "Calça azul do React", "price": 109.9, "category_id": "calcas", "slug": "calca-azul-react"}
return (
<Flex
as="main"
height="100vh"
justifyContent="center"
alignItems="center"
>
<Flex
as="form"
onSubmit={handleSignUpToNewsletter}
name: CI
on:
push:
branches: [master]
env:
BUCKET: reactdeploy.getomni.dev
jobs:
.DayPicker {
background: #28262e;
border-radius: 10px;
}
.DayPicker-wrapper {
padding-bottom: 0;
}
.DayPicker,
const { transactions, balance } = response.data;
const newTransactions = transactions.map(transaction => {
return {
...transaction,
formattedValue: formatValue(transaction.value),
// outros campos aqui
}
});
import React, {
createContext,
useState,
useCallback,
useContext,
useEffect,
} from 'react';
import AsyncStorage, {
useAsyncStorage,