Many updates, too many to count

commit messages are for code, not config

I guess
This commit is contained in:
Griffin Smith 2020-03-26 15:03:25 -04:00
parent 23b179ad1d
commit 35c76e7098
24 changed files with 1533 additions and 427 deletions

View file

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: hlint
# uuid:
# expand-env: ((yas-indent-line 'fixed))
# key: hlint
# condition: t
# --
{-# ANN module ("Hlint: ignore $1" :: String) #- }

View file

@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# name: fetchFromGitHub
# uuid:
# key: fetchFromGitHub
# condition: t
# --
fetchFromGitHub {
owner = "$1";
repo = "$2";
rev = "$3";
sha256 = "0000000000000000000000000000000000000000000000000000";
}

View file

@ -0,0 +1,16 @@
# key: pypkg
# name: pythonPackage
# condition: t
# --
${1:pname} = buildPythonPackage rec {
name = "\${pname}-\${version}";
pname = "$1";
version = "${2:1.0.0}";
src = fetchPypi {
inherit pname version;
sha256 = "0000000000000000000000000000000000000000000000000000";
};
propagatedBuildInputs = with pythonSelf; [
$3
];
};

7
snippets/nix-mode/sha256 Normal file
View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: sha256
# uuid:
# key: sha256
# condition: t
# --
sha256 = "0000000000000000000000000000000000000000000000000000";

13
snippets/org-mode/combat Normal file
View file

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: combat
# uuid:
# key: combat
# condition: t
# --
| | initiative | max hp | current hp | status | |
|-------------+------------+--------+------------+--------+------|
| Barty Barty | | | | | <--- |
| Hectoroth | | | | | |
| Xanadu | | | | | |
| Aurora | | | | | |
| EFB | | | | | |

6
snippets/org-mode/reveal Normal file
View file

@ -0,0 +1,6 @@
# key: reveal
# name: reveal
# condition: t
# --
#+ATTR_REVEAL: :frag ${1:roll-in}
$0

View 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

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: name
# uuid:
# key: name
# condition: t
# --
__name__

7
snippets/python-mode/pdb Normal file
View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: pdb
# uuid:
# key: pdb
# condition: t
# --
import pdb; pdb.set_trace()