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
def expand_refs(element: Any, data: Any) -> Any: | |
""" | |
Recursively expand $ref's. | |
""" | |
if isinstance(element, dict): | |
if "$ref" in element: | |
common_schema_path_ref = element["$ref"].split("/")[-1] | |
schema = data["components"]["schemas"][common_schema_path_ref] | |
del element["$ref"] |
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
#!/usr/bin/env python | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# The OpenSearch Contributors require contributions made to | |
# this file be licensed under the Apache-2.0 license or a | |
# compatible open source license. | |
import asyncio | |
from threading import Thread |
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
awscurl "$ENDPOINT/vectors" \ | |
--request PUT \ | |
--service $SERVICE \ | |
--region $AWS_REGION \ | |
--header "Content-Type: application/json; charset=utf-8" \ | |
--data "\ | |
{ \ | |
\"settings\": { \ | |
\"index.knn\": \"true\" \ | |
}, \ |
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
require 'active_support' | |
if ARGV.length < 1 | |
puts "usage: process [file]" | |
exit | |
end | |
class Request | |
attr_reader :conn | |
attr_reader :verb |
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
require 'active_support' | |
if ARGV.length < 1 | |
puts "usage: process [file]" | |
exit | |
end | |
class Request | |
attr_reader :conn | |
attr_reader :verb |
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
require 'json' | |
require 'net/http' | |
require 'optparse' | |
require 'set' | |
require 'uri' | |
require 'octokit' | |
options = {} | |
OptionParser.new do |opt| | |
opt.on('-s', '--start BUILD_NUMBER', 'Require start') { |o| options[:start] = o } |
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
$ ./bin/project -q maintainers missing | |
https://github.com/opensearch-project/dashboards-notebooks | |
https://github.com/opensearch-project/ux |
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
I am attesting that this GitHub handle dblock is linked to the Tezos account tz1ivFsNqtfLTSDh7uzqJ6pArNRG13pkJt4a for tzprofiles | |
sig:edsigtshxfYo5JbUmy38XPrRPwJY98j3nd79WEkVdrhBLVPxMAGSsyR4ai41QTnbygucGMENiRw7axCrFFKk6Cy41zcydx1o9JE |
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
/* | |
Create Element: | |
$Rainb.el('div',{'attribute':"value",style:{"color":"red"}},[ (childnodes) ]) | |
becomes: <div attribute="value" style="color: red;"></div> | |
Append Element | |
$Rainb.add(element,elementToAppend) | |
Get Element By Id | |
$Rainb.id(id); | |
Create TextNode | |
$Rainb.tn(text); |
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
require 'kramdown' | |
text = <<-MARKDOWN | |
# Example | |
The quick brown fox jumps over the lazy dog. | |
```ruby | |
# one |
NewerOlder