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
$resourceGroupName = "poc-database-script-rg" | |
$serverName = "berb-database-poc" | |
$databaseName = "source-database" | |
$newDatabaseName = "copy-database-cli" | |
az sql db copy ` | |
--dest-name $newDatabaseName ` | |
--dest-resource-group $resourceGroupName ` | |
--dest-server $serverName ` | |
--name $databaseName ` |
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
def fizz_buzz(): | |
num = -1 | |
while num < 100: | |
num += 1 | |
yield f"{num} {'fizz' if num % 3 == 0 else ''}{'buzz' if num % 5 == 0 else ''}" | |
for i in fizz_buzz(): | |
print(i) |
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 osbrain import run_agent | |
from osbrain import run_nameserver | |
def somar(agent, message): | |
# Separar números e operador em uma lista | |
operadores = message.split() | |
# Checar se a operação desejada é uma soma | |
if operadores[1] == "+": |