Skip to content

Instantly share code, notes, and snippets.

View abner-math's full-sized avatar
🤖
DON'T PANIC!

Abner Matheus Araujo abner-math

🤖
DON'T PANIC!
View GitHub Profile
@abner-math
abner-math / PySnake.py
Last active August 29, 2015 14:06
A clone of the classic game Snake developed by me in my spare time, using Python 2.7
#!/usr/bin/python
# -*-coding=utf-8 -*-
#-----------------------------------------------------------
# PySnake v2.2
# Created by: Abner Matheus
# E-mail: [email protected]
# Github: http://github.com/picoledelimao
#-----------------------------------------------------------
import os, platform, time, sys, select
from random import randint
@abner-math
abner-math / PyPac.py
Last active October 4, 2022 14:54
A clone of the class game Pacman made in Python 2.7
#!/usr/bin/python
# -*-coding=utf-8 -*-
#-----------------------------------------------------------------
# PyPac v1.2
# Created by: Abner Matheus
# E-mail: [email protected]
# Github: http://github.com/picoledelimao
#-----------------------------------------------------------------
import time, os, platform, sys, select, math
from random import randint
#!/usr/bin/python
# -*-coding=utf-8 -*-
#-----------------------------------------------------------
# PyInvaders v3.1
# Created by: Abner Matheus
# E-mail: [email protected]
# Github: http://github.com/picoledelimao
#-----------------------------------------------------------
import time, os, platform, random, sys, select
@abner-math
abner-math / Mesquita.py
Last active August 29, 2015 14:07
Statistical software to calculate over some models
#!/usr/bin/python
# -*-coding=utf-8 -*-
#-----------------------------------------------------------------
# Mesquita v1.0
# Created by: Abner Matheus
# E-mail: [email protected]
# Github: http://github.com/picoledelimao
#-----------------------------------------------------------------
import math
{
"name": "...",
"email": "[email protected]",
"password": "123#"
}
@abner-math
abner-math / System.java
Created February 1, 2020 16:49
Medium#1
public class System {
private Set<User> users;
public void setUsers(Set<User> users) {
this.users = users;
}
public Set<Usuario> getUsers() {
return this.users;
public class PrivacyInvader {
private System system;
public boolean addUser(String login, String password) {
return system.getUsers().add(new User(login, password));
}
public boolean removeUser(User user) {
return system.getUsers().remove(user);
public class System {
private Set<User> users;
public void setUsers(Set<Usuario> users) {
this.users = users;
}
public Set<Usuario> getUsers() {
return this.users;
public class PrivacyInvader {
private System system;
public boolean addUser(String login, String password) {
return system.addUser(login, password);
}
public boolean removeUser(User user) {
return system.remove(user);
import java.util.Collections;
public class System {
private Set<User> users;
public Set<User> getUsers() {
return Collections.unmodifiableSet(this.users);
}