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
| #https://towardsdatascience.com/how-to-create-a-pdf-report-for-your-data-analysis-in-python-2bea81133b | |
| import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| import lorem | |
| from fpdf import FPDF |
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
| from datetime import datetime | |
| from airflow.decorators import dag, task | |
| # https://airflow.apache.org/docs/apache-airflow/stable/howto/dynamic-dag-generation.html | |
| # https://docs.astronomer.io/learn/dynamically-generating-dags | |
| configs = { | |
| "config1": {"message": "first DAG will receive this message"}, | |
| "config2": {"message": "second DAG will receive this message"}, | |
| } | |
| for config_name, config in configs.items(): |
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
| #!/usr/bin/env bash | |
| sudo apt-get update | |
| clear | |
| echo "--------------UPDATED--------" | |
| sudo apt-get install default-jdk | |
| clear | |
| java -version | |
| echo "-------------JAVA INSTALLED----" |
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 cv2 | |
| import numpy as np | |
| cap = cv2.VideoCapture('vtest.avi') | |
| frame_width = int( cap.get(cv2.CAP_PROP_FRAME_WIDTH)) | |
| frame_height =int( cap.get( cv2.CAP_PROP_FRAME_HEIGHT)) | |
| fourcc = cv2.VideoWriter_fourcc('X','V','I','D') |
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
| # install.packages("modelr") | |
| library(modelr) | |
| set.seed(1) # Run to replicate this post | |
| View(mtcars) | |
| folds <- crossv_kfold(mtcars, k = 5) | |
| folds$train[[1]] | |
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
| <?php | |
| $myObj->name = "John"; | |
| $myObj->age = 30; | |
| $myObj->city = "New York"; | |
| $myObj2->nome = "James"; | |
| $myObj2->sobrenome = "Alves"; | |
| $myObj3->nome = "Silva"; | |
| $myObj3->sobrenome = "Junior"; |
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 schedule | |
| import time | |
| contador = 0 | |
| def job(): | |
| global contador | |
| contador = contador + 1 | |
| print("I'm working... {}".format(contador)) |
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
| // Algoritmos Genéticos - Problema OneMax | |
| #include <iostream> | |
| #include <vector> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| using namespace std; | |
| // parâmetros do algoritmo genético | |
| int tam_genes = 100; // quantidade de genes |
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
| package testeRobot; | |
| import java.awt.AWTException; | |
| import java.awt.Color; | |
| import java.awt.Rectangle; | |
| import java.awt.Robot; | |
| import java.awt.Toolkit; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.io.IOException; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <persistence version="2.0" | |
| xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | |
| <persistence-unit name="gerenciadorAcessoPU" | |
| transaction-type="RESOURCE_LOCAL"> | |
| <properties> | |
NewerOlder