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
# Super PyLogin 3000 | |
import sys | |
USERS = {} | |
def create_account(username, password): | |
if not username in USERS: | |
USERS[username] = password | |
print("Account created") |
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
# -*- coding: utf-8 -*- | |
# | |
# luciano_silva_simulator.py | |
# | |
# Copyright 2015 Ericson Willians (Rederick Deathwill) <EricsonWRP@ERICSONWRP-PC> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. |
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
# | |
# pylazy.py | |
# | |
# Copyright 2015 Ericson Willians (Rederick Deathwill) <EricsonWRP@ERICSONWRP-PC> | |
# | |
# This script recursively searches for python.exe in the C partition of the system, | |
# And adds its path to the system's PATH environment variable to help new users. | |
# It also considers some basic common softwares that uses Python, such as GIMP, and ignores them. | |
# | |
# This program is free software; you can redistribute it and/or modify |
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
# -*- coding: utf-8 -*- | |
# | |
# astrological_possibilities.py | |
# | |
# Copyright 2015 Ericson Willians (Rederick Deathwill) <EricsonWRP@ERICSONWRP-PC> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# PyWinPath.py | |
# | |
# Copyright 2015 Ericson Willians (Rederick Deathwill) <EricsonWRP@ERICSONWRP-PC> | |
# | |
# This script recursively searches for python.exe in the C partition of the system, | |
# And adds its path to the system's PATH environment variable to help new users. | |
# It also considers some basic common softwares that uses Python, such as GIMP, and ignores them. |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# win32_keylogger.pyw | |
# | |
# Copyright 2015 Ericson Willians (Rederick Deathwill) <EricsonWRP@ERICSONWRP-PC> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
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
# Silly private class implementation attemp in Python, by Rederick Deathwill. | |
class PrivateClass(): | |
def __init__(self, **kwargs): | |
self.vars = kwargs | |
def __getattr__(self, attr): | |
for key in self.vars["private"]: | |
if key == attr: | |
raise RuntimeError("You're not allowed to access a private variable ('{0:s}').".format(attr)) | |
for key in self.vars["public"]: |
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
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char **argv) | |
{ | |
char jogadores[8][30]; | |
char duplas[4][2][30]; | |
char vencedores[4][30]; | |
char duplas_finalistas[2][2][30]; | |
char vencedores_finalistas[2][30]; |
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
jogadores = [] | |
duplas = [] | |
vencedores = [] | |
print("=== Lika Pong 1.0 (Python Version) ===") | |
print("==== 8 Jogadores ====") | |
print("========================================================") | |
print("Insira o nome de cada jogador.") | |
print("========================================================") | |
for i in range(8): | |
jogadores.append(input("Jogador %s: " % str(i+1))) |
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
""" | |
Poem rules: | |
Only classes and functions, no global variables (And no strings, only chars on the arguments). | |
Also, only one output is allowed (It can be a single statement, or an endless expression.) | |
And more importantly: Everything must happen inside a tuple. | |
""" | |
class Everything(): | |
def __init__(self): | |
pass |