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
Webster;77;95;30 | |
Carroll;64;35;95 | |
Leman;96;40;41 | |
Winter;91;92;49 | |
Baldwin;54;63;55 | |
Ferguson;79;59;83 | |
Bishop;77;72;89 | |
Larkins;37;38;24 | |
Duncan;66;98;81 | |
Attwood;27;34;73 |
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
from PIL import Image | |
# Создаем палитру для изображения | |
palettedata = [191,116,202,208,149,228,222,179,235,145,41,52,195,92,118,225,148,157,243,198,208,207,91,82,121,48,34,175,76,33,114,97,50,143,124,64,172,161,104,87,66,57,142,130,113,172,157,141,195,190,186,83,56,51,163,133,107,220,197,185,190,15,43,144,99,126,181,142,175,187,139,88,209,178,108,228,212,150,92,90,53,128,132,89,150,153,105,207,128,108,229,207,7,207,206,199,236,227,140,206,29,83,42,38,40,58,65,107,66,84,139,145,64,89,199,107,157,103,96,111,157,151,172,50,77,52,99,136,93,202,5,32,94,119,181,200,16,58,124,47,119,161,184,221,243,143,182,223,70,85,116,65,169,110,136,185,244,80,77,244,124,127,61,85,44,93,116,58,108,133,70,158,178,96,234,68,128,207,45,106,236,138,183,59,55,96,82,93,65,105,126,89,138,151,98,57,47,48,153,129,212,164,163,214,216,36,50,206,8,43,233,66,65,241,93,91,245,144,137,246,187,176,174,48,48,215,63,151,239,122,199,242,152,219,78,116,77,135,166,118,158,42,91,202,64,125,241,162,203,241,162,203,182,208,163,156,127,72,240,50,93,248,83 |
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
[zart@aura ~]$ coredumpctl gdb | |
PID: 19307 (python) | |
UID: 2048 (zart) | |
GID: 2048 (zart) | |
Signal: 6 (ABRT) | |
Timestamp: Sat 2019-03-02 15:08:29 YEKT (1min 8s ago) | |
Command Line: python -c __import__('os').abort() | |
Executable: /usr/bin/python2.7 | |
Control Group: /user.slice/user-2048.slice/session-3.scope | |
Unit: session-3.scope |
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
from PIL import Image | |
from PIL import ImageDraw | |
''' Находиn самый большой элемент списка(в нашем случае - каких цветов больше)''' | |
def my_max(iterable): | |
it = iter(iterable) # получаем итератор | |
try: | |
max_ = next(it) # получаем первый элемент | |
except StopIteration: # пустой ввод -- нет элементов | |
raise ValueError('max() arg has no items') |
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
import telebot | |
from telebot import types | |
token = "766712108:AAEPdk22QMIIfJZGbd8uwDCZgBK5dswQr5Q" | |
bot = telebot.TeleBot(token) | |
ru = [] | |
ua = [] | |
by = [] | |
kz = [] |
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
import pygame | |
from game_object import GameObject | |
class Ball(GameObject): | |
def __init__(self, x, y, r, color, speed): | |
GameObject.__init__(self, x - r, y - r, r * 2, r * 2, speed) | |
self.radius = r | |
self.diameter = r * 2 |
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
import random | |
from datetime import datetime, timedelta | |
import os | |
import time | |
import pygame | |
from pygame.rect import Rect | |
import config as c | |
from ball import Ball |
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
import pygame | |
from game_object import GameObject | |
class Brick(GameObject): | |
def __init__(self, x, y, w, h, color, special_effect=None): | |
GameObject.__init__(self, x, y, w, h) | |
self.color = color | |
self.special_effect = special_effect |
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
""" | |
https://www.webucator.com/blog/2015/03/python-color-constants-module/ | |
""" | |
ALICEBLUE = (240, 248, 255) | |
ANTIQUEWHITE = (250, 235, 215) | |
ANTIQUEWHITE1 = (255, 239, 219) | |
ANTIQUEWHITE2 = (238, 223, 204) | |
ANTIQUEWHITE3 = (205, 192, 176) | |
ANTIQUEWHITE4 = (139, 131, 120) |