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
| #edit | |
| input: | |
| http_server: | |
| path: /post/chat | |
| allowed_verbs: | |
| - POST | |
| pipeline: | |
| processors: | |
| - openai_chat_completion: | |
| api_key: "${USER_CONFIGURED_OPENAI_API_KEY}" |
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
| input: | |
| postgres_cdc: | |
| dsn: "${POSTGRES_DSN}" | |
| stream_snapshot: true | |
| schema: public | |
| tables: | |
| - demo_table | |
| - other_table | |
| slot_name: rp_connect_repl_slot | |
| snapshot_batch_size: 1024 |
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
| input: | |
| generate: | |
| mapping: | | |
| root = { | |
| "bar": random_int(), | |
| "baz": uuid_v4(), | |
| "foo": uuid_v4(), | |
| "host": nanoid(64), | |
| "host2": nanoid(54), | |
| "id": counter(), |
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
| cmake -G Ninja -DLLVM_TARGETS_TO_BUILD=X86 \ | |
| -DCMAKE_INSTALL_PREFIX=$PWD/install \ | |
| -B $PWD/build \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DLLVM_INCLUDE_TESTS=OFF \ | |
| -DLLVM_INCLUDE_EXAMPLES=OFF \ | |
| -DLLVM_INCLUDE_UTILS=OFF \ | |
| -DLLVM_INCLUDE_DOCS=OFF \ | |
| -DLLVM_ENABLE_ZLIB=OFF \ | |
| -DLLVM_ENABLE_ZSTD=OFF \ |
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
| py_binary( | |
| name = 'generate_compile_command', | |
| srcs = [ | |
| 'generate_compile_command.py', | |
| ], | |
| deps = [ | |
| '//third_party/bazel:extra_actions_proto_py', | |
| ], | |
| ) |
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
| private class NativeJvmTransport(private val config: SearchClient.Config) : ElasticsearchTransport { | |
| private val options = Options( | |
| headers = ImmutableMultimap.builder<String, String>().apply { | |
| val mimeType = Version.VERSION?.let { version -> "application/vnd.elasticsearch+json; compatible-with=${version.major()}" } ?: "application/json" | |
| put("Content-Type", mimeType) | |
| put("Accept", mimeType) | |
| config.apiKey?.let { put("Authorization", "ApiKey $it") } | |
| }.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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <style type="text/css"> | |
| #root { | |
| display:flex; | |
| flex-direction: column-reverse; | |
| overflow-y: scroll; | |
| height: 300px; |
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
| cc_library( | |
| name = "mimalloc", | |
| srcs = ["src/static.c"], | |
| textual_hdrs = glob(["src/*.c", "src/*.h"], exclude = ["src/static.c"]), | |
| hdrs = glob(["include/*.h"]), | |
| includes = ["include"], | |
| copts = ["-DMI_MALLOC_OVERRIDE"], | |
| visibility = ["//visibility:public"], | |
| ) |
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
| { | |
| "images" : [ | |
| { | |
| "filename" : "test.svg", | |
| "idiom" : "iphone" | |
| } | |
| ], | |
| "info" : { | |
| "author" : "xcode", | |
| "version" : 1 |
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
| SWIFT_CLASS("_TtC3Foo9TestClass") | |
| @interface TestClass : NSObject | |
| - (void)fooWithLabel:(NSString * _Nonnull)arg; | |
| - (void)foo1:(NSString * _Nonnull)arg; | |
| - (void)barWithLabel:(NSString * _Nonnull)arg other:(NSInteger)ar; | |
| - (void)bar1:(NSString * _Nonnull)arg other:(NSDictionary<NSString *, id> * _Nonnull)ar; | |
| - (void)quxWithLabel:(NSString * _Nonnull)arg :(NSInteger)ar; | |
| - (void)qux1:(NSString * _Nonnull)arg :(NSArray * _Nonnull)ar; | |
| - (void)thudWithArg:(int64_t)arg ar:(double)ar; | |
| - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
NewerOlder