Skip to content

Instantly share code, notes, and snippets.

View bernardchri's full-sized avatar

christophe bernard bernardchri

View GitHub Profile
@bernardchri
bernardchri / ultrareset.css
Last active June 6, 2023 18:25
[css] ultrareset.css #css #reset
/*! de-style.css v1.0.5 | MIT License | https://github.com/nicolas-cusan/destyle.css */
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
img{
display: block;
max-width: 100%;
@bernardchri
bernardchri / Google-drive-to-json.md
Created July 4, 2020 21:37
[GoogleDrive to JSON] Export data from googledrive sheet #gdrive #json

gDrive to json

methode 1

https://spreadsheets.google.com/feeds/cells/__KEY__/__IDTAB__/public/basic?alt=json&v=3.0

KEY : 1XKK0VqIclBhU9Avx6YX1E1jzND_F45OFzVmhdTK9Tu0

IDTAB : exemple : 1 ( première feuille du doc)

Exemple :

@bernardchri
bernardchri / addClassListIsVisible.js
Last active July 4, 2020 21:30
[Add class on scroll ] #aos #animation #javascript
'use strict'
//isAnimR
// Ajoute une classe CSS .isAnimStart sur les éléments voulus
// Enleve et rajoute une classe CSS .isAnimEnd quand l'éléments apparait dans la vue
// utiliser comme ceci : AddClassIsAnimStart([elements])
class AddClassIsAnimStart{
constructor(elements){
@bernardchri
bernardchri / delete-all-dsstore.cmd
Created February 18, 2020 15:44
#bashfiles #bash
find ./ -type f -name '.DS_Store' -delete
@bernardchri
bernardchri / bloc-zoom-ios.js
Last active July 4, 2020 21:32
[bloc zoom ios] bloc-zoom-ios #website #ios #zoom
document.addEventListener('touchmove', function (event) {
if (event.scale !== 1) { event.preventDefault(); }
}, { passive:false });