This file contains hidden or 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
(ns metabase.models.permissions.graph.data | |
(:require [clojure.spec.alpha :as s])) | |
(s/def ::id | |
(s/and int? pos?)) | |
(s/def :metabase.models.permissions.graph.data.table/read | |
#{:all :none}) | |
(s/def :metabase.models.permissions.graph.data.table/query |
This file contains hidden or 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
Date: 2021-08-18 PDT | |
[18:42:58.437] weston 9.0.0 | |
https://wayland.freedesktop.org | |
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/ | |
Build: 9.0.0-38-g46756d0e | |
[18:42:58.438] Command line: /usr/bin/weston --backend=rdp-backend.so --xwayland --shell=rdprail-shell.so --logger-scopes=log,rdp-backend,rdprail-shell --log=/mnt/wslg/weston.log | |
[18:42:58.438] OS: Linux, 5.10.43.3-microsoft-standard-WSL2, #1 SMP Wed Jun 16 23:47:55 UTC 2021, x86_64 | |
[18:42:58.438] Using config file '/home/wslg/.config/weston.ini' | |
[18:42:58.439] Output repaint window is 7 ms maximum. | |
[18:42:58.439] Loading module '/usr/lib/libweston-9/rdp-backend.so' |
This file contains hidden or 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
{:deps {org.clojure/tools.deps.alpha {:mvn/version "0.11.931"} | |
clj-http/clj-http {:mvn/version "3.10.3"}}} |
This file contains hidden or 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- unwrap-connection ^PrestoConnection [^C3P0ProxyConnection conn] | |
(.unwrap conn PrestoConnection)) | |
(defn set-timezone! [conn ^String zone-id] | |
(.setTimeZoneId (unwrap-connection conn) zone-id)) | |
(defn get-timestamp-utc [^com.facebook.presto.jdbc.PrestoResultSet rset ^Integer index] | |
(let [method (doto (.getDeclaredMethod com.facebook.presto.jdbc.PrestoResultSet | |
"getTimestamp" | |
(into-array Class [Integer/TYPE com.facebook.presto.jdbc.internal.joda.time.DateTimeZone])) |
This file contains hidden or 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
(ns metabase.test.data.presto-jdbc | |
"Presto JDBC driver test extensions." | |
(:require [clojure.string :as str] | |
[metabase.config :as config] | |
[metabase.connection-pool :as connection-pool] | |
[metabase.driver :as driver] | |
[metabase.driver.sql-jdbc.execute :as sql-jdbc.execute] | |
[metabase.test.data.interface :as tx] | |
[metabase.test.data.sql :as sql.tx] | |
[metabase.test.data.sql-jdbc :as sql-jdbc.tx] |
This file contains hidden or 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
(defmulti my-multimethod | |
keyword) | |
(derive ::x ::keyword) | |
(derive ::y ::keyword) | |
(defmethod my-multimethod ::x | |
[_] | |
::x) |
This file contains hidden or 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 unsorted [password] | |
(let [lines (atom 0)] | |
(with-open [reader (java.io.BufferedReader. (java.io.FileReader. (io/file (io/resource "common_passwords.txt"))))] | |
{:bad? (boolean | |
(some | |
(fn [a-password] | |
(swap! lines inc) | |
(= a-password password)) | |
(iterator-seq (.. reader lines iterator)))) | |
:n @lines}))) |
This file contains hidden or 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
--- updated.old.json 2021-04-30 15:50:09.720000000 -0700 | |
+++ updated.json 2021-04-30 15:59:20.510000000 -0700 | |
@@ -14,6 +14,7 @@ | |
"1.14.0-0": "zip+https://cdn.azul.com/zulu/bin/zulu14.27.1-ca-jdk14-win_x64.zip", | |
"1.14.0": "zip+https://cdn.azul.com/zulu/bin/zulu14.29.23-ca-jdk14.0.2-win_x64.zip", | |
"1.13.0-6": "zip+https://cdn.azul.com/zulu/bin/zulu13.37.21-ca-jdk13.0.6-win_x64.zip", | |
+ "1.13.0-5.1": "zip+https://cdn.azul.com/zulu/bin/zulu13.35.51-ca-jdk13.0.5.1-win_x64.zip", | |
"1.13.0-5": "zip+https://cdn.azul.com/zulu/bin/zulu13.35.17-ca-jdk13.0.5-win_x64.zip", | |
"1.13.0-4": "zip+https://cdn.azul.com/zulu/bin/zulu13.33.25-ca-jdk13.0.4-win_x64.zip", | |
"1.13.0-3": "zip+https://cdn.azul.com/zulu/bin/zulu13.31.11-ca-jdk13.0.3-win_x64.zip", |