Skip to content

Instantly share code, notes, and snippets.

View lucas-santos's full-sized avatar
:shipit:
It's slow, it can be improved

Lucas Santos lucas-santos

:shipit:
It's slow, it can be improved
View GitHub Profile
@pablo-rufat
pablo-rufat / asyncawait.js
Created February 17, 2022 21:22
Como lidar com funções assincronas?
// Execute com "node asyncawait.js"
// O objetivo do script a seguir é perceber os diferentes outcomes a depender de como é tratada uma chamada à um metodo assincrono.
// O seguinte metodo tem uma Promise que vai se resolver em um segundo. Depois um boolean é criado e a depender do valor pode retornar 'Eba!' ou lançar um erro.
const asyncFunctionWithReject = async () => {
await new Promise((r) => setTimeout(r, 1000));
const isTrue = Boolean(Math.round(Math.random()));
if (isTrue) {
[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
@EdnilsonRobert
EdnilsonRobert / ssh.md
Created August 23, 2019 00:53
Múltiplas chaves SSH para GitHub e GitLab

Múltiplas chaves SSH para GitHub e GitLab

1. Gerar Chaves SSH

ssh-keygen -t rsa -C "[email protected]" -b 4096 -f ~/.ssh/id_rsa_github
ssh-keygen -t rsa -C "[email protected]" -b 4096 -f ~/.ssh/id_rsa_gitlab

2. Copiar chaves para GitHub e GitLab

@diego3g
diego3g / NODE.md
Last active March 3, 2025 00:33
VSCode Settings (Updated)

⚠️ Note!

With VSCode version 1.94, the APC extension broke and there is no fix yet.

So, for those having issues with APC after the VSCode update, I recommend downloading the previous version of VSCode for now (https://code.visualstudio.com/updates/v1_93) and setting updates to manual by adding this to the editor's configuration:

"update.mode": "manual",
@divanibarbosa
divanibarbosa / ArvoreBinariaApp.java
Last active February 6, 2025 08:05
Arvore Binaria em Java
/* Criado por: profa. Divani Barbosa Gavinier
Curriculo Lattes: http://lattes.cnpq.br/8503400830635447
[email protected]
*/
import java.io.*;
import java.util.*;
class No {
public long item;
public No dir;
@MWins
MWins / project-ideas01.md
Last active February 20, 2025 19:18
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.

@PurpleBooth
PurpleBooth / README-Template.md
Last active February 26, 2025 19:40
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