Skip to content

Instantly share code, notes, and snippets.

View Bear-03's full-sized avatar
🐻

Bear_03 Bear-03

🐻
View GitHub Profile
@Kestrer
Kestrer / how-to-write-hygienic-macros.md
Created October 17, 2020 05:35
A guide on how to write hygienic Rust macros

How to Write Hygienic Rust Macros

Macro hygiene is the concept of macros that work in all contexts; they don't affect and aren't affected by anything around them. Ideally all macros would be fully hygienic, but there are lots of pitfalls and traps that make it all too easy to accidentally write unhygienic macros. This guide attempts to provide a comprehensive resource for writing the most hygienic macros.

Understanding the Module System

First, a little aside on the details of Rust's module system, and specifically paths; it is

MSYS2 + Zsh + Oh My Zsh + Theme (windows)

Instalação do Zsh + Oh My Zsh no windows sem WSL.

Instalando o MSYS2

choco install msys2 -y
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active July 22, 2024 15:05
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@CharlieScarver
CharlieScarver / AdventureTime.csv
Last active July 19, 2024 14:25 — forked from austinpray/AdventureTime.csv
List of important adventure time episodes
Season Episode Title Reason
1 5 The Enchiridion A good intro to the series, plus introduces the important Enchiridion
1 2 Trouble in Lumpy Space* Introduces LSP (episode out of order)
1 3 Prisoners of Love Introduces Ice King and his obsession (episode out of order)
1 7 Ricardio the Heart Guy Finn and PB development, Sets a returning plot
1 8 Business Time* First mention of Ooo being post-apocalyptic
1 9 My Two Favorite People Intros the Jake and Lady Rainicorn plotline
1 10 Memories of Boom Boom Mountain A look at how Finn was adopted into Jake's Family
1 12 Evicted! Intros Marceline
@wwsun
wwsun / MyArrayList.java
Created May 7, 2015 08:32
A basic ArrayList implementation(Java)
package me.wwsun.list;
import java.util.Iterator;
/**
*
* @param <E> is the type of elements in this list
*/
public class MyArrayList<E> implements Iterable<E> {