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
# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/main/schemas/rule.json | |
## FIXME: Replace <INTERNAL_ERRORS_PACKAGE> as your package path | |
id: use-internal-errors-package | |
message: use <INTERNAL_ERRORS_PACKAGE> instead | |
severity: warning | |
language: Go | |
rule: | |
kind: import_spec | |
any: |
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/main/schemas/rule.json | |
id: google-resource-no-project-attr | |
message: All google resource should have `project` attribute. | |
severity: warning | |
language: terraform | |
rule: | |
kind: block | |
all: | |
- has: |
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
#!/usr/bin/env rq | |
# rq: query data.awsststoken.token | |
# rq: output-format yaml | |
package awsststoken | |
import rego.v1 | |
# METADATA |
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
apiVersion: traefik.containo.us/v1alpha1 | |
kind: IngressRoute | |
metadata: | |
name: vald-ing | |
spec: | |
routes: | |
- kind: Rule | |
match: Host(`localhost`) && Headers(`Content-Type`, `application/grpc`) | |
priority: 10 | |
services: |
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
;; https://github.com/vdaas/vald-client-python | |
(import grpc) | |
(import [vald.v1.vald [insert_pb2_grpc | |
search_pb2_grpc | |
update_pb2_grpc | |
remove_pb2_grpc]]) | |
(import [vald.v1.payload [payload_pb2]]) | |
(setv channel (grpc.insecure-channel "localhost:8080")) |
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
#!/usr/bin/env bash | |
cmd=$1 | |
chart=$2 | |
env=$3 | |
dir=${chart}-kustomize | |
chart=${chart/.\//} | |
build() { |
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
package main | |
import ( | |
"archive/tar" | |
"bytes" | |
"compress/gzip" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" |
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 polydact.core | |
(:import (clojure.lang IFn) | |
(org.graalvm.polyglot Context Value) | |
(org.graalvm.polyglot.proxy ProxyArray ProxyExecutable ProxyObject))) | |
(set! *warn-on-reflection* true) | |
(comment | |
(do | |
(def context |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.15686275064945221</real> |
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
extern crate rand; | |
use std::f64; | |
use rand::Rng; | |
struct MCInput { | |
np: u64, | |
tau: f64, | |
sal: f64, | |
omg: f64, |
NewerOlder