Skip to content

Instantly share code, notes, and snippets.

View argentinaluiz's full-sized avatar

Luiz Carlos argentinaluiz

View GitHub Profile
// This file was initially generated by Windows Terminal 0.11.1333.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{73225108-7633-47ae-80c1-5d00111ef646}",
// You can add more global application settings here.
@argentinaluiz
argentinaluiz / README.md
Created August 12, 2020 14:06
VSCode - Guia para configuração do ambiente com Docker
<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) {};
}
@argentinaluiz
argentinaluiz / index.html
Last active October 13, 2023 00:16
Quickstart with Angular 2
<html>
<head>
<title>Angular 2 - School of Net</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
// 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 / Guia rápido de instalação do WSL2 + Docker.md
Last active May 30, 2023 23:47
Guia rápido de instalação do WSL2 + Docker