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
// .sourcekit-lsp/config.json | |
{ | |
"swiftPM": { | |
"triple": "arm64-apple-ios-simulator", | |
"swiftCompilerFlags": [ | |
"-sdk", | |
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk", | |
"-target", | |
"arm64-apple-ios18.0-simulator" | |
], |
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
version: '3.5' | |
services: | |
etcd: | |
container_name: milvus-etcd | |
image: quay.io/coreos/etcd:v3.5.5 | |
environment: | |
- ETCD_AUTO_COMPACTION_MODE=revision | |
- ETCD_AUTO_COMPACTION_RETENTION=1000 | |
- ETCD_QUOTA_BACKEND_BYTES=4294967296 |
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
package ; | |
import java.util.*; | |
import java.util.function.BiFunction; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
import java.util.stream.StreamSupport; |
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
gui: | |
sidePanelWidth: 0.25 | |
git: | |
paging: | |
colorArg: always | |
externalDiffCommand: 'difft --color=always --display="$([ $(tput cols) -lt 180 ] && echo inline || echo side-by-side-show-both)" --context=4' # side-by-side-show-both | |
# externalDiffCommand: tput cols | |
keybinding: | |
universal: |
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
@RequiredArgsConstructor | |
public class Client { | |
public <T> Result<T> execute(Object requset, Class<?>... types) { | |
String content = <json response> | |
return JSONObject.parseObject(content, buildType(ArrayUtil.append(new Class[]{Result.class}, types))); | |
} |
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 Foundation | |
import XCTest | |
public protocol A { | |
var value: Int { get } | |
} | |
public protocol B { | |
associatedtype T: A | |
func check<T>(input: T) -> Int |
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
package *.gateway.fliter; | |
import lombok.RequiredArgsConstructor; | |
import org.springframework.cloud.gateway.filter.GatewayFilterChain; | |
import org.springframework.cloud.gateway.filter.GlobalFilter; | |
import org.springframework.cloud.gateway.support.ServerWebExchangeUtils; | |
import org.springframework.core.Ordered; | |
import org.springframework.http.MediaType; | |
import org.springframework.http.codec.HttpMessageReader; | |
import org.springframework.http.codec.ServerCodecConfigurer; |
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
# ring = "0.16.20" | |
use ring::*; | |
use ring::aead::{Aad, AES_128_GCM, BoundKey, Nonce, OpeningKey, SealingKey, UnboundKey}; | |
static ALGORITHM: &aead::Algorithm = &AES_128_GCM; | |
struct OneNonceSequence(Option<aead::Nonce>); | |
impl OneNonceSequence { |
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
fl () { | |
API="" | |
ret_json=$(curl -s -H "Content-Type: application/json" -X POST -d "{\"content\":\"$*\"}" $API) | |
echo $ret_json | sed "s/.*\"message\":\([^,}]*\).*/\1/" | |
} |
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
// ==UserScript== | |
// @name Hypothesis | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author AFuture | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
NewerOlder