Skip to content

Instantly share code, notes, and snippets.

View Aomitsu's full-sized avatar
😁
Hey, what's up ?

Maxime Aomitsu

😁
Hey, what's up ?
View GitHub Profile
@cjdenio
cjdenio / scrapbook-summer.css
Last active April 1, 2022 05:22
Custom CSS for my Hack Club Summer of Making Scrapbook profile. https://scrapbook.calebdenio.me
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');
.header-title-name {
font-family: "Fira Sans", sans-serif;
text-transform: capitalize;
margin-bottom: 10px;
background: rgba(0, 0, 0, 0.2);
padding: 10px 5px 10px 20px;
display: inline-block;
border-radius: 20px;
@evaera
evaera / Clean Code.md
Last active April 10, 2024 22:49
Best Practices for Clean Code
  1. Use descriptive and obvious names.
    • Don't use abbreviations, use full English words. player is better than plr.
    • Name things as directly as possible. wasCalled is better than hasBeenCalled. notify is better than doNotification.
    • Name booleans as if they are yes or no questions. isFirstRun is better than firstRun.
    • Name functions using verb forms: increment is better than plusOne. unzip is better than filesFromZip.
    • Name event handlers to express when they run. onClick is better than click.
    • Put statements and expressions in positive form.
      • isFlying instead of isNotFlying. late intead of notOnTime.
      • Lead with positive conditionals. Avoid if not something then ... else ... end.
  • If we only care about the inverse of a variable, turn it into a positive name. missingValue instead of not hasValue.
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream