Skip to content

Instantly share code, notes, and snippets.

Avatar
🖥️
creating bugs

Gabrielle Lima gabizinha12

🖥️
creating bugs
View GitHub Profile
@gabizinha12
gabizinha12 / dicas-kafka-wsl.MD
Created Sep 5, 2021 — forked from ermogenes/dicas-kafka-wsl.MD
Dicas de Kafka no Windows com WSL2
View dicas-kafka-wsl.MD

Dicas de Kafka no Windows com WSL2

Pré-requisitos:

  • Windows com WSL versão 2.
  • Uma instância de Linux no WSL (eu usei Ubuntu-20.04 da Microsoft Store).

Instalando o Kafka

Em sua instância Linux, instale o OpenJDK 8:

@gabizinha12
gabizinha12 / app.js
Created May 19, 2021 — forked from stongo/app.js
Joi validation in a Mongoose model
View app.js
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var db = mongoose.connection;
db.on('error', function() {
return console.error.bind(console, 'connection error: ');
});
View livros.md

Meus livro 2018

Este ano nao estou lendo nada portanto criei esse markdown pra organizar e voltar meu habito de leitura e parar de me tornar uma acumuladora igual eu fui em 2017

Done

  • O ciclo da procrastinacao
  • Apologia de socrátes - Platão
  • Biblia satanica
  • A cidade da luz - Asano Inio
  • Kafka a beira mar - Haruki Murakami
  • Adventure Time Encyclopaedia
View testes.log
$ yarn test
yarn run v1.22.5
$ jest
FAIL src/__tests__/likes.spec.js
● Likes › should be able to give a like to the repository
expect(received).toMatchObject(expected)
Matcher error: received value must be a non-null object
View erro.log
$ npm test
> desafio@1.0.0 test D:\projetos\middlewares-ignite
> jest
FAIL src/__tests__/middlewares/checksTodoExists.spec.js
● Test suite failed to run
SyntaxError: D:\Projetos\middlewares-ignite\src\index.js: Identifier 'user' has already been declared (14:8)
View api.yaml
swagger: '2.0'
info:
description: This is a simple API
version: 1.0.0
title: VUTTR
# put the contact info for your development or API team
contact:
email: gabrielle.clima23@gmail.com
license:
View tela.ejs
<%- contentFor('HeaderCss') %>
<%- contentFor('title') %> Cadastrar grupo
<%- contentFor('breadcrumb') %>
<div class="col-sm-8">
<div class="page-title-box">
<h4 class="font-size-18">Cadastrar grupo</h4>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">
<a href="javascript: void(0);">Página Inicial</a>
</li>
View time.js
<style>
p {
display: inline;
font-size: 40px;
margin-top: 0px;
}
</style>
</head>
<body>
<p id="days"></p>
View calc.js
import React from "react";
import styled from "styled-components";
import Input from "../components/Input";
import Container from "../components/Container";
import Select from "../components/Select";
const Title = styled.h1`
font-weight: bold;
color: black;
display: block;
View main.js
import "../App.css";
import React, { Component } from "react";
class Form extends Component {
constructor(props) {
super(props);
this.initialState = {
origin: "",
destiny: "",
time: "",