Autor: Gabriel Nobrega de Azevedo
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
const matrizInimigoGrande = [ | |
[0,0], | |
[400,0], | |
[800,0], | |
[1200,0], | |
[1600,0], | |
[0,400], | |
[400,400], | |
[800,400], | |
[1200, 400], |
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
const matrizInimigo = [ | |
[0, 0], | |
[104, 0], | |
[208, 0], | |
[312, 0], | |
[0, 104], | |
[104, 104], | |
[208, 104], | |
[312, 104], | |
[0, 208], |
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
/** | |
Nuno Azevedo @nunoazev - 2019 | |
https://nunoazev.com | |
*/ | |
//ESP | |
#include <ESP8266WiFi.h> | |
//MQTT | |
#include <PubSubClient.h> |
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
FROM php:7.2-apache | |
RUN docker-php-ext-install mysqli | |
RUN a2enmod rewrite |
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
# Instalação Kubernetes | |
# curl -fsSL https://get.docker.com | bash | |
# apt-get update && apt-get install apt-transport-https | |
# vim /etc/source.list.d/kubernetes.list | |
# deb http://apt.kubernetes.io/ kubernetes-xenial main | |
# apt-get update | |
# apt-get install -y kubelet kubectl kubeadm | |
# vim /etc/sysctl.conf | |
# net.bridge.bridge-nf-call-ip6tables = 1 | |
# net.bridge.bridge-nf-call-iptables = 1 |
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
(function () { | |
const timeContainer = document.querySelectorAll( | |
".ytd-thumbnail-overlay-time-status-renderer" | |
); | |
let timeSeconds = 0; | |
for (let i = 0; i < timeContainer.length; i++) { | |
const timeStr = timeContainer[i].innerText; | |
if (!/\d?\d:\d{2}(:\d{2})?/g.test(timeStr)) continue; | |
const timeParts = timeStr.split(":"); |
Se você quiser adicionar mais algum tópico deixe seu comentário, o objetico é facilitar para os iniciantes ou aqueles que buscam dominar JavaScript, quais tópicos são importantes para dominar JavaScript.
São tópicos para quem sabe o minimo de JavaScript (declarar variáveis), a ordem em que eles aparecem são por importância para o dominio como um todo. Mesmo que você já tenha experiência com JS, recomendo que leia os links de cada tópico para fortalecer suas bases teóricas e ter um comportamento mais profundo da linguagem.
Lista originalmente criada e compilada por Vinicius Reis
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 mqtt = require('mqtt'); | |
var Topic = '#'; //subscribe to all topics | |
var Broker_URL = 'mqtt://192.168.1.123'; | |
var Database_URL = '192.168.1.123'; | |
var options = { | |
clientId: 'MyMQTT', | |
port: 1883, | |
//username: 'mqtt_user', | |
//password: 'mqtt_password', |
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
describe('Shopping List', function() { | |
before(function(done) { | |
// The below is the error returned when 'mocha' runs | |
// Shopping List | |
// 1) "before all" hook | |
// 0 passing (33ms) | |
// 1 failing |
NewerOlder