Skip to content

Instantly share code, notes, and snippets.

View olygood's full-sized avatar

olygood olygood

  • Liege
View GitHub Profile
@olygood
olygood / webpack.config.js
Last active April 1, 2022 11:06
webpack css/ image/
// terminal : install webpack : npm i webpack-cli webpack-dev-server babel-loader
// puis npm i html-webpack-plugin
Upgrade your account for access to GitLens+ features on both public and private repos.
//ne gère que le html css scss images webpack-dev-server
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const path = require("path");
module.exports = {
@olygood
olygood / .eslinterc.json
Created January 6, 2022 12:14
nextjs eslint disable rules
{
"extends": "next",
"rules": {
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off"
}
}
@olygood
olygood / visual-studio-settings.json
Last active November 26, 2022 11:09
préférence visual studio code
{
"sync.gist": "fc99bd18f5e19914c135375d46e4e8bc",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"workbench.colorTheme": "Dracula",
"explorer.confirmDragAndDrop": false,
"explorer.compactFolders": false,
"editor.fontSize": 16,
"editor.wordWrap": "on",
"emmet.syntaxProfiles":{
"javascript":"jsx"
@olygood
olygood / babel.config.js
Last active March 15, 2022 18:54
babel config
// install babel
// npm i @babel/core @babel/cli @babel/preset-env
//preset/env c est lui qui traduit l es6
module.exports = {
presets: [["@babel/preset-env"]]
}
//package.json
// -o = output file le code traduction de es6 => javascript normal sort dans un autre fichier es6after.js
// ou --out-file
"babel": "babel es6.js -o es6after.js"
@olygood
olygood / emmet.html
Last active April 1, 2022 11:48
emmet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Emmet</title>
</head>
<body>
<!-- -->
@olygood
olygood / randomColor.js
Created April 6, 2022 10:40
js random color
const setBg = () => {
const square = document.querySelector('.items');
const randomColor = Math.floor(Math.random()*16777215).toString(16);
console.log(square);
square.style.background = "#" + randomColor;
// console.log(square);
}
setInterval(setBg,1000);
@olygood
olygood / ghPages.text
Created August 16, 2022 16:05
gh-pages
npm install gh-pages --save-dev
package.json :
"homepage": "http://olygood.github.io/cardReact",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}
npm run deploy
aller sur gihub, repos, settings, pages, branch, gh-pages
@olygood
olygood / reactLink.jsx
Last active August 14, 2023 09:12
react Link
@olygood
olygood / cv.json
Last active August 14, 2023 09:13
json files
{
"présentation":{
"nom": "",
"prénom": "",
"fonction": "WebDeveloper",
"date-naissance": "29 janvier 1975",
"residant": "Liège, Belgique"
},
"reseaux":{
"nom": "",
@olygood
olygood / postcss.config.js
Last active August 14, 2023 08:27
all.config //tailwind, vite etc....config.js
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}