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
#!/bin/bash | |
response=$(curl --write-out '%{http_code}' --silent --output /dev/null <address>) | |
if [ "$response" != "200" ]; then | |
reboot | |
fi |
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
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
<?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
#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
#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
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" |
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
int analogPin1 = 1; // 1a. entrada analógica | |
int analogPin2 = 2; // 2a. entrada analógica | |
int primeira_vez = 1; | |
int i = 1; // contador do while que vai calcular a média dos valores de entrada | |
int k1 = 0; // contador do número de picos que serão encontrados | |
int sinal_original_um[99]; | |
int sinal_original_dois[99]; | |
int time1[99]; | |
int time2[99]; | |
int contador_de_medidas; |
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 Foundation import * | |
from ScriptingBridge import * | |
# Returns the methods of the object | |
def __methods( theObject ): | |
return [method for method in dir(theObject) if callable(getattr(theObject, method))] | |
# Elements present in one list but not in the other | |
def __diffList( A, B): | |
return list( set( A ) - set( B ) ) |
NewerOlder