const events = await db.sql`select
created_at,
last_updated_at,
from events
`;const stackPeriod = () => {| builtin | cases | |
|---|---|---|
| != | 17 | |
| % | 15 | |
| & | 8 | |
| * | 2032 | |
| + | 85 | |
| - | 240 | |
| / | 218 | |
| := | 1404 | |
| < | 39 |
| :8000 { | |
| handle_path /opa/* { | |
| reverse_proxy http://localhost:8181 | |
| } | |
| handle { | |
| root * . | |
| file_server | |
| } | |
| } |
| { | |
| "tasks": { | |
| "dev": "deno run --allow-net --watch main.ts" | |
| }, | |
| "imports": { | |
| "opa": "https://esm.sh/@styra/opa@0.2.5" | |
| } | |
| } |
| #!/usr/bin/env bb | |
| (require '[babashka.fs :as :fs] | |
| '[babashka.process :refer [shell]]) | |
| (def make "/usr/bin/make") | |
| (defn find-root | |
| ([] (find-root (fs/cwd))) | |
| ([wd] (cond | |
| (fs/exists? (fs/path wd "Makefile")) {:dir wd} |
const events = await db.sql`select
created_at,
last_updated_at,
from events
`;const stackPeriod = () => {| diff --git a/topdown/arithmetic.go b/topdown/arithmetic.go | |
| index c75f816a4..b0061074f 100644 | |
| --- a/topdown/arithmetic.go | |
| +++ b/topdown/arithmetic.go | |
| @@ -6,6 +6,7 @@ package topdown | |
| import ( | |
| "math/big" | |
| + "strconv" | |
| package | ms | bytes | allocs | |
|---|---|---|---|---|
| internal/bytealg | 0.002 | 0 | 0 | |
| runtime | 0.097 | 0 | 0 | |
| errors | 0.007 | 0 | 0 | |
| math | 0.002 | 0 | 0 | |
| strconv | 0.006 | 32 | 2 | |
| sync | 0.003 | 16 | 1 | |
| unicode | 0.096 | 12456 | 11 | |
| reflect | 0.002 | 0 | 0 | |
| io | 0.002 | 144 | 9 |
| {:deps {djblue/portal {:mvn/version "0.37.1"}}} |
example_main.go in example/main.go in an OPA checkoutGOOS=js GOARCH=wasm go build -o example.wasm ./example/opa.parse("package foo") in the browser's dev tools console