Skip to content

Instantly share code, notes, and snippets.

freelsn /
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 / my-cv.cls
Last active February 16, 2017 06:22
Class file of academic CV
View my-cv.cls
% Telling the compiler which version of LaTeX the package is for
% 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]
freelsn / pandoc.css
Created May 7, 2019 06:16
Pandoc CSS
View 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 / color.putty
Last active July 28, 2019 06:44
Putty color scheme
View color.putty
freelsn /
Last active April 23, 2021 07:07
konsole dracula color theme
cp xx.colorscheme ~/.kde/share/apps/konsole
freelsn / vscode-settings.json
Created April 23, 2021 07:10
vscode settings
View vscode-settings.json
// 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 / Makefile
Last active April 12, 2023 06:38
Universal Makefile for C/C++
View Makefile
# - inc/
# - *.h
# - src/
# - *.c
# - *.cpp
# - obj/
# - *.o
# - main
TARGET := main