Skip to content

Instantly share code, notes, and snippets.

View EwertonBello's full-sized avatar
🎯
Focusing

Ewerton Belo EwertonBello

🎯
Focusing
View GitHub Profile
@EwertonBello
EwertonBello / GameManager.cs
Created December 24, 2021 17:30
Controle de temporizador, movimentos do player, posição aleatória da esfera no labirinto,colisão com esfera e ações da tela de resultado da partida Unity
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;
@EwertonBello
EwertonBello / youtube_delete_all_comments.js
Created January 19, 2021 03:53
Script to delete all your youtube comments
// 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();
@EwertonBello
EwertonBello / test_multiprocessing.py
Last active May 7, 2020 21:38
exemplo simples de multiprocessing com Process
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()
@EwertonBello
EwertonBello / async_parallelism.py
Created May 6, 2020 00:08
exemplo simples de parallelism com Asyncio
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),