This file contains hidden or 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
// ==UserScript== | |
// @name Remove myuni max width | |
// @namespace https://jsun.lol/ | |
// @version 2024-03-03 | |
// @description lol | |
// @author jsun969 & chatgpt | |
// @match https://myuni.adelaide.edu.au/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=adelaide.edu.au | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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} | |
... |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions & import('@trivago/prettier-plugin-sort-imports').PluginConfig} */ | |
module.exports = { | |
singleQuote: true, | |
trailingComma: 'all', | |
useTabs: true, | |
plugins: [ | |
'@trivago/prettier-plugin-sort-imports', | |
'prettier-plugin-tailwindcss', | |
], | |
importOrder: ['<THIRD_PARTY_MODULES>', '^[./]'], |
This file contains hidden or 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 hidden or 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 |