Add 'users/glittershark/emacs.d/' from commit '69ee53bffa
'
git-subtree-dir: users/glittershark/emacs.d git-subtree-mainline:2edb963b97
git-subtree-split:69ee53bffa
This commit is contained in:
commit
4fe4e3d9a2
74 changed files with 5656 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: add_column
|
||||
# key: op.add_column
|
||||
# --
|
||||
op.add_column('${1:table}', sa.Column('${2:name}', sa.${3:String()}))$0
|
15
users/glittershark/emacs.d/snippets/python-mode/decorate
Normal file
15
users/glittershark/emacs.d/snippets/python-mode/decorate
Normal file
|
@ -0,0 +1,15 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: decorate
|
||||
# uuid:
|
||||
# key: decorate
|
||||
# condition: t
|
||||
# --
|
||||
def wrap(inner):
|
||||
@wraps(inner)
|
||||
def wrapped(*args, **kwargs):
|
||||
ret = inner(*args, **kwargs)
|
||||
return ret
|
||||
|
||||
return wrapped
|
||||
|
||||
return wrap
|
7
users/glittershark/emacs.d/snippets/python-mode/dunder
Normal file
7
users/glittershark/emacs.d/snippets/python-mode/dunder
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: dunder
|
||||
# uuid:
|
||||
# key: du
|
||||
# condition: t
|
||||
# --
|
||||
__$1__$0
|
7
users/glittershark/emacs.d/snippets/python-mode/name
Normal file
7
users/glittershark/emacs.d/snippets/python-mode/name
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: name
|
||||
# uuid:
|
||||
# key: name
|
||||
# condition: t
|
||||
# --
|
||||
__name__
|
|
@ -0,0 +1,7 @@
|
|||
# key: exec
|
||||
# name: op.get_bind.execute
|
||||
# --
|
||||
op.get_bind().execute(
|
||||
"""
|
||||
`(progn (sqlup-mode) "")`$1
|
||||
""")
|
7
users/glittershark/emacs.d/snippets/python-mode/pdb
Normal file
7
users/glittershark/emacs.d/snippets/python-mode/pdb
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: pdb
|
||||
# uuid:
|
||||
# key: pdb
|
||||
# condition: t
|
||||
# --
|
||||
import pdb; pdb.set_trace()
|
Loading…
Add table
Add a link
Reference in a new issue