Skip to content

Instantly share code, notes, and snippets.

View guidani's full-sized avatar
👾
Focusing

Guilherme Daniel guidani

👾
Focusing
View GitHub Profile
@import url("https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700");
@import url("https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");
* {
margin: 0;
border: 0;
box-sizing: border-box;
}
:root {
@mjackson
mjackson / composing-route-in-react-router-v6.md
Last active October 30, 2025 21:05
Notes on route composition in React Router v6, along with a suggested improvement you can make today to start upgrading

Composing <Route> in React Router v6

Composition of <Route> elements in React Router is changing in v6 from how it worked in v4/5 and in Reach Router. React Router v6 is the successor of both React Router v5 and Reach Router.

This document explains our rationale for making the change as well as a pattern you will want to avoid in v6 and a note on how you can start preparing your v5 app for v6 today.

Background

In React Router v5, we had an example of how you could create a element](https://github.com/remix-run/react-router/blob/320be7afe44249d5c025659bc00c3276a19f0af9/packages/react-router-dom/examples/Auth.js#L50-L52) to restrict access to certain routes on the page. This element was a simple [wrapper around an actual element that made a simple decision: is the user authenticated or not? If so, ren

@bradtraversy
bradtraversy / flutter_setup.md
Last active October 25, 2025 16:12
Flutter dev setup & notes
@divanibarbosa
divanibarbosa / Grafo2.c
Last active April 8, 2021 01:12
Grafo não orientado e não ponderado sem uso de ponteiros
// Criado por: profa. Divani Barbosa Gavinier
// Curriculo Lattes: http://lattes.cnpq.br/8503400830635447
// divanibarbosa@gmail.com
#include <stdio.h>
#include <stdlib.h>
#define MAX 10 // quantidade maxima de Nos
///////////////////////////////////////
// VARIAVEIS GLOBAL PILHA
int itens[MAX], topo, tam;
@divanibarbosa
divanibarbosa / grafo.c
Created September 25, 2019 20:00
Grafo não orientado e não ponderado em Linguagem C
// Grafo não orientado e não ponderado em Linguagem C
// Programa Livro Estrutura de Dados e Algoritmo em Java, Robert Lafore, ed. Ciencia Moderna
// Criado por: profa. Divani Barbosa Gavinier
// Curriculo Lattes: http://lattes.cnpq.br/8503400830635447
// divanibarbosa@gmail.com
#include <stdio.h>
#include <stdlib.h>
///////////////////////////////////////
// VARIAVEIS GLOBAL PILHA
int *itens, topo, tam;
@Pathoschild
Pathoschild / stardew-mod-recommendations.md
Last active December 1, 2025 02:36
Stardew Valley mod recommendations

Here are the mods I recommend. These are all compatible with the latest versions of SMAPI and Stardew Valley on Linux/macOS/Windows. See the player's guide to using mods if you're interested.

Base frameworks