Skip to content

Instantly share code, notes, and snippets.

View HallexCosta's full-sized avatar
:octocat:
Learning on-demand!

Hállex da Silva Costa HallexCosta

:octocat:
Learning on-demand!
View GitHub Profile
@HallexCosta
HallexCosta / methods-receptor.go
Last active November 7, 2020 19:54
Example usage method with receiver in golang
package main
import (
"fmt"
)
type User struct {
Name string
}
@HallexCosta
HallexCosta / binary-tree-data-structure.js
Last active November 16, 2020 03:48
Example of use the binary tree data structure with JavaScript
const tree = {}
function add(tree, value) {
if (tree.value) {
if (value > tree.value) {
add(tree.right, value)
} else {
add(tree.left, value)
}
} else {
@HallexCosta
HallexCosta / binary-tree-search-data-structure.ts
Last active November 10, 2020 22:39
Example of binary tree search data structure with TypeScript
type DataStructure = {
value: number
branchRight: DataStructure
branchLeft: DataStructure
}
class Tree {
private static data: DataStructure
constructor() {
@HallexCosta
HallexCosta / binary-tree-search-data-structure-v2.ts
Last active November 10, 2020 22:40
Example of binary tree search data structure with TypeScript
type BranchDataStructure = {
right: TreeDataStructure
left: TreeDataStructure
}
type TreeDataStructure = {
value: number
branch: BranchDataStructure
}
@HallexCosta
HallexCosta / settings.json
Last active December 9, 2020 22:23
VSCode Configs
{
"tabnine.experimentalAutoImports": true,
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "Fira Code",
"editor.fontSize": 14,
"terminal.integrated.fontFamily": "Source Code Pro for Powerline",
"terminal.integrated.fontSize": 14,
"emmet.syntaxProfiles": { "javascript": "jsx" },
"emmet.includeLanguages": {
@HallexCosta
HallexCosta / Prototipação.txt
Last active November 15, 2020 02:31
Prototipação do Estacionamento - Trabalho Ronnie - C#
Carro {
ID PK
nome_dono varchar
modelo varchar
placa varchar
numero_vaga FK
}
Vaga {
numero PK
@HallexCosta
HallexCosta / Hallex.bio
Created November 14, 2020 00:50
My biography
Completo:
Estudante de Ánalise e Desenvolvimento de Sistemas, entuasiasta em desenvolvimento Web FullStack com foco no back-end.
Apaixonado pelas tecnologias NodeJS, ReactJS e ReactNative. Amante das boas pratícas sendo elas Clean Architecture, Clean Code e o padrão Package by Feature, visando sempre seguir os princípios de design aplicados pelo S.O.L.I.D, K.I.S.S entre outros princípios.
Resumo:
Desenvolvedor Web FullStack com foco no back-end. Amante das boas praticas Clean Architecture e Clean Code
@HallexCosta
HallexCosta / gist:51e83a07cb54daf306eb942aa0ad0a12
Created November 19, 2020 15:48
How to install NVM and NodeJS on WSL
https://gist.github.com/noygal/6b7b1796a92d70e24e35f94b53722219
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# GO Path
export PATH=$PATH:/usr/local/go/bin
# Yarn Path
#export PATH="$PATH:/opt/yarn-0.32/bin"
#Path to your oh-my-zsh installation.
@HallexCosta
HallexCosta / gist:d7c50344139e16447e3edee42624f809
Created December 7, 2020 16:24
Permissions on WSL (How to solve permission denied WSL 1)
o fix you can use a find find all files with permission 0 and set it to rw-r--r--
find -perm 0 -type f -exec chmod 644 {} \;
find all directories with permission 0 and set it to rwxr-xr-x
find -perm 0 -type d -exec chmod 755 {} \;
Referência: