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
#!/bin/bash | |
echo "Insira o endereço a ser analisado" | |
read ip | |
echo "Insira o numero de portas a ser analisado" | |
read port | |
for ((a=1; a <= port ; a++)) |
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
#!/bin/bash | |
echo "Insira o endereço a ser analisado" | |
read site_tk | |
echo "Baixar quantas vezes?" | |
read vezes | |
for ((a=1; a <= vezes ; a++)) |
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
@echo off | |
forfiles -p "CAMINHODOBANCO" -s -d -1 -m *.bak -c "cmd /c del /f /q @path" | |
stop | |
exit |
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 os | |
import json | |
from flask import Flask, request | |
import requests | |
import traceback | |
''' | |
Estrutura do json carregado pelo app | |
{ | |
"tokens": { |
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 numpy as np | |
from netCDF4 import Dataset | |
# Criando dado de exemplo | |
data_array = np.zeros((100, 100)) | |
# Criando dataset | |
dataset = Dataset('dataset.nc', 'w', format='NETCDF4') | |
# Criando as dimensões que serão utilizadas |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Example to understand the difference between interpolation and regression | |
import numpy as np | |
from scipy import interpolate | |
import matplotlib.pyplot as plt | |
from sklearn.linear_model import LinearRegression | |
# ===== Regression |
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
#include <iostream> | |
// Idea from: https://stackoverflow.com/questions/5171739/tostring-override-in-c | |
class Teste | |
{ | |
private: | |
int a; | |
public: | |
Teste(int a) |
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Arbitrary Spectral Slope Noise Generation % | |
% with OCTAVE Implementation % | |
% % | |
% From Little, 1992. Adapted from R. Rosa (08/08/14) % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
function x = powernoise(beta, N, varargin) | |
% Generate samples of power law noise. The power spectrum | |
% of the signal scales as f^(-beta). |
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 numpy as np | |
import pandas as pd | |
from sklearn import linear_model | |
import matplotlib.pyplot as plt | |
# Carregando os dados | |
data_owd = pd.read_csv('https://covid.ourworldindata.org/data/owid-covid-data.csv') | |
# Filtrando os dados (Canadá) | |
can = data_owd[data_owd.iso_code == 'CAN'] |
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 stac | |
bdc_stac_service = stac.STAC('http://brazildatacube.dpi.inpe.br/bdc-stac/0.8.0/') | |
collection = bdc_stac_service.search({'collections': ['LC8SR'], "intersects": {"type": "Point", "coordinates": [-45, -13] }, "limit": 10}) |
OlderNewer