Skip to content

Instantly share code, notes, and snippets.

View dheysonalves's full-sized avatar
🧘‍♂️

Dheyson Alves dheysonalves

🧘‍♂️
View GitHub Profile
@dheysonalves
dheysonalves / cardsAnimates.tsx
Created August 11, 2021 04:42
Animated Cards Testing
/* eslint-disable guard-for-in */
/* eslint-disable no-restricted-syntax */
import React, { useState, useCallback } from 'react';
import { useWindowDimensions } from 'react-native';
import { PanGestureHandler } from 'react-native-gesture-handler';
import Animated, {
cancelAnimation,
runOnJS,
scrollTo,
@dheysonalves
dheysonalves / exam.py
Last active June 15, 2021 23:04
Prova da AV2 de Inteligência Artificial
import random
import numpy as np
import math
def generateRandomTarget():
return np.random.random((10))
def generateRandomWeight():
@dheysonalves
dheysonalves / paises.json
Created February 5, 2021 01:49
Lista de Paises - BR
[
{
"ordem": 1,
"nome": "Afeganistão",
"sigla2": "AF",
"sigla3": "AFG",
"codigo": "004"
},
{
"ordem": 2,
@dheysonalves
dheysonalves / profissoesBR.json
Last active February 4, 2021 14:35
Profissoes regulamentadas no Brasil - JSON
[
{
"id": 1,
"name": "Administrador"
},
{
"id": 2,
"name": "Advogado"
},
{
<div class="col-md-4 col-12">
<div class="form-group mb-2">
<label for="cause_bank_identifier">Banco</label>
<select name="bank_identifier" id="bank_identifier" class="form-control @error('bank_identifier') is-invalid @enderror">
<option value="" @if (old('bank_identifier')=="none" ) {{ 'selected' }} @endif>Selecione...</option>
<option value='246' @if (old('bank_identifier')=="246" ) {{ 'selected' }} @endif>Banco ABC Brasil S.A.</option>
<option value='748' @if (old('bank_identifier')=="748" ) {{ 'selected' }} @endif>Banco Cooperativo Sicredi S.A.</option>
<option value='117' @if (old('bank_identifier')=="117" ) {{ 'selected' }} @endif>Advanced Cc Ltda</option>
<
@dheysonalves
dheysonalves / dex.md
Created January 31, 2021 15:30
Task :app:mergeDexDebug FAILED

At Path android/app/build.gradle

defaultConfig { multiDexEnabled true //Add this line }

@dheysonalves
dheysonalves / git-commit-m.md
Created January 27, 2021 09:39 — forked from thammuio/git-commit-m.md
My commit messages.

List of conventional Commit Types and their usage

Commit Type Title Description Emoji
feat Features A new feature
fix Bug Fixes A bug Fix 🐛
docs Documentation Documentation only changes 📚
style Styles Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) 💎

|

@dheysonalves
dheysonalves / Add-ESLint-to-Laravel-Mix.md
Created January 25, 2021 23:34 — forked from EmadAdly/Add-ESLint-to-Laravel-Mix.md
Adding eslint to your Laravel application

1. Add eslint and eslint-loader and eslint-plugin-vue to your projects package.json file

npm i eslint eslint-loader eslint-plugin-vue --save-dev

2. Create a base configuration by --init

@dheysonalves
dheysonalves / error.md
Created January 25, 2021 16:03
Laravel Error - Specified key was too long error

Laravel Error - Specified key was too long error

Problema

Quando rodando versões antigas do Maria ou do MySql - antes da versão 5.7.7 -, o erro é disparado no console do Laravel na tentativa de popular o banco com migration.

   [Illuminate\Database\QueryException]
   SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))
@dheysonalves
dheysonalves / flow.md
Last active May 21, 2022 12:57
Como implementar o GitFlow?

Git flow

Introdução

O GitFlow é uma ideia abstrata para gerenciamento de branches utilizando Git. Ele auxilia a como deve ser criada as branches, e como mergea-las. No windows, a instalação base do Git vem com o comando git flow, que permite determinar o fluxo no repositório. A única diferença dele para o git init, é que ele cria e delimita nomes para branches específicas. Em sistemas OSX, ele pode ser instalado via brew, com o comando brew install git-flow

Como funciona