Skip to content

Instantly share code, notes, and snippets.

View AnneCosta's full-sized avatar
👩‍💻
Studying

Fabianne Costa AnneCosta

👩‍💻
Studying
View GitHub Profile
@josenaldo
josenaldo / commit-message-editor-with-lasers.json
Last active July 29, 2023 04:59
Commit Message Editor with Lasers (Emojis)!
{
"commit-message-editor.dynamicTemplate": [
"{emoji} {type}{scope}: {description}",
"",
"{body}",
"",
"{breaking_change}{footer}"
],
"commit-message-editor.tokens": [
@matheusrod92
matheusrod92 / update-parent-state-react.js
Created November 20, 2018 18:14
Como atualizar estado de um componente pai em react
import React from 'react';
import PropTypes from 'prop-types';
const Filho = (props) => (
<div>
<b>Eu sou um componente stateless</b>
<span> mas eu controlo o state do meu pai!</span>
<input
type="text"
value={props.valorDoPapaizineo}
@MoeweX
MoeweX / dijkstra.js
Last active July 25, 2022 20:50 — forked from stella-yc/dijkstra.js
Dijkstra's Algorithm in Javascript using a Weighted Graph
// Changes to original version
// 1. Calculate the distance between any nodes in the dataset, without needing to edit the problem dictionary.
// 2. Prevent algorithm from going back to start node if loops exist in graph (e.g., in problem below)
const problem = {
start: {A: 5, B: 2},
A: {start: 1, C: 4, D: 2},
B: {A: 8, D: 7},
C: {D: 6, finish: 3},
D: {finish: 1},
@matthewzring
matthewzring / markdown-text-101.md
Last active June 19, 2024 19:43
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@leocomelli
leocomelli / git.md
Last active June 19, 2024 00:09
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda