Skip to content

Instantly share code, notes, and snippets.

View jojojojojoj5564656465465's full-sized avatar

JONATHAN jojojojojoj5564656465465

View GitHub Profile
@jojojojojoj5564656465465
jojojojojoj5564656465465 / unocss.config.ts
Last active September 25, 2024 07:51
unocss config shortcuts rules best rules shortcut based on tailwind
import {
defineConfig,
presetAttributify,
presetIcons,
presetTagify,
presetWind,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
//import fs from "node:fs/promises";
@jojojojojoj5564656465465
jojojojojoj5564656465465 / my config unocss.config.ts
Created June 4, 2023 22:19
use my amazing config won't regret
import {
defineConfig,
presetAttributify,
presetIcons,
presetTagify,
presetWebFonts,
presetWind,
transformerDirectives,
transformerVariantGroup
@jojojojojoj5564656465465
jojojojojoj5564656465465 / Unocss flexbox config
Last active July 12, 2023 13:00
Flexbox Unocss Rule helper flex-col-5= center center flex-col-1= start start
[
/^flex-(row|col)-([1-9])$/,
([, direction, number]) => {
type PositionProps = Readonly<'start' | 'center' | 'end'>
const positions = {
1: ['start', 'start'],
2: ['center', 'start'],
3: ['end', 'start'],
4: ['start', 'center'],
5: ['center', 'center'],
const mode = process.env.NODE_ENV;
const dev = mode === "development";
// const OpenProps = require('open-props')
// const tailwind = require('tailwindcss')
// const postcssMediaRanges = require('postcss-media-minmax');
const FontMagician = require("postcss-font-magician");
const PresetEnv = require("postcss-preset-env");
module.exports = {
// ...
extends: [
// ...
'plugin:astro/recommended',
'@tinkoff/eslint-config/app',
],
// ...P
overrides: [
{
@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"
@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 / 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 = [email protected]
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
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 / 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