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
interface LocalSession { | |
sessionId?: string; | |
timestamp?: number; | |
} | |
interface PageViewParams { | |
hit: "page_view"; | |
params: { | |
page_location: string; | |
page_title: string; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to | |
* specific functions. |
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
(0, [7.923583984375], 24.054566752526142), | |
(1, [7.830810546875], 24.73372832933107), | |
(2, [7.833251953125], 24.75553454896932), | |
(3, [7.852783203125], 24.85252324500952), | |
(4, [7.852783203125], 24.85252324500952), | |
(5, [7.860107421875], 24.853315818498054), | |
(6, [7.860107421875], 24.853315818498054), | |
(7, [7.860107421875], 24.853315818498054), | |
(8, [7.860107421875], 24.853315818498054), | |
(9, [7.860107421875], 24.853315818498054), |
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 gaft import GAEngine | |
from gaft.components import BinaryIndividual, Population | |
from gaft.operators import RouletteWheelSelection, UniformCrossover, FlipBitMutation | |
from gaft.plugin_interfaces.analysis import OnTheFlyAnalysis | |
from gaft.analysis.fitness_store import FitnessStore | |
from math import cos, sin | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# Parametros para geração dos individuos |
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
import React, { PureComponent } from "react"; | |
import { | |
ResponsiveContainer, | |
ComposedChart, | |
Line, | |
Area, | |
Bar, | |
XAxis, | |
YAxis, | |
CartesianGrid, |
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
// Cria um cliente tmi com nossas opções | |
const client = new tmi.client(opts); | |
//intercepta mensagem do chat | |
function mensagemChegou(alvo, contexto, mensagem, ehBot) { | |
if (ehBot) { | |
return; //se for mensagens do nosso bot ele não faz nada | |
} | |
const nomeDoComando = mensagem.trim();// remove espaço em branco da mensagem para verificar o comando |
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
// Cria um cliente tmi com nossas opções | |
const client = new tmi.client(opts); | |
// Registra nossas funções | |
client.on('message', mensagemChegou); | |
client.on('connected', entrouNoChatDaTwitch); | |
// Connecta na Twitch: | |
client.connect(); |
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
//intercepta mensagem do chat | |
function mensagemChegou(alvo, contexto, mensagem, ehBot) { | |
if (ehBot) { | |
return; //se for mensagens do nosso bot ele não faz nada | |
} | |
const nomeDoComando = mensagem.trim();// remove espaço em branco da mensagem para verificar o comando | |
// checando o nosso comando | |
if (nomeDoComando === '!comandoUM') { | |
console.log(`* Foi Executado o comando ${nomeDoComando}`); |
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 opts = { | |
identity: { | |
username: NOME_DO_BOT, | |
password: O_TOKEN_DO_PASSO_4 | |
}, | |
channels: [ NOME_DO_CANAL_QUE_O_BOT_VAI_FICAR ] | |
}; |
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
console.log("FERRAMENTAS ESTÃO OK"); | |
const tmi = require('tmi.js'); | |
const NOME_DO_BOT = 'NOME DA SUA CONTA DE BOT' | |
const NOME_DO_CANAL_QUE_O_BOT_VAI_FICAR = 'NOME DO CANAL' | |
const O_TOKEN_DO_PASSO_4 = 'TOKEN' |
NewerOlder