Skip to content

Instantly share code, notes, and snippets.

View tgmarinho's full-sized avatar
πŸ’»
read my blog: tgmarinhopro.com

Thiago Marinho tgmarinho

πŸ’»
read my blog: tgmarinhopro.com
View GitHub Profile
@tgmarinho
tgmarinho / memoizedHandlers.js
Created June 20, 2021 00:22 — forked from kyleshevlin/memoizedHandlers.js
Using React.useMemo to create a `handlers` object
// One of my new favorite React Hook patternms is to create handler
// functions for a custom hook using `React.useMemo` instead of
// `React.useCallback`, like so:
function useBool(initialState = false) {
const [state, setState] = React.useState(initialState)
// Instead of individual React.useCallbacks gathered into an object
// Let's memoize the whole object. Then, we can destructure the
// methods we need in our consuming component.

Linux Terminal with oh-my-zsh

Every step in this tutorial is required for making terminal look as the image below.

terminal view of completed tutorial setup

ZSH & OH-MY-ZSH

sudo apt-get install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@tgmarinho
tgmarinho / setup-mac.sh
Created May 6, 2021 14:45 — forked from santospatrick/setup-mac.sh
MacOSX Setup for Development
#!/usr/bin/env bash
# 1. Run this script file
# Homebrew & Apps
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install --cask discord
brew install --cask spotify
brew install --cask iterm2
@tgmarinho
tgmarinho / backendLearningPath.md
Created March 31, 2021 02:36 — forked from sibelius/backendLearningPath.md
Backend Learning Path - Basics that you should learn
  • learn about basic database modelling, use excalidraw
  • learn how to connect to a database and performe queries
  • learn how to expose a CRUD API REST and/or GraphQL
  • learn how to document the API using Swagger, swagger-jsdoc is the best for it
  • learn how to test your API using Postman, and also automated using jest and supertest
  • learn how to consume other APIs using fetch

Also check Docker Learning Path and Lambda Learning Path

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@tgmarinho
tgmarinho / wsl-setup.md
Created July 27, 2020 01:38 — forked from imfing/wsl-setup.md
WSL + ZSH + Hyper Setup

My WSL Setup

A guide to setup your WSL with Hyper and zsh

Download & Install the WSL

  • Follow the very thorough instructions here

Get a prettier terminal

  • Download Hyper.js here - I went with the 'hyperblue' theme.
@tgmarinho
tgmarinho / README.md
Created July 17, 2020 14:40 — forked from navarrothiago/README.md
Transform your smartphone camera in a WebCam to make video conference
@tgmarinho
tgmarinho / linkedin.js
Created July 14, 2020 14:55 — forked from loiane/linkedin.js
linkedin script da loiane pra aprovar amizades massivamente
const x = document.getElementsByClassName('artdeco-button--secondary'); for (let i=0 ; i<x.length; i++) x[i].click();
// falta paginacao e aceitar >100 numa tacada :P
@tgmarinho
tgmarinho / gist:6cf35ac45644a0b68a45069d23c2e4b6
Created July 9, 2020 16:10 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: