Skip to content

Instantly share code, notes, and snippets.

View b2evandro's full-sized avatar

Evandro dos Santos b2evandro

View GitHub Profile
# Traduções adicionais em https://github.com/heartcombo/devise/wiki/I18n
pt:
devise:
confirmations:
confirmed: "Seu endereço de email foi confirmado com sucesso."
send_instructions: "Você receberá um email com instruções sobre como confirmar seu endereço de email em alguns minutos."
send_paranoid_instructions: "Se o seu endereço de email existir em nosso banco de dados, você receberá um email com instruções sobre como confirmar seu endereço de email em alguns minutos."
failure:
already_authenticated: "Você já está logado."
#!/bin/bash
echo "ATUALIZANDO VERSAO DO ANDROID"
versaoCode="$(cat android/app/build.gradle | grep 'versionCode ' | xargs | cut -d' ' -f2)"
versaoCodeAtualizado=$(bc <<< "$versaoCode + 1")
versaoName="$(cat android/app/build.gradle | grep 'versionName ' | xargs | cut -d' ' -f2)"
versaoNameAtualizado=$(bc <<< "$versaoName + 0.01")
@b2evandro
b2evandro / react_launch.json
Created July 22, 2021 20:39
Ensure that your development server is running (npm start). Then press F5 or the green arrow to launch the debugger and open a new browser instance
{
"version": "0.2.0",
"configurations": [
// **********************************************************************
// Go to the Run view ⇧⌘D and click on the gear button or Create a launch.json link to create a `launch.json``
// debugger configuration file.
// Choose Edge: launch from the Select Environment dropdown list.
// This will create a launch.json file in a new `.vscode` folder in your project
// which includes a configuration to launch the website.
// **********************************************************************
@b2evandro
b2evandro / HeapSort.c
Created December 3, 2020 15:06
Implementação simples de HeapSort
// font do código inicial https://github.com/nmantzanas/Heapsort.git
#include <stdio.h>
void Heap(int vetor[], int quantidade_posi_vetor, int i)
{
// pai_aux = para pai e temp = variavel para troca
int pai_aux = i, temp;
// define os filhois, tanto da esquerda como da direita sendo que i e o pai verdadeiro do vetor