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
dados<-read.csv2("/home/aluno/Documentos/dados1_PCA.csv",header=T) | |
dados_sem_titulo<-data.frame( | |
dados$ganho_bruto, | |
dados$ganho_liquido, | |
dados$patrimonio | |
) | |
matriz_covariancia<-cov(dados_sem_titulo) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define MAX 10000000 | |
void countingsort(int* A, int* B, int size) { | |
int i; | |
int k = A[0]; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define MAX 105 | |
void sort(int *array, int k) { | |
int* ord = (int*)malloc(k * sizeof(int)); | |
int i = 0; | |
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
x = 10 | |
x | |
y <- c(10, 9, 8) # concatenar | |
y | |
x1 <- seq(0,1, by=0.1) # Cria sequencia de 0 até 1 (pulando 0.1) | |
x1 | |
help(x1) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
// Returns the pivot | |
int partition(int *vet, int p, int r) { | |
int q = vet[r], i = p - 1, j = 0, temp = 0; | |
for(j = p; j < r - 1; j++) { | |
if(vet[j] < q) { | |
i++; |
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
feat: Used when adding a new feature to the project. | |
fix: Used when fixing a bug or issue in the project. | |
docs: Used for documentation-related changes, such as updating README files or adding comments. | |
style: Used for code style changes, such as formatting, indentation, or renaming variables. | |
refactor: Used when making code changes that neither fix a bug nor add a feature, but improve the overall structure or readability. | |
test: Used for adding or modifying tests. | |
chore: Used for miscellaneous tasks, such as updating dependencies, configuring build tools, or performing maintenance tasks. |
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
<include src="path_to_your_html_file"></include> | |
<script type="text/javascript"> | |
async function includeHTML() { | |
const includes = document.getElementsByTagName('include'); | |
[].forEach.call(includes, include => { | |
let filePath = include.getAttribute('src'); | |
fetch(filePath).then((file) => { | |
file.text().then((content) => { | |
include.insertAdjacentHTML('afterend', content); |
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 numpy | |
import math | |
import cv2 | |
import mediapipe as mp | |
DESIRED_HEIGHT = 480 | |
DESIRED_WIDTH = 480 | |
localImages = [ | |
r'/home/guilherme/Projects/mediapipe/teste.png' |
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 'package:flutter/material.dart'; | |
import 'package:video_player/video_player.dart'; | |
class Desafio extends StatefulWidget { | |
const Desafio({Key? key}) : super(key: key); | |
@override | |
State<Desafio> createState() => DD(); | |
} |
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 'package:flutter/material.dart'; | |
import 'package:sensors_plus/sensors_plus.dart'; | |
import 'dart:math'; | |
class Jogo extends StatefulWidget { | |
const Jogo({Key? key}) : super(key: key); | |
@override | |
State<Jogo> createState() => JJ(); | |
} |
NewerOlder