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
class Inventory(): | |
#attributes | |
capasity = 10 | |
stack = [] | |
#methods | |
def addItem(self,item): |
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
array = [] | |
number = int(input()) | |
for i in range(1,(number+1)): | |
modulo = (number % i) | |
if (modulo == 0): | |
array.append(modulo) | |
elif (len(array) > 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
#---------------------------------------------------------------------------------------------------------------------------------- | |
#███╗ ██╗ ██████╗ ████████╗███████╗ ██╗ ██╗ █████╗ ██╗ ██╗ ██╗███████╗███████╗ | |
#████╗ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║██╔══██╗██║ ██║ ██║██╔════╝██╔════╝ | |
#██╔██╗ ██║██║ ██║ ██║ █████╗ ██║ ██║███████║██║ ██║ ██║█████╗ ███████╗ | |
#██║╚██╗██║██║ ██║ ██║ ██╔══╝ ╚██╗ ██╔╝██╔══██║██║ ██║ ██║██╔══╝ ╚════██║ | |
#██║ ╚████║╚██████╔╝ ██║ ███████╗ ╚████╔╝ ██║ ██║███████╗╚██████╔╝███████╗███████║ | |
#╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚══════╝ ╚═══╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚══════╝╚══════╝ | |
#---------------------------------------------------------------------------------------------------------------------------------- | |
# N O T E V A L U E S | |
#---------------------------------------------------------------------------------------------------------------------------------- |
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
################################## | |
# Welcome to String analyser 1.0 # | |
################################## | |
# ASKING A STRING fROM USER | |
string = input("enter a string: ") | |
# VOWEL AND CONSONANT LIST | |
vowels = "aeıioöuüAEIİOÖUÜ" | |
consonant = "bcçdfghğjklmnprsştvyzBCÇDFGHĞJKLMNPRSŞTVYZ" |
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
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://tr.archive.ubuntu.com/ubuntu/ zesty main restricted | |
# deb-src http://tr.archive.ubuntu.com/ubuntu/ zesty main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://tr.archive.ubuntu.com/ubuntu/ zesty-updates main restricted | |
# deb-src http://tr.archive.ubuntu.com/ubuntu/ zesty-updates main restricted |
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
WELCOME TO SAVOLLA.CONF | |
Please open this document with Vim editor and make sure you have folding plugin. Topics which start with "##########" symbols are folded for more readability. | |
if you don't have vim or proper vimrc file and plugins, I strongly recomend to download "spf13-vim" on your system. it is easyest way to install and configure | |
this awesome text edidor. This file has written by savolla. It is very personal and unedited file. DO NOT READ! | |
******************************************************************** | |
IMPORTANT: if you want to fold topics just follow the steps below * | |
* | |
<ESC> * | |
move the cursor to the title of the topic which you want to fold. * |
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 numpy as np | |
from PIL import ImageGrab | |
from PIL import Image | |
import cv2 | |
import numpy as np | |
resim = ImageGrab.grab(bbox=(331, 168, 481, 201)) | |
resim_array = np.array(resim) |
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 cv2 | |
import numpy as np | |
org = cv2.imread("glassorg.jpg") | |
line = cv2.imread("glassorg1.jpg") | |
diff = cv2.subtract(line, org) | |
result = not np.any(diff) |
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 pyautogui as p | |
import time | |
import os | |
""" | |
def resolution(): | |
sag_tik_positionX, sag_tik_positionY = 660, 470 | |
p.click(1276,1011) # pencereleri aşağı al | |
time.sleep(0.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 pyautogui as p | |
import time | |
def işlem_seçimi(): | |
x = input() | |
if x == "07": |