aboutsummaryrefslogtreecommitdiff
path: root/my_snippets/python.snippets
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-04-27 00:16:43 +0800
committerjdhao <jdhao@hotmail.com>2019-04-27 00:16:43 +0800
commitdeb3266920148cb9c0715e5d7225d3df6a9f318e (patch)
tree3673a815ce597e51feff7493849fc9122136834f /my_snippets/python.snippets
parentfcbbe908f6060037b65737cb1398c1c0dceaa43f (diff)
Add Ultisnips snippets
Diffstat (limited to 'my_snippets/python.snippets')
-rw-r--r--my_snippets/python.snippets14
1 files changed, 14 insertions, 0 deletions
diff --git a/my_snippets/python.snippets b/my_snippets/python.snippets
new file mode 100644
index 0000000..e6ecb78
--- /dev/null
+++ b/my_snippets/python.snippets
@@ -0,0 +1,14 @@
+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