Skip to content

Instantly share code, notes, and snippets.

@pyratin
pyratin / .prettierrc
Created April 3, 2025 04:07
.prettierrc
{
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none",
"plugins": ["prettier-plugin-jsdoc"]
}
@pyratin
pyratin / jsconfig.json
Created April 3, 2025 04:06
jsconfig.json
{
"compilerOptions": {
"noEmit": true,
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"jsx": "react-jsx"
}
}
@pyratin
pyratin / eslint.config.mjs
Created April 3, 2025 04:04
eslint.config.mjs
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
export default [
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
@pyratin
pyratin / .gitconfig
Last active April 3, 2025 04:09
.gitconfig
[user]
name = shivapand
email = [email protected]
[core]
editor = nvim
[difftool]
prompt = true
[diff]
tool = nvimdiff
[difftool "nvimdiff"]
#vimiumHintMarkerContainer div.internalVimiumHintMarker, #vimiumHintMarkerContainer div.vimiumHintMarker {
padding: 3px 4px;
background: #444;
border: none;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
#vimiumHintMarkerContainer div span {
color: #fff;
text-shadow: none;
{
"coc.preferences.jumpCommand": "tabe",
"eslint.alwaysShowStatus": true
}
#!/bin/bash
xdotool windowactivate `xdotool search --desktop 0 --class "terminal"`
Session.vim
#!/bin/bash
xdotool windowactivate `xdotool search --desktop 0 --class "chromium"`
#!/bin/bash
[ $(xfconf-query -c accessibility -p /MouseKeys) == "false" ] \
&& $(xfconf-query -c accessibility -p /MouseKeys -s true) \
|| $(xfconf-query -c accessibility -p /MouseKeys -s false)