openpgp4fpr:ED91D234CAE973679AD46EA62E27E20FC4DEEA3E
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#!/usr/bin/env bash | |
# Fetch contributors | |
contributors=$(gh api -X GET repos/$1/$2/contributors --jq '.[].login' | tr '\n' '|' | sed 's/|$//') | |
echo $contributors | |
# Export the CONTRIBUTORS environment variable | |
export CONTRIBUTORS="$contributors" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abort-on-warn = false | |
accept-flake-config = false | |
access-tokens = | |
allow-dirty = true | |
allow-import-from-derivation = true | |
allow-new-privileges = false | |
allow-symlinked-store = false | |
allow-unsafe-native-code-during-evaluation = false | |
allowed-impure-host-deps = | |
allowed-uris = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
@coprocessor( | |
returns=["lon", "lat"], | |
) | |
def simplify(**params) -> (vector[f64], vector[f64]): | |
from greptime import query | |
results = query().sql(params["sql"]) | |
lon = results[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS org.eclipse.jetty:jetty-server:11.0.15 | |
//DEPS org.eclipse.jetty:jetty-servlet:11.0.15 | |
import static java.lang.System.*; | |
import java.io.IOException; | |
import org.eclipse.jetty.server.Server; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
;; (dolist (source '(("marmalade" . "http://marmalade-repo.org/packages/") | |
;; ("elpa" . "http://tromey.com/elpa/") | |
;; ("melpa" . "http://melpa.milkbox.net/packages/") | |
;; ("org" . "http://orgmode.org/elpa/"))) | |
;; (add-to-list 'package-archives source t)) | |
;; | |
;; ("marmalade" . "http://elpa.emacs-china.org/marmalade/") | |
;; ("org" . "http://elpa.emacs-china.org/org/") | |
;; ("elpa" . "http://elpa.emacs-china.org/gnu/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"(tomcat|jetty)":\s*"((\\"|[^"])*)",? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
### Display ### | |
# Which monitor should the notifications be displayed on. | |
monitor = 0 | |
# Display notification on focused monitor. Possible modes are: | |
# mouse: follow mouse pointer | |
# keyboard: follow window with keyboard focus | |
# none: don't follow anything |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn camelcase-to-delimitered [k delimeter] | |
(->> (clojure.string/split k #"(?=[A-Z])") | |
(map clojure.string/lower-case) | |
(clojure.string/join delimeter))) | |
(defn camelcase-to-delimitered-keys [m delimiter] | |
(let [trans (fn [[k v]] | |
(let [[strfn keyfn] (if (keyword? k) | |
[name keyword] | |
[identity identity]) |
NewerOlder