Skip to content

Instantly share code, notes, and snippets.

View luizmellodev's full-sized avatar
👨‍💻
𝑙𝑖𝑠𝑡𝑒𝑛𝑖𝑛𝑔 𝑡𝑜 𝑙𝑜-𝑓𝑖 ℎ𝑖𝑝 ℎ𝑜𝑝

Luiz Mello luizmellodev

👨‍💻
𝑙𝑖𝑠𝑡𝑒𝑛𝑖𝑛𝑔 𝑡𝑜 𝑙𝑜-𝑓𝑖 ℎ𝑖𝑝 ℎ𝑜𝑝
View GitHub Profile
@wojteklu
wojteklu / clean_code.md
Last active July 8, 2024 09:39
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@abir-taheer
abir-taheer / instagram-follower-following.js
Last active July 7, 2024 06:07
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",