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
/** | |
* Simples Business Hour Verification Function | |
* @title Check for Business Hours | |
* @category Misc | |
* @author Duda Nogueira <[email protected]> | |
* @param {dict} business_hours - Business Hours Notation | |
* @param {string} time_zone - Business Hours Timezone | |
*/ | |
function isInRange(value, range) { |
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
volumes: | |
mongodb_data: { driver: local } | |
services: | |
rocketchat: | |
image: registry.rocket.chat/rocketchat/rocket.chat:${RELEASE:-latest} | |
restart: on-failure | |
labels: | |
traefik.enable: "true" | |
traefik.http.routers.rocketchat.rule: Host(`${DOMAIN}`) |
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
import requests | |
import json | |
# Set up the Rocket.Chat API endpoint and credentials | |
API_URL = 'http://localhost:3000' | |
USERNAME = 'adminrc' | |
PASSWORD = 'admin' | |
def get_auth_token(): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
--- | |
services: | |
weaviate: | |
command: | |
- --host | |
- 0.0.0.0 | |
- --port | |
- '8080' | |
- --scheme | |
- http |
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
dim = 0 | |
objects = 0 | |
for c in client.schema.get()["classes"]: | |
# get class name | |
class_name = c["class"] | |
# get object count | |
count_query = client.query.aggregate(class_name).with_meta_count().do() | |
if not count_query.get("errors"): | |
object_count = count_query["data"]["Aggregate"][class_name][0]["meta"]["count"] | |
# get one object, to discover the dimensions length |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class Script { | |
/** | |
* @params {object} request | |
*/ | |
prepare_outgoing_request({ request }) { | |
let match; | |
// match a allowed commands | |
match = '^'+ request.data.trigger_word + '\\s(status|start|close|livechat)' |
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
<!-- Start of Rocket.Chat Livechat Script --> | |
<script type="text/javascript"> | |
(function(w, d, s, u) { | |
w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u; | |
var h = d.getElementsByTagName(s)[0], j = d.createElement(s); | |
j.async = true; j.src = 'https://chatbot.caeddigital.net/livechat/rocketchat-livechat.min.js?_=201903270000'; | |
h.parentNode.insertBefore(j, h); | |
})(window, document, 'script', 'https://chatbot.caeddigital.net/livechat'); | |
</script> |
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
[ | |
{ | |
"id": "1", | |
"text": "This is the first object.", | |
"vector": [1,2,3,4,5] | |
}, | |
{ | |
"id": "2", | |
"text": "This is the second object.", | |
"vector": [5,6,7,8,9] |
OlderNewer