Skip to content

Instantly share code, notes, and snippets.

@jsn
jsn / a.txt
Created Oct 26, 2020
(an excerpt from Dogen's Shobogenzo)
View a.txt
Question 10: Some have said: “Do not concern yourself about birth-and-death.
There is a way to promptly rid yourself of birth-and-death. It is by grasping
the reason for the eternal immutability of the ‘mind-nature.’ The gist of it is
this: although once the body is born it proceeds inevitably to death, the
mind-nature never perishes. Once you can realize that the mind-nature, which
does not transmigrate in birth-and-death, exists in your own body, you make it
your fundamental nature. Hence the body, being only a temporary form, dies here
and is reborn there without end, yet the mind is immutable, unchanging
throughout past, present, and future. To know this is to be free from
birth-and-death. By realizing this truth, you put a final end to the
View prometheus-nginxlog-exporter-bin.diff
diff --git a/PKGBUILD b/PKGBUILD
index bc1a54d..875ab64 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,13 @@
pkgname=prometheus-nginxlog-exporter-bin
_name=prometheus-nginxlog-exporter
-pkgver=1.4.0
+pkgver=1.7.0
View a.html
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>X</title>
<style type="text/css" media="screen">
#outer > div {
position: relative ;
float: left ;
border: 1px solid black ;
View gist:fff04d868005d8fe880dd1cd12d164e2
set $to_yandex 0;
if ($cookie_bltsr) {
set $to_yandex 1;
}
if ($http_x_aab_http_check) {
set $to_yandex 1;
}
View surfingkeys.js
unmap('i') ;
map('iu', 'g0') ;
map('io', 'g$') ;
map('ij', '<Ctrl-6>') ;
map('d', 'x') ;
map('u', 'X') ;
map('ih', 'S') ;
map('il', 'D') ;
map('gn', "<Ctrl-'>");
settings.scrollStepSize = 250 ;
View trampoline.clj
;; in the code below, 'f' function is exactly the same as 'g' function,
;; and every line starting with '(time ...)' measures exactly the same
;; calculation. Which is for some reason fast for 'f', for as long as
;; 'g' is not defined, and after that it soon becomes slow both for 'f'
;; and for 'g'. The effect is quite reproducible.
user=> (set! *warn-on-reflection* true)
true
user=> (def xs (int-array 1 0))
#'user/xs
@jsn
jsn / global-deps.edn
Last active Dec 26, 2019
my clojure repl setup
View global-deps.edn
{
:aliases {
:deps {:extra-deps
{org.clojure/tools.deps.alpha {:mvn/version "0.6.474"}}}
:dev {:extra-paths ["/home/jason/.clojure/my-dev"]
:extra-deps
{com.bhauman/rebel-readline {:mvn/version "0.1.4"}
nrepl/nrepl {:mvn/version "0.6.0"}
cider/cider-nrepl {:mvn/version "0.21.1"}}
:main-opts ["-m" "myrepl"]}
View tomato-rice.md

Simpler-than-Pilaf Baked Rice

  • MAKES: 4 servings
  • TIME: 30 minutes

This basic, valuable technique is a combination of pilaf and paella but simpler than either, especially if you omit the spices and go with just salt and pepper. See "15 Ingredients to Stir Into Rice Pilaf or Simpler-than-Pilaf Baked Rice" (page 461) for ideas too.

View htce-frittata.md

Tomato and Cheese Frittata

MAKES: 4 servings

TIME: 30 minutes

All sorts of vegetables can be used here. See the variations and the list that follows.

  1. 2 tablespoons extra virgin olive oil
  2. 1/2 onion, sliced
View gist:2c33727b1e204038c807b1ec2c7cdb62
jason@jsn cr $ head -n1000 z.cr z2.cr
==> z.cr <==
def q
puts "in q"
1
end
Q = q()
class Z