This file contains hidden or 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 os | |
import random | |
import numpy as np | |
from sklearn.model_selection import train_test_split | |
dir_src = "{Diretório de origem}" | |
dir_test = "{Diretório destino das imagens de teste}" | |
dir_train = "{Diretório destino das imagens de traino}" | |
# Quantidade de imagens a serem selecionadas no dataset |
This file contains hidden or 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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Example of plotting live data with websockets and highcharts</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script src="mqttws31.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
var MQTTbroker = 'test.mosquitto.org'; | |
var MQTTport = 8080; | |
var MQTTsubTopic = 'meriat/sala1/#'; //works with wildcard # and + topics dynamically now |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace TiposAnonimos | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains hidden or 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
# Importing modules Tweepy, Datetime and Json | |
from tweepy.streaming import StreamListener | |
from tweepy import OAuthHandler | |
from tweepy import Stream | |
import json | |
# Replace following access keys of your api twitter. Consumer Key, Consumer Secret, Access Token and Access Token Secret | |
consumer_key = "{your_consumer_key}" | |
consumer_secret = "{your_consumer_secret}" | |
access_token = "{your_access_token}" |
This file contains hidden or 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Title = "Listar Tabelas do Azure Storage Service"; | |
//"DefaultEndpointsProtocol=https;AccountName=MinhaConta;AccountKey=MinhaSenha"; | |
string connectionString = "UseDevelopmentStorage=true"; | |
var TablesName = ListaNomesTabelas(connectionString); |
This file contains hidden or 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
public async Task<bool> EntityExists(string partitionKey, string rowKey) | |
{ | |
var tableQuery = new TableQuery<DynamicTableEntity>(); | |
tableQuery.FilterString = TableQuery.CombineFilters( | |
TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, partitionKey), | |
TableOperators.And, | |
TableQuery.GenerateFilterCondition("RowKey", QueryComparisons.Equal, rowKey)); | |
var dynamicTableEntities = await CloudTable.ExecuteQuerySegmentedAsync(tableQuery, null, TableRequestOptions, OperationContext); | |
return dynamicTableEntities.Results.Any(); |
This file contains hidden or 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
void Main() | |
{ | |
var account = ""; | |
var key = ""; | |
var tableName = ""; | |
var storageAccount = CloudStorageAccount.Parse($"DefaultEndpointsProtocol=https;AccountName={account};AccountKey={key}"); | |
CloudTableClient tableClient = storageAccount.CreateCloudTableClient(); | |
CloudTable table = tableClient.GetTableReference(tableName); |