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
// DAQ_Uno_Filtro_Calculo.ino | |
#define PINO A0 | |
// Configuração da taxa de amostragem | |
const float fs = 10.0; // Hz | |
const unsigned long PERIODO_US = 1000000UL / (unsigned long)fs; | |
// Configuração do filtro | |
const float fc = 1.00; // frequência de corte (Hz) | |
const float Q = 0.7071; // fator de qualidade |
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> | |
// Função auxiliar para trocar dois elementos | |
void swap(int* a, int* b) { | |
int t = *a; | |
*a = *b; | |
*b = t; | |
} | |
// Função para imprimir a lista |
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> | |
void printArray(int arr[], int size) { | |
for (int i = 0; i < size; i++) { | |
printf("%d ", arr[i]); | |
} | |
printf("\n"); | |
} | |
void insertionSort(int arr[], int size) { |
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> | |
// Função para imprimir a lista | |
void printList(int arr[], int size) { | |
for (int i = 0; i < size; i++) { | |
printf("%d ", arr[i]); | |
} | |
printf("\n"); | |
} |
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
// ------------------------------------------------------------------------------ | |
// PlayerController.cs | |
// Autor: Gabriel Torres | |
// Data: 24/06/2025 | |
// Descrição: Controlador do jogador para movimentação horizontal em 2D. | |
// ------------------------------------------------------------------------------ | |
using Assets._Project.Code.Settings; | |
using UnityEngine; | |
using UnityEngine.InputSystem; |
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
Transform: AWS::Serverless-2016-10-31 | |
Description: SAM notes application api | |
Parameters: | |
apiBucket: | |
Type: String | |
Default: '[apiBucket]' | |
tableName: | |
Type: String | |
Default: Notes |
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
#!/bin/bash | |
# install httpd (linux 2 version) | |
yum update -y | |
yum install -y httpd | |
systemctl start httpd | |
systemctl enable httpd | |
echo "<h1>Hello World from $(hostname -f)</h1>"> /var/www/html/index.html | |
#!/bin/bash |
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 Microsoft.AspNetCore.Identity; | |
namespace WebApi.Extensions | |
{ | |
public class IdentityPortugueseMessages: IdentityErrorDescriber | |
{ | |
public override IdentityError DefaultError() { return new IdentityError { Code = nameof(DefaultError), Description = $"Um erro desconhecido ocorreu." }; } | |
public override IdentityError ConcurrencyFailure() { return new IdentityError { Code = nameof(ConcurrencyFailure), Description = "Falha de concorrência otimista, o objeto foi modificado." }; } | |
public override IdentityError PasswordMismatch() { return new IdentityError { Code = nameof(PasswordMismatch), Description = "Senha incorreta." }; } | |
public override IdentityError InvalidToken() { return new IdentityError { Code = nameof(InvalidToken), Description = "Token inválido." }; } |