Skip to content

Instantly share code, notes, and snippets.

View argentinaluiz's full-sized avatar

Luiz Carlos argentinaluiz

View GitHub Profile
<html>
<head>
<link href="https://unpkg.com/video.js@7.13.1/dist/video-js.min.css" rel="stylesheet" />
<script src="https://unpkg.com/video.js@7.13.1/dist/video.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/videojs-contrib-eme@3.8.1/dist/videojs-contrib-eme.min.js"></script>
<script src="/uaparser.min.js"></script>
<script>
/* var userAgent = new UAParser();
alert(JSON.stringify(userAgent.getBrowser())); */
</script>
<html>
<head>
<link href="https://unpkg.com/video.js@7.13.1/dist/video-js.min.css" rel="stylesheet" />
<script src="https://unpkg.com/video.js@7.13.1/dist/video.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/videojs-contrib-eme@3.8.1/dist/videojs-contrib-eme.min.js"></script>
<script src="uaparser.min.js"></script>
<style type="text/css">
.vjs-matrix.video-js {
color: #fcca50;
}
@argentinaluiz
argentinaluiz / product.proto
Last active October 22, 2023 00:15
Protofile do desafio da Imersão Full Cycle
syntax = "proto3";
package github.com.codeedu.codepix;
option go_package = "protofiles/pb";
service ProductService {
rpc CreateProduct (CreateProductRequest) returns (CreateProductResponse) {};
rpc FindProducts(FindProductsRequest) returns (FindProductsResponse) {};
}
// Cliente
const MAX_ATTEMPTS = 3; // Número máximo de tentativas
let currentAttempts = 0; // Contador de tentativas
let currentInterval = 1000; // Intervalo inicial entre chamadas (em milissegundos)
function longPolling() {
fetch('/server-endpoint')
.then(response => response.json())
.then(data => {
if (data && data.length > 0) {
@argentinaluiz
argentinaluiz / consumer.ts
Last active July 17, 2023 17:11
Nestjs with Kafka - Subscribe with wildcard
@MessagePattern('/orders.*/', { flags: 'i' })
@argentinaluiz
argentinaluiz / connection.go
Created April 1, 2023 03:01
Golang + RabbitMQ + Múltiplos consumers
package queues
import (
"log"
"github.com/streadway/amqp"
)
var conn *amqp.Connection
@argentinaluiz
argentinaluiz / readme.md
Last active November 26, 2022 01:50
cartola fc

Python

cadastro do jogo (match)

  • enviar um evento
{
  "id": 1,
  "match_date": "2022-11-11T10:00",
@argentinaluiz
argentinaluiz / bitmovin.html
Created November 4, 2022 18:52
bitmovin.html
<html>
<head>
<link
rel="stylesheet"
href="https://cdn.bitmovin.com/player/web/8.31.0/bitmovinplayer-ui.css"
/>
</head>
<body>
<div id="video"></div>
<script
@argentinaluiz
argentinaluiz / index.html
Created October 26, 2022 13:53
Apple Fair Play Drm
<html>
<head>
<link href="https://unpkg.com/video.js@7.13.1/dist/video-js.min.css" rel="stylesheet" />
<script src="https://unpkg.com/video.js@7.13.1/dist/video.min.js"></script>
<script src="/videojs-contrib-eme.min.js"></script>
<script src="/uaparser.min.js"></script>
<style type="text/css">
.vjs-matrix.video-js {
color: #fcca50;
}
@argentinaluiz
argentinaluiz / index.html
Created September 6, 2022 22:21
Videojs DRM
<html>
<head>
<link href="https://unpkg.com/video.js@7.13.1/dist/video-js.min.css" rel="stylesheet" />
<script src="https://unpkg.com/video.js@7.13.1/dist/video.min.js"></script>
<script src="/videojs-contrib-eme.min.js"></script>
<script src="/uaparser.min.js"></script>
<script>
/* var userAgent = new UAParser();
alert(JSON.stringify(userAgent.getBrowser())); */
</script>