1e75bf5d6f48

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 08 May 2024 10:22:28 -0400
parents 4e1d6d6873fe
children f77ee236cdf3
branches/tags (none)
files bin/jabref bin/nicedate fish/functions/el.fish fish/functions/eln.fish remote/bin/nicedate stumpwm/local-share-stumpwm/uw-test.dump vim/ultisnips-bullshit/html.snippets vim/ultisnips-bullshit/htmldjango.snippets vim/ultisnips-bullshit/r.snippets vim/ultisnips-bullshit/sh.snippets

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/jabref	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+jabref-bin
+
+scp ~/Sync/papers/sjl.bib "cylinder:bib-backup/sjl.bib.$(nicedate).backup"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/nicedate	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+date --utc +%Y-%m-%dT%H-%M-%SZ
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fish/functions/el.fish	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,8 @@
+function el -d "Edit lab notes"
+    pushd ~/lab
+    hg pull -u
+    nvim README.markdown
+    hg ci -m 'Update'
+    hg push
+    popd
+end
--- a/fish/functions/eln.fish	Wed May 08 10:22:18 2024 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-function eln -d "Edit lab notes"
-    pushd ~/lab
-    hg pull -u
-    nvim README.markdown
-    hg ci -m 'Update'
-    hg push
-    popd
-end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/remote/bin/nicedate	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,1 @@
+../../bin/nicedate
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stumpwm/local-share-stumpwm/uw-test.dump	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,7 @@
+#S(GDUMP
+   :NUMBER 1
+   :NAME "Default"
+   :TREE ((#S(FDUMP  :NUMBER 0 :X 0    :Y 0 :WIDTH 640 :HEIGHT 1440 :WINDOWS NIL :CURRENT NIL)
+           (#S(FDUMP :NUMBER 1 :X 640  :Y 0 :WIDTH 3840 :HEIGHT 1440 :WINDOWS NIL :CURRENT NIL)
+            #S(FDUMP :NUMBER 2 :X 4480 :Y 0 :WIDTH 640 :HEIGHT 1440 :WINDOWS NIL :CURRENT NIL))))
+   :CURRENT 1)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/ultisnips-bullshit/html.snippets	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,191 @@
+snippet doctype "HTML - 5.0 (doctype)" b
+<!DOCTYPE html>
+endsnippet
+
+snippet html "tag: html" bi
+<html>
+    $1
+</html>
+endsnippet
+
+snippet head "tag: head" b
+<head>
+    $1
+</head>
+endsnippet
+
+snippet body "tag: body" b
+<body>
+    $1
+</body>
+endsnippet
+
+snippet nav "tag: nav" b
+<nav>
+    $1
+</nav>
+endsnippet
+
+snippet title "tag: title" b
+<title>$1</title>$0
+endsnippet
+
+snippet form "tag: form" b
+<form action="${1:/path}" method="${2:get}">
+    $0
+</form>
+endsnippet
+
+snippet fieldset "tag:fieldset" b
+<fieldset>
+    <legend>$1</legend>
+    $2
+</fieldset>
+endsnippet
+
+snippet label "tag: label" b
+<label for="${1:field}">$2</label>
+endsnippet
+
+snippet input "tag: input" b
+<input id="${1:field}" type="${2:text}" name="${3:name}" value="$4" />
+endsnippet
+
+snippet submit "tag: submit" b
+<input type="submit" value="${1:Search}" />
+endsnippet
+
+snippet style "stylesheet" b
+<link href="${1:style.css}"  rel="stylesheet" type="text/css" />
+endsnippet
+
+snippet main "tag: main" b
+<main>
+    $0
+</main>
+endsnippet
+
+snippet header "tag: header" b
+<header>
+    $0
+</header>
+endsnippet
+
+snippet footer "tag: footer" b
+<footer>
+    $0
+</footer>
+endsnippet
+
+snippet table "tag: table" b
+<table>
+    $0
+</table>
+endsnippet
+
+snippet thead "tag: thead" b
+<thead>
+    $0
+</thead>
+endsnippet
+
+snippet tbody "tag: tbody" b
+<tbody>
+    $0
+</tbody>
+endsnippet
+
+snippet tfoot "tag: tfoot" b
+<tfoot>
+    $0
+</tfoot>
+endsnippet
+
+
+snippet tr "tag: tr" b
+<tr>
+    $0
+</tr>
+endsnippet
+
+snippet td "tag: td" b
+<td>$1</td>
+endsnippet
+
+snippet th "tag: th" b
+<th>$1</th>
+endsnippet
+
+snippet href "tag: a href" i
+<a href="${1:https://example.com}">${2:Text}</a>
+endsnippet
+
+snippet " ." "class" i
+ class="$1"
+endsnippet
+
+snippet P "tag: p" b
+<p>
+    $1
+</p>
+endsnippet
+
+snippet p "tag: p" b
+<p>$1</p>
+endsnippet
+
+snippet legend "tag: legend" b
+<legend>$1</legend>
+endsnippet
+
+snippet span "tag: span" b
+<span$1>$2</span>
+endsnippet
+
+snippet div "tag: div" b
+<div$1>$2</div>
+endsnippet
+
+snippet Div "tag: div" b
+<div$1>
+    $2
+</div>
+endsnippet
+
+snippet ul "tag: ul" b
+<ul>
+    $1
+</ul>
+endsnippet
+
+snippet li "tag: li" b
+<li>$1</li>
+endsnippet
+
+snippet h1 "tag: h1" b
+<h1>$1</h1>
+endsnippet
+
+snippet h2 "tag: h2" b
+<h2>$1</h2>
+endsnippet
+
+snippet h3 "tag: h3" b
+<h3>$1</h3>
+endsnippet
+
+snippet h4 "tag: h4" b
+<h4>$1</h4>
+endsnippet
+
+snippet h5 "tag: h5" b
+<h5>$1</h5>
+endsnippet
+
+snippet h6 "tag: h6" b
+<h6>$1</h6>
+endsnippet
+
+snippet script "tag: script" b
+<script src="$1"></script>
+endsnippet
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/ultisnips-bullshit/htmldjango.snippets	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,26 @@
+extends html
+
+
+snippet % "Django tag" i
+{% ${1:tag_name} $2%}
+    $0
+{% end$1 %}
+endsnippet
+
+snippet { "Django var" i
+{{ $1 }}$0
+endsnippet
+
+snippet block "" i
+{% block $1 %}$2{% endblock $1 %}
+endsnippet
+
+snippet Block "" i
+{% block $1 %}
+    $2
+{% endblock $1 %}
+endsnippet
+
+snippet extends "" b
+{% extends "${1:foo}" %}$2
+endsnippet
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/ultisnips-bullshit/r.snippets	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,7 @@
+snippet lib "library()" b
+library(${1:name})
+endsnippet
+
+snippet inst "install.packages()" b
+install.packages("${1:name}")
+endsnippet
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/ultisnips-bullshit/sh.snippets	Wed May 08 10:22:28 2024 -0400
@@ -0,0 +1,15 @@
+snippet sete "set -euo pipefail" b
+set -euo pipefail
+endsnippet
+
+snippet = "var" b
+${1:var}="${2:val}"
+endsnippet
+
+snippet #! "#!" b
+#!/usr/bin/env bash
+endsnippet
+
+snippet == "VAR=${$VAR:-default}" b
+${1:VAR}="\$\{$1:-${2:default}\}"
+endsnippet