Skip to content

Instantly share code, notes, and snippets.

Avatar

Helder Burato Berto helderburato

View GitHub Profile
View note-template.md

Title

A title that is neither too short nor too long, which contains keywords to facilitate the search.

Links

Links to the articles and videos I used as a study.

Tags

The tags are used to create an adequate taxonomy to keep my notes organized and facilitate the discovery of previous notes.

Code

@helderburato
helderburato / js-stack-data-structure.js
Created Dec 6, 2020
JavaScript: Stack Data Structure
View js-stack-data-structure.js
class Stack {
constructor() {
this.items = [];
}
push(elements) {
this.items.push(elements);
}
pop() {
View conventional_commit_messages.md

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

View orgmode-cheatsheet.org

Orgmode Cheatsheet

Cheatsheet

Headings

* Welcome to Org mode
@helderburato
helderburato / tmux-cheatsheet.md
Last active Jul 27, 2020 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet
View tmux-cheatsheet.md

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@helderburato
helderburato / useIsMountedRef.js
Created May 12, 2020
React Hook: useIsMountedRef
View useIsMountedRef.js
import { useRef, useEffect } from 'react';
function useIsMountedRef(){
const isMountedRef = useRef(null);
useEffect(() => {
isMountedRef.current = true;
return () => isMountedRef.current = false;
});
@helderburato
helderburato / api.js
Created Jan 20, 2020 — forked from mariocesar/api.js
Axios single configured instance
View api.js
import axios from "axios";
const singleton = Symbol();
const singletonEnforcer = Symbol();
function readCookie(name) {
const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
return (match ? decodeURIComponent(match[3]) : null);
}
View simple-README.md
@helderburato
helderburato / github-two-factor-auth-brazil.js
Created Jun 13, 2019
Github Two-Factor Authentication (2FA) for Brazil via SMS
View github-two-factor-auth-brazil.js
const brazilOption = document.createElement('option');
brazilOption.value = '+55';
brazilOption.appendChild(document.createTextNode('Brazil +55'));
document.querySelectorAll('#countrycode').forEach((select) => select.appendChild(brazilOption));
@helderburato
helderburato / license-badges.md
Created Jun 9, 2019 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project
View license-badges.md

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes