https://docs.microsoft.com/pt-br/dotnet/csharp/ https://docs.microsoft.com/en-us/dotnet/core/introduction
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 <Stepper.h> | |
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution | |
// for your motor | |
// initialize the stepper library on pins 8 through 11: | |
Stepper myStepper(stepsPerRevolution, 2, 3, 4, 5); | |
int stepCount = 0; // number of steps the motor has taken |
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
<?php | |
/** | |
* Formulário simples utilizando método POST | |
*/ | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Minha Página</title> |
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
from mido import MidiFile, MidiFile, MidiTrack | |
# Abrindo o arquivo de origem | |
input_midi = MidiFile('./Murundu.mid') | |
# Criando o arquivo de destino e a nova faixa MIDI | |
output_midi = MidiFile() | |
# Mantendo o tempo (BPM) entre os arquivos | |
output_midi.ticks_per_beat = input_midi.ticks_per_beat |
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 glob, os, eyed3 | |
#Lendo o diretorio atual | |
caminho = os.getcwd() | |
#Gerando a lista de arquivos mp3 | |
playlist = glob.glob(caminho + "\\*.mp3") | |
print(str(len(playlist)) + " musicas encontradas.") | |
print(playlist) |
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 | |
response=$(curl --write-out '%{http_code}' --silent --output /dev/null <address>) | |
if [ "$response" != "200" ]; then | |
reboot | |
fi |
OlderNewer