Last active
September 16, 2019 02:04
-
-
Save jdhao/14efde95923a9520dc3b47fe77c4b8c5 to your computer and use it in GitHub Desktop.
My snippet files for Ultisnips: https://github.com/SirVer/ultisnips
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
snippet kbd "HTML kbd tag" | |
<kbd>${1:KEY}</kbd>$0 | |
endsnippet | |
snippet head "Markdown header" b | |
--- | |
title: "$1" | |
date: `!v strftime("%Y-%m-%d %H:%M:%S%z")` | |
tags: [$2] | |
categories: [$3] | |
--- | |
$0 | |
endsnippet | |
snippet more "HTML more tag" | |
<!--more--> | |
endsnippet | |
snippet img "aligned image using HTML tag" | |
<p align="center"> | |
<img src="${1:URL}"> | |
</p> | |
$0 | |
endsnippet |
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
snippet head "Python source file header" b | |
""" | |
Description: $1 | |
Author: Jie-dong Hao | |
Date: `!v strftime("%Y-%m-%d %H:%M:%S%z")` | |
Update: `!v strftime("%Y-%m-%d %H:%M:%S%z")` | |
""" | |
$0 | |
endsnippet | |
snippet print "Print value of some variable" | |
print("$1".format($2)) | |
$0 | |
endsnippet | |
snippet impa "import FOO as BAR" b | |
import ${1:FOO} as ${2:BAR} | |
endsnippet |
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
snippet frac "Math fractions" | |
\frac{${1:NUM}}{${2:DEN}} $0 | |
endsnippet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment