More snippets!

This commit is contained in:
Howard Abrams 2023-10-10 08:16:42 -07:00
parent d33a8cac3b
commit 06b7219f94
4 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: ifdef
# key: ifdef
# --
{% if $1 is defined %}
$2 = {{ $1 }}
{% endif %}

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: ifdef
# key: ifdef
# --
{% if $1 is defined %}
$2 = {{ $1 }}
{% endif %}

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
#name : Eshell for loop
#key : for
# --
for f in ${1:*} { ${2:echo} "$f"; $3} $0

9
snippets/org-mode/http Normal file
View file

@ -0,0 +1,9 @@
# key: <h
# name: org-mode http client
# --
#+begin_src http
${1:GET} https://grafana.dev.wdpharos.io/api/${2:dashboards/uid/klbJ6Rrnk}
Authorization: Bearer \$\{auth-key\}
Content-Type: application/json
$0
#+end_src