Skip to content

Instantly share code, notes, and snippets.

View juunegreiros's full-sized avatar

Juliana Negreiros juunegreiros

View GitHub Profile
[
{
"pais":"pais1",
"cep":"11111",
"rua":"rua1",
"numero":"1",
"bairro":"bairro1",
"estado":"estado1",
"complemento":"complemento1"
},
@juunegreiros
juunegreiros / Button.tsx
Last active August 2, 2022 21:10
Styled component example
import './Button.scss';
import { ButtonRed2 } from './Button.styles'
export type ButtonTypes = {
variant?: string;
children: React.ReactNode;
onClick: React.MouseEventHandler;
type?: 'button' | 'submit';
};
// valor
let nome = 'ju'
let nome2 = nome
nome = 'juliana'
console.log(nome2)
// ju
// memória
@juunegreiros
juunegreiros / db.json
Last active March 30, 2022 21:09
Alura Challenge 3 - dive coding
{
"categories": [
{
"id": 1,
"name": "Front-End",
"description": "HTML, CSS, React, Angular, JavaScript, jQuery e mais..."
},
{
"id": 1,
"name": "Back-End",
@juunegreiros
juunegreiros / custom.js
Created October 12, 2021 20:41
Monitoria 8
// depende da ordem em que é chamado
// começa com use e pode usar outros hooks
import { useState, useEffect } from 'react';
function useFriendStatus(friendID) {
const [isOnline, setIsOnline] = useState(null);
useEffect(() => {
function handleStatusChange(status) {
@juunegreiros
juunegreiros / strategy.js
Created October 5, 2021 21:08
Monitoria
const lugares = {
casa: () => console.log('casa'),
escola: () => console.log('escola'),
}
const lugarAtual = 'casa'
lugares[lugarAtual]
if (lugarAtual == 'casa') {
@juunegreiros
juunegreiros / AluraCommons.js
Last active April 30, 2023 15:47
Aula 1 - Imersão React 3
import React from 'react';
import styled, { css } from 'styled-components';
import NextLink from 'next/link';
const BASE_URL = 'http://alurakut.vercel.app/';
const v = '1';
function Link({ href, children, ...props }) {
return (
const matrizInimigoGrande = [
[0,0],
[400,0],
[800,0],
[1200,0],
[1600,0],
[0,400],
[400,400],
[800,400],
[1200, 400],
@juunegreiros
juunegreiros / matrizInimigo.js
Created June 23, 2020 10:41
Matrizes Imersão GameDev Javascript
const matrizInimigo = [
[0, 0],
[104, 0],
[208, 0],
[312, 0],
[0, 104],
[104, 104],
[208, 104],
[312, 104],
[0, 208],
@juunegreiros
juunegreiros / load.json
Last active March 9, 2018 17:47
PRE-LOADER
{"v":"5.1.8","fr":60,"ip":46,"op":92,"w":1920,"h":1080,"nm":"Transicao Tutorial_003","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 21","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[960,540,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[-105.51,105.51,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"Turbulent Displace","np":16,"mn":"ADBE Turbulent Displace","ix":1,"en":1,"ef":[{"ty":7,"nm":"Displacement","mn":"ADBE Turbulent Displace-0001","ix":1,"v":{"a":0,"k":1,"ix":1}},{"ty":0,"nm":"Amount","mn":"ADBE Turbulent Displace-0002","ix":2,"v":{"a":0,"k":96,"ix":2}},{"ty":0,"nm":"Size","mn":"ADBE Turbulent Displace-0003","ix":3,"v":{"a":0,"k":78,"ix":3}},{"ty":3,"nm":"Offset (Turbulence)","mn":"ADBE Turbulent Displace-0004","ix":4,"v":{"a":0,"k":[1235.2,617.76],"ix":4}},{"ty":0,"nm":"Complexity","mn":"ADBE Turbulent Displace-0005","ix":5,"v":{"a":0,"k":1,"ix":5}},{"ty":0,"nm":"Evolution","mn":"ADBE Turbulent Displace-0006","ix":6,"v":{"a":0,"k":52,"