Skip to content

Instantly share code, notes, and snippets.

View JuniorGarciaRodriguez's full-sized avatar
👨‍💻
Working from home

Junior Garcia JuniorGarciaRodriguez

👨‍💻
Working from home
View GitHub Profile
@JuniorGarciaRodriguez
JuniorGarciaRodriguez / reset.css
Created May 30, 2023 19:01 — forked from Asjas/reset.css
Modern CSS Reset - Andy Bell
// https://piccalil.li/blog/a-modern-css-reset
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin */
@JuniorGarciaRodriguez
JuniorGarciaRodriguez / Example 1.js
Last active May 8, 2023 15:27
Is it DRY? m2w3d1
const pets = ['Cat', 'Dog', 'Bird', 'Fish', 'Frog', 'Hamster', 'Pig', 'Horse', 'Lion', 'Dragon'];
// Print all pets
console.log(pets[0]);
console.log(pets[1]);
console.log(pets[2]);
console.log(pets[3]);
...
@JuniorGarciaRodriguez
JuniorGarciaRodriguez / .gitattributes
Created April 25, 2023 14:50 — forked from dpalomar/.gitattributes
Fixing CRLF with gitattributes
From this [issue](https://github.com/puphpet/puphpet/issues/1025#issuecomment-157059174):
I know that this issue is closed, but as I spent a lot of time to understand what was going on, I made some researches and I can explain why this happen, and you can fix it.
Using git config core.autocrlf true can help, but not on a multi-developpers project.
This command has to be the same on each developper machine, and that's not always the case.
You have to use the .gitattributes provided in the puphpet archive and edit it as follow (carefull, this file need to be in your project root)
You also need to use an IDE that allow you to save/edit files as LF (like phpstorm). You can check the type of the file in the bottom right corner, in the status bar (you'll see LF or CRLF while a file is opened)