This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Proxy For GitHub | |
Host github.com | |
ProxyCommand "C:/Program Files/Git/mingw64/bin/connect.exe" -H <proxy_url> %h %p | |
IdentityFile "C:\Users\Administrator\.ssh\id_ed25519" | |
TCPKeepAlive yes | |
IdentitiesOnly yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get Host IP | |
cat /etc/resolv.conf | grep -oP '(?<=nameserver\ ).*' | |
# Enable Proxy | |
export http_proxy="http://:7890/" | |
export https_proxy="http://:7890/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
project: ['./tsconfig.json'], | |
}, | |
plugins: ['@typescript-eslint'], | |
extends: [ | |
'eslint:recommended', | |
'plugin:@typescript-eslint/recommended', | |
'plugin:prettier/recommended', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim.opt.relativenumber = true | |
lvim.log.level = "warn" | |
lvim.format_on_save = { | |
enabled = true, | |
timeout = 60000, | |
} | |
lvim.colorscheme = "lunar" | |
lvim.leader = "space" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useRef } from 'react' | |
export const useMount = (fn: React.EffectCallback) => { | |
const isMounted = useRef(false) | |
useEffect(() => { | |
if (!isMounted.current) { | |
fn() | |
isMounted.current = true | |
} | |
}, []) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Header guard": { | |
"prefix": "guard", | |
"body": [ | |
"#ifndef ${1:${TM_FILENAME_BASE/(.*)/${1:/upcase}/}}_H", | |
"#define ${1:${TM_FILENAME_BASE/(.*)/${1:/upcase}/}}_H", | |
"", | |
"$0", | |
"", | |
"#endif // ${1:${TM_FILENAME_BASE/(.*)/${1:/upcase}/}}_H" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: LLVM | |
UseTab: Always | |
IndentWidth: 2 | |
TabWidth: 2 | |
BreakBeforeBraces: Attach | |
AllowShortIfStatementsOnASingleLine: WithoutElse | |
IndentCaseLabels: true | |
ColumnLimit: 0 | |
NamespaceIndentation: All | |
FixNamespaceComments: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[]{whatever} | |
\usepackage[backend=biber,citestyle=authoryear,style=authoryear,sorting=nyvt,maxnames=1,maxbibnames=99]{biblatex} | |
\usepackage[style=british]{csquotes} % biblatex quote styling | |
\usepackage{xpatch} | |
\usepackage{sectsty} | |
\usepackage{times} | |
... |