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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.SceneManagement; | |
public class GameManager : MonoBehaviour | |
{ | |
[SerializeField] private float startTime = 30.0f; | |
private float timer; |
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
// Link: https://www.youtube.com/feed/history/comment_history | |
// Copie e cole esse script no console da página do histórico de comentários do youtube | |
// Copy and paste this script into the console of the youtube comment history page | |
let items = document.getElementsByTagName("li"); | |
let ariaLabel = "Excluir item da atividade";// Value in "aria-label" of delete button | |
for(let i=0; i < items.length; i++){ | |
if (items[i].getAttribute("aria-label") == ariaLabel){ | |
items[i].click(); |
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 time | |
from multiprocessing import Process | |
def tarefa(seg): | |
time.sleep(seg) | |
print(f'Concluído em {seg} segundos...') | |
def main(): | |
p1 = Process(target=tarefa, args=(4,)) | |
p1.start() |
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 asyncio | |
async def tarefa(seg): | |
await asyncio.sleep(seg) | |
print(f'Concluído em {seg} segundos...') | |
async def main(): | |
await asyncio.gather( | |
tarefa(4), | |
tarefa(2), |