Skip to content

Instantly share code, notes, and snippets.

@freelsn
freelsn / vscode-settings.json
Created April 23, 2021 07:10
vscode settings
{
// vscode general settings
"editor.detectIndentation": true,
"editor.insertSpaces": true,
// "editor.fontFamily": "Hack",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.minimap.enabled": false,
"editor.rulers": [72, 80],
"editor.tabSize": 4,
@freelsn
freelsn / konsole-colorscheme.md
Last active April 23, 2021 07:07
konsole dracula color theme
cp xx.colorscheme ~/.kde/share/apps/konsole
@freelsn
freelsn / color.putty
Last active July 28, 2019 06:44
Putty color scheme
Black=77,77,77
BoldBlack=85,85,85
Red=187,0,0
BoldRed=255,85,85
Green=152,251,152
BoldGreen=85,255,85
Yellow=240,230,140
BoldYellow=255,255,85
Blue=205,133,63
BoldBlue=135,206,235
@freelsn
freelsn / pandoc.css
Created May 7, 2019 06:16
Pandoc CSS
body {
margin: auto;
padding-right: 1em;
padding-left: 1em;
max-width: 44em;
border-left: 1px solid black;
border-right: 1px solid black;
/* font-family: Arial, Verdana, "Microsoft YaHei", "微软雅黑", sans-serif; */
font-family: "Lato", Helvetica, Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
font-size: 18px;
@freelsn
freelsn / Makefile
Last active May 2, 2024 04:21
Universal Makefile for C/C++
# - inc/
# - *.h
# - src/
# - *.c
# - *.cpp
# - obj/
# - *.o
# - main
TARGET := main
@freelsn
freelsn / latexmkrc.pl
Created February 15, 2017 14:02
A configuration and initialization file for LatexMk
$clean_ext = "sta";
$clean_full_ext = "sta";
# $aux_dir = "output.output";
# $out_dir = "output.output";
$pdf_mode = 1; # tex -> pdf
# If no files are specified, latexmk will, by default, run on all files in the current working directory with a ".tex" extension.
# If you have your work split up into several parts, you have to specify the main file like this
@freelsn
freelsn / my-cv.cls
Last active February 16, 2017 06:22
Class file of academic CV
% Telling the compiler which version of LaTeX the package is for
\NeedsTeXFormat{LaTeX2e}
% Giving the compiler some information about your package
% The first argument should match the filename of you class file
% The second argument is optional and provides a description of your class which will appear in the log and other places.
% The description must begin with a date in exactly the format and it should be the date the package was last modified.
% E.g. \documentclass{myCV}[2016/07/12] with a date which is newer than the date of last modification, a waring will be shown saying that the class is outdated.
\ProvidesClass{myCV}[2016/06/28 My custom CV class]