summaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'snippets')
-rw-r--r--snippets/python-mode/dat6
-rw-r--r--snippets/python-mode/plt8
-rw-r--r--snippets/python-mode/shebang5
3 files changed, 19 insertions, 0 deletions
diff --git a/snippets/python-mode/dat b/snippets/python-mode/dat
new file mode 100644
index 0000000..bb96f33
--- /dev/null
+++ b/snippets/python-mode/dat
@@ -0,0 +1,6 @@
+# name: data analysis imports
+# key: dat
+# --
+import numpy as np
+import pandas as pd
+$0
diff --git a/snippets/python-mode/plt b/snippets/python-mode/plt
new file mode 100644
index 0000000..434e09c
--- /dev/null
+++ b/snippets/python-mode/plt
@@ -0,0 +1,8 @@
+# name: matplotlib-related import
+# key: plt
+# --
+import matplotlib.pyplt as plt
+from matplotlib import tickers
+
+import pltaid
+$0
diff --git a/snippets/python-mode/shebang b/snippets/python-mode/shebang
new file mode 100644
index 0000000..26da506
--- /dev/null
+++ b/snippets/python-mode/shebang
@@ -0,0 +1,5 @@
+# name: python shebang
+# key: #!
+# --
+#!/usr/bin/env python${1:3}
+$0