Skip to content

Instantly share code, notes, and snippets.

View crisgon's full-sized avatar
:octocat:
Work hard!

Cristiano Gonçalves crisgon

:octocat:
Work hard!
View GitHub Profile
@LucasCalazans
LucasCalazans / usememo-example.js
Last active April 22, 2022 20:22
useMemo example
const categories = useMemo(() => {
return products.reduce((categories, { category }) => {
return !category || categories.find(({ id }) => category && category.id === id)
? categories
: [
...categories,
{
id: category.id,
value: category.id,
label: category.title,
@atmosmps
atmosmps / RemoteWorkGuide.md
Last active March 23, 2022 14:49
Remote Work Guide

Remote Work Guide

Este é um pequeno guia para quem quer começar a desbravar no mundo do trabalho remoto.

Outras iniciativas de trabalhos/jobs remotos

Outros repositórios que também ajudam pessoas a desbravar no mundo do trabalho remoto.

https://github.com/DyegoCosta/trabalhando-remoto

@vielhuber
vielhuber / script.js
Last active June 16, 2022 16:28
on mousewheel vanilla js scroll horizontally #js
document.addEventListener('wheel', function(e)
{
if(e.type != 'wheel')
{
return;
}
let delta = ((e.deltaY || -e.wheelDelta || e.detail) >> 10) || 1;
delta = delta * (-300);
document.documentElement.scrollLeft -= delta;
// safari needs also this
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 3, 2024 18:53
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active November 12, 2023 23:00
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@letanure
letanure / estados-cidades.json
Last active April 30, 2024 23:07
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",