Skip to content

Instantly share code, notes, and snippets.

View ArnaudLigny's full-sized avatar
🤵

Arnaud Ligny ArnaudLigny

🤵
View GitHub Profile
@ArnaudLigny
ArnaudLigny / Git Doc.md
Created April 26, 2026 12:45 — forked from Tlaloc-Es/Git Doc.md
Git basic workflow

Git workflow

image

The workflow outlined below is a basic one that would be used when we want to do product development without maintaining older versions.

For example, there may be projects where a version 1.0.0 of the product is generated, and then a version 2.0.0 of the product is developed. In such cases, you may want to support version 1.0.0 while continuing to develop version 2.0.0 by adding commits for fixes to both versions but only new features to the latest version.

This workflow is primarily not intended for such cases but rather for situations where the latest published version is the only one maintained, as in the case of a service or a library.

@ArnaudLigny
ArnaudLigny / tailwind-darkmode-toggle.html
Created February 10, 2022 09:24 — forked from sjones6/tailwind-darkmode-toggle.html
A darkmode toggle using tailwindcss
<div class="w-14 h-8">
<input type="checkbox" id="dark-mode-toggle" class="hidden" onchange="document.documentElement.classList.toggle('dark')" />
<label for="dark-mode-toggle" class="w-full h-full bg-gray-800 dark:bg-white rounded-full p-1 flex justify-between cursor-pointer">
<span class="inline dark:hidden">🌞</span>
<span class="w-6 h-6 rounded-full bg-white dark:bg-gray-800 block float-right dark:float-left"></span>
<span class="hidden dark:inline">🌛</span>
</label>
</div>
@ArnaudLigny
ArnaudLigny / composer.json
Last active November 6, 2021 02:37 — forked from 2bard/translation_notes
Using Symfony Translation component with Twig outside of Symfony.
{
"require": {
"symfony/translation": "^5.0",
"symfony/twig-bridge": "^5.0",
"symfony/yaml" : "^5.0",
"twig/twig": "^3.0"
}
}