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
use warp::Filter; | |
use futures_util::sink::SinkExt; | |
use futures_util::stream::StreamExt; | |
use std::collections::HashMap; | |
use std::sync::{Arc, Mutex}; | |
use warp::ws::{WebSocket, Message}; | |
type Clients = Arc<Mutex<HashMap<String, tokio::sync::mpsc::UnboundedSender<Message>>>>; | |
#[tokio::main] |
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
{ | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"$id": "http://discounttire.com/schemas/cvm-gkomnipos.json", | |
"title": "CVM to GK OmniPOS definition", | |
"version": "0.0.8", | |
"comments": [ | |
{ | |
"version": "0.0.8", | |
"changes": [ | |
"genericVehicleNotes removed. vehicleComment (both generic and regular vehicle can use this field)", |
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
var rn_bridge = require('rn-bridge'); | |
const { MTProto } = require('./node_modules/telegram-mtproto/lib') | |
const config = { | |
id: 48333, | |
hash: '620d2f971efe51f9a69539e13bfb1efa' | |
} | |
var telegram = MTProto({ |
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
var rn_bridge = require('rn-bridge'); | |
const { MTProto } = require('./node_modules/telegram-mtproto/lib') | |
const config = { | |
id: 48333, | |
hash: '620d2f971efe51f9a69539e13bfb1efa' | |
} | |
var telegram = MTProto({ |
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
Proposições de valores da Engarte | |
======================================================== | |
Para nos ajudar com a clareza de propositos da Engarte, definirei aqui algumas questões relativas ao nosso posicionamento, motivo de existir, intenções e formato de comunicaçã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
def more_like_this | |
@response = Tire::Configuration.client.get(Tire::Configuration.url + "/#{self.class.to_s.pluralize.downcase}/#{self.class.to_s.downcase}/#{id}/_mlt") | |
if @response.failure? | |
STDERR.puts "[REQUEST FAILED] #{self.to_curl}\n" | |
raise SearchRequestFailed, @response.to_s | |
end | |
@json = MultiJson.decode(@response.body) | |
Tire::Results::Collection.new(@json, {}) | |
end |