Skip to content

Instantly share code, notes, and snippets.

View Devwarlt's full-sized avatar
🎮

Nádio Pontes Devwarlt

🎮
View GitHub Profile

Dungeon collection - Hero of the Nexus

  • Pirate Cave
  • Forest Maze
  • Spider Den
  • Snake Pit
  • Forbidden Jungle
  • The Hive
  • Ancient Ruins
  • Magic Woods
  • Sprite World
@Devwarlt
Devwarlt / jogo_da_velha.py
Created September 2, 2021 21:12
Jogo da Velha Simples
from typing import List
quantidade_linhas: int = 3
quantidade_colunas: int = 3
conteudos_coluna: List[str] = []
for linha in range(quantidade_linhas):
conteudos_linha: List[str] = []
@Devwarlt
Devwarlt / load_balancer.py
Last active August 16, 2021 20:49
A load balancer algorithm for thread balancing in order to avoid overwhelming processing and CPU exhaustion.
# Author: Devwarlt
# Date: 14 Aug 2021
#
# About this algorithm:
# A load balancer algorithm for thread balancing in order to avoid
# overwhelming processing and CPU exhaustion.
#
from typing import (
Callable, Iterable, Any,
@Devwarlt
Devwarlt / unpack_sorted_sample.py
Last active August 11, 2021 21:07
Unpack Sorted: This is a cool feature to use if you don't mind about sending bunch of arguments to a method. Use it wisely!
# Author: Devwarlt
# Date: 11 Aug 2021
#
# About this algorithm:
# This is a cool feature to use if you don't mind
# about sending bunch of arguments to a method.
# Use it wisely!
#
# Sample class for testing purposes-only.
@Devwarlt
Devwarlt / mail_list.txt
Last active June 6, 2021 17:23
Generic ReGex for e-mail validation using Python
devwarltdevwarltdevwarltdevwarltdevwarltdevwarltdevwarltdevwarlt@gmail.com
devwarlt@gmail.cmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmom
devwarlt@gmail.cmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmommmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmom
asfajhkjklhjklççç~ç~ç~ç~ç@php.com
asdfasdfasdf32452452fgsdfgsdfg,m.m,m,n,m.n,m@email.br
0-9a-zA-Z@0-9a-zA-Z.0-9a-zA-Z
blablabla@9120734089712340.ascasd
@Devwarlt
Devwarlt / dynamo_abstraction.ino
Last active May 15, 2021 04:31
Projeto #1 - Sistemas Embarcados
/*
TinkerCAD -> https://www.tinkercad.com/things/2GZe8DThGtU
Embedded Systems - UniProjeção
Professor: João Evangelista
Student: Nádio Dib
# About:
This is an abstract simulator of what dynamo does
@Devwarlt
Devwarlt / employee_db_queries.sql
Created April 8, 2021 01:23
Advanced Database Topics - Queries for assignment 1.
-- Professor: Juan Sebastian Toquica
-- Student: Nádio Dib (201918579)
-- Gist: https://gist.github.com/Devwarlt/8f52d04496efb841ad183129eda3b838
SELECT
`Fname`, `Lname`
FROM
`employee`
WHERE
`Super_ssn` IS NULL;
@Devwarlt
Devwarlt / sistema_taxi.sql
Last active March 25, 2021 00:45
TABD - Exercício 1
-- Student: Nádio Dib (201918579)
-- Gist: https://gist.github.com/Devwarlt/71dc93159ebb156377676c3315c1f979
-- suppress MySQL warnings, just in case
-- we do receive truncated data, for more
-- details, checkout following reference:
-- https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_sql_notes
SET SESSION sql_notes = 0;
-- disable MySQL Server logs messages
@Devwarlt
Devwarlt / date_example.java
Last active March 15, 2021 14:38
A simple class example in Java.
package br.projecao.meuprojeto;
import java.util.Date;
import java.text.SimpleDateFormat;
public class Principal {
public static void main(String[] args) {
int ano = 1993;
int mes = 05;
int dia = 20;
@Devwarlt
Devwarlt / command.ps
Created March 5, 2021 17:11
Get a list of total memory used by each process using Powershell.
get-process -computername $env:computername | Group-Object -Property ProcessName | Format-Table Name, @{n='Mem (KB)';e={'{0:N0}' -f (($_.Group|Measure-Object WorkingSet64 -Sum).Sum / 1KB)};a='right'} -AutoSize