From 782ffa72bf459c10c2a74004263a4d2b49b7905f Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 27 Jul 2017 20:41:12 -0400 Subject: snippets: Remove redundant (or nearly redundant) names The name field defaults to the file name, so don't bother explicitly specifying a name field that matches or nearly matches the file name. --- snippets/python-mode/defaultdict | 1 - snippets/python-mode/docopt-args | 1 - snippets/python-mode/examples-header | 1 - snippets/python-mode/figax | 1 - snippets/python-mode/figaxs | 1 - snippets/python-mode/h5py | 1 - snippets/python-mode/mpi4py | 1 - snippets/python-mode/numpy-random-seed | 1 - snippets/python-mode/numpy-testing | 1 - snippets/python-mode/ordereddict | 1 - snippets/python-mode/pandas | 1 - snippets/python-mode/pandas-hdf-store | 1 - snippets/python-mode/parameter-item | 1 - snippets/python-mode/parameters-header | 1 - snippets/python-mode/plotting-imports | 1 - snippets/python-mode/pprint | 1 - snippets/python-mode/pseaborn | 1 - snippets/python-mode/pytest | 1 - snippets/python-mode/pytest-def | 1 - snippets/python-mode/python-shebang | 1 - snippets/python-mode/returns-header | 1 - snippets/python-mode/subplots-adjust | 1 - snippets/python-mode/test-method | 1 - snippets/python-mode/theano | 1 - snippets/python-mode/tight-layout | 1 - snippets/python-mode/try-argv | 1 - 26 files changed, 26 deletions(-) (limited to 'snippets/python-mode') diff --git a/snippets/python-mode/defaultdict b/snippets/python-mode/defaultdict index 35a381c..29563d0 100644 --- a/snippets/python-mode/defaultdict +++ b/snippets/python-mode/defaultdict @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: defaultdict # key: dd # group: imports # -- diff --git a/snippets/python-mode/docopt-args b/snippets/python-mode/docopt-args index 0743633..6971cff 100644 --- a/snippets/python-mode/docopt-args +++ b/snippets/python-mode/docopt-args @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: docopt args # key: da # -- args = docopt(__doc__) diff --git a/snippets/python-mode/examples-header b/snippets/python-mode/examples-header index 92daa56..aa3fe8b 100644 --- a/snippets/python-mode/examples-header +++ b/snippets/python-mode/examples-header @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: Examples header # key: eh # condition: 'force-in-comment # -- diff --git a/snippets/python-mode/figax b/snippets/python-mode/figax index 65d4ce8..2a67c37 100644 --- a/snippets/python-mode/figax +++ b/snippets/python-mode/figax @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: figax # key: fax # -- fig, ax = plt.subplots() diff --git a/snippets/python-mode/figaxs b/snippets/python-mode/figaxs index 7e99635..f3fe069 100644 --- a/snippets/python-mode/figaxs +++ b/snippets/python-mode/figaxs @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: figaxs # key: faxs # -- fig, axs = plt.subplots($0) \ No newline at end of file diff --git a/snippets/python-mode/h5py b/snippets/python-mode/h5py index 3eb0ceb..da3006d 100644 --- a/snippets/python-mode/h5py +++ b/snippets/python-mode/h5py @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: h5py # key: h5 # group: imports # -- diff --git a/snippets/python-mode/mpi4py b/snippets/python-mode/mpi4py index 6b77ddc..4611f0c 100644 --- a/snippets/python-mode/mpi4py +++ b/snippets/python-mode/mpi4py @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: mpi5py # key: mpi # group: imports # -- diff --git a/snippets/python-mode/numpy-random-seed b/snippets/python-mode/numpy-random-seed index b8db465..1b71b0d 100644 --- a/snippets/python-mode/numpy-random-seed +++ b/snippets/python-mode/numpy-random-seed @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: numpy random seed # key: nrs # -- np.random.seed(`(random 4294967295)`) diff --git a/snippets/python-mode/numpy-testing b/snippets/python-mode/numpy-testing index c84868d..55335f9 100644 --- a/snippets/python-mode/numpy-testing +++ b/snippets/python-mode/numpy-testing @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: numpy testing # key: npt # group: imports # -- diff --git a/snippets/python-mode/ordereddict b/snippets/python-mode/ordereddict index e49e377..0390b9a 100644 --- a/snippets/python-mode/ordereddict +++ b/snippets/python-mode/ordereddict @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: ordereddict # key: od # group: imports # -- diff --git a/snippets/python-mode/pandas b/snippets/python-mode/pandas index 7239528..15bd718 100644 --- a/snippets/python-mode/pandas +++ b/snippets/python-mode/pandas @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: pandas # key: pd # group: imports # -- diff --git a/snippets/python-mode/pandas-hdf-store b/snippets/python-mode/pandas-hdf-store index a19ab13..ae7212f 100644 --- a/snippets/python-mode/pandas-hdf-store +++ b/snippets/python-mode/pandas-hdf-store @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: Pandas HDF5 store # key: pdhs # -- with pd.HDFStore($1) as store: diff --git a/snippets/python-mode/parameter-item b/snippets/python-mode/parameter-item index 296059f..9304694 100644 --- a/snippets/python-mode/parameter-item +++ b/snippets/python-mode/parameter-item @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: parameter item # key: par # expand-env: ((yas-indent-line 'fixed)) # -- diff --git a/snippets/python-mode/parameters-header b/snippets/python-mode/parameters-header index 90eb94b..2af25f3 100644 --- a/snippets/python-mode/parameters-header +++ b/snippets/python-mode/parameters-header @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: parameters header # key: ph # condition: 'force-in-comment # -- diff --git a/snippets/python-mode/plotting-imports b/snippets/python-mode/plotting-imports index 2900948..465bf52 100644 --- a/snippets/python-mode/plotting-imports +++ b/snippets/python-mode/plotting-imports @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: plotting imports # key: plta # group: imports # -- diff --git a/snippets/python-mode/pprint b/snippets/python-mode/pprint index 0c09793..a7b3954 100644 --- a/snippets/python-mode/pprint +++ b/snippets/python-mode/pprint @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: pprint # key: pp # group: imports # -- diff --git a/snippets/python-mode/pseaborn b/snippets/python-mode/pseaborn index 1667078..764c11c 100644 --- a/snippets/python-mode/pseaborn +++ b/snippets/python-mode/pseaborn @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: pseaborn # key: sns # group: imports # -- diff --git a/snippets/python-mode/pytest b/snippets/python-mode/pytest index e81d0a9..356af13 100644 --- a/snippets/python-mode/pytest +++ b/snippets/python-mode/pytest @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: pytest # key: pt # group: imports # -- diff --git a/snippets/python-mode/pytest-def b/snippets/python-mode/pytest-def index 499dbf9..819f5a3 100644 --- a/snippets/python-mode/pytest-def +++ b/snippets/python-mode/pytest-def @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: pytest def # key: td # group: testing # -- diff --git a/snippets/python-mode/python-shebang b/snippets/python-mode/python-shebang index fdacfed..041dcf1 100644 --- a/snippets/python-mode/python-shebang +++ b/snippets/python-mode/python-shebang @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: Python shebang # key: sb # -- #!/usr/bin/env python${1:3} diff --git a/snippets/python-mode/returns-header b/snippets/python-mode/returns-header index 6fb1cda..0285e5f 100644 --- a/snippets/python-mode/returns-header +++ b/snippets/python-mode/returns-header @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: Returns header # key: rh # condition: 'force-in-comment # -- diff --git a/snippets/python-mode/subplots-adjust b/snippets/python-mode/subplots-adjust index f88417c..37e46a1 100644 --- a/snippets/python-mode/subplots-adjust +++ b/snippets/python-mode/subplots-adjust @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: subplots-adjust # key: sad # group: matplotlib # -- diff --git a/snippets/python-mode/test-method b/snippets/python-mode/test-method index e0e1be9..ee60912 100644 --- a/snippets/python-mode/test-method +++ b/snippets/python-mode/test-method @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: test method # key: tm # group: testing # Copied from builtin deftest and given new key. diff --git a/snippets/python-mode/theano b/snippets/python-mode/theano index c3a3375..a6ef8c8 100644 --- a/snippets/python-mode/theano +++ b/snippets/python-mode/theano @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: theano # key: tn # group: imports # -- diff --git a/snippets/python-mode/tight-layout b/snippets/python-mode/tight-layout index 7c42be5..f73c35a 100644 --- a/snippets/python-mode/tight-layout +++ b/snippets/python-mode/tight-layout @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: tight-layout # key: tl # group: matplotlib # -- diff --git a/snippets/python-mode/try-argv b/snippets/python-mode/try-argv index 5b515ad..fdcac6b 100644 --- a/snippets/python-mode/try-argv +++ b/snippets/python-mode/try-argv @@ -1,5 +1,4 @@ # -*- mode: snippet -*- -# name: try argv # key: targv # -- try: -- cgit v1.2.3