Skip to content

Instantly share code, notes, and snippets.

View jojojojojoj5564656465465's full-sized avatar

JONATHAN jojojojojoj5564656465465

View GitHub Profile
@jojojojojoj5564656465465
jojojojojoj5564656465465 / settings.json
Last active February 26, 2023 19:23
My vscode Settings.json i use CASCADIA FONT
{
"npm.packageManager": "pnpm",
"files.autoSave": "afterDelay",
"debug.javascript.autoAttachFilter": "disabled", /* pour les etiquettes à la con */
"debug.javascript.codelens.npmScripts": "never",
"editor.fontLigatures": true,
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"terminal.integrated.defaultProfile.linux": "zsh",
@jojojojojoj5564656465465
jojojojojoj5564656465465 / emet.css.json
Last active January 14, 2023 18:01
Code Snippets CSS For responsive - vscode
/* responsive rules to add to the css.json file to enable fast responsive emet */
"Large Screen":{
"prefix": "responsiveRetina",
"body": ["@media (min-width: 1281px){\r\r.$1{$2}\r\r}"],
"description": "Responsive Desktop "
},
"Laptop":{
export async function jsonFetch<T>(
url: string,
options: RequestInit = {}
): Promise<T> {
// Set the default headers correctly
const headers: HeadersInit = new Headers(options.headers);
headers.set('Accept', 'application/json');
headers.set('Content-Type', 'application/json');
return fetch(url, {
@jojojojojoj5564656465465
jojojojojoj5564656465465 / cloudfare-worker-post-to-notion.js
Created July 2, 2022 02:51 — forked from Fredkiss3/cloudfare-worker-post-to-notion.js
Script for cloudfare worker to post to a notion database
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS',
'Access-Control-Allow-Credentials': true,
};
const ALLOWED_HOSTS = [
// Put your allowed cors hosts here
// By default localhost is allowed
// Your fetch should have a `mode: cors` enabled for it to work
@jojojojojoj5564656465465
jojojojojoj5564656465465 / KDE Freez after HIBERNATION
Created November 16, 2022 23:38
You are not able to use kde linux after hibernation do not worry ~/.local/share/applications/"Restart Plasma Shell and Kwin.desktop"
[Desktop Entry]
Comment=Restart Plasma Shell and KWin
Exec=kwin_x11 --replace; plasmashell --replace
GenericName=Restart Plasma Shell and KWin
Icon=chronometer-reset
Name=Restart Plasma Shell and Kwin
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
module.exports = {
extends: [
'stylelint-config-html',
'@tinkoff/stylelint-config',
'stylelint-config-standard-scss'
],
plugins: ['stylelint-scss', 'stylelint-csstree-validator'],
overrides: [
{
files: ['**/*.{astro,html}'],
@jojojojojoj5564656465465
jojojojojoj5564656465465 / GIT config A USER
Created January 14, 2023 18:59 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@jojojojojoj5564656465465
jojojojojoj5564656465465 / postcss.config.cjs
Last active January 14, 2023 19:21
configuration pour postcss astro
const mode = process.env.NODE_ENV;
const dev = mode === "development";
const postcssMediaRanges = require("postcss-media-minmax");
const postcssImport = require("postcss-import");
// const OpenProps = require('open-props')
const cssnano = require("cssnano");
module.exports = {
plugins: [
@jojojojojoj5564656465465
jojojojojoj5564656465465 / .prettierrc.cjs ASTRO STYLELINT
Last active January 23, 2023 13:42
config prettier link with stylelint
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"plugin:astro/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
module.exports = {
// ...
extends: [
// ...
'plugin:astro/recommended',
'@tinkoff/eslint-config/app',
],
// ...P
overrides: [
{