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
metin = """Bu programlama dili Guido Van Rossum adlı Hollandalı bir programcı | |
tarafından 90’lı yılların başında geliştirilmeye başlanmıştır. Çoğu insan, | |
isminin Python olmasına aldanarak, bu programlama dilinin, adını piton | |
yılanından aldığını düşünür. Ancak zannedildiğinin aksine bu programlama dilinin | |
adı piton yılanından gelmez. Guido Van Rossum bu programlama dilini, The Monty | |
Python adlı bir İngiliz komedi grubunun, Monty Python’s Flying Circus adlı | |
gösterisinden esinlenerek adlandırmıştır. Ancak her ne kadar gerçek böyle olsa | |
da, Python programlama dilinin pek çok yerde bir yılan figürü ile temsil | |
edilmesi neredeyse bir gelenek halini almıştır.""" |
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 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
# 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 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
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
#---------------------------------------------------------------------------------------------------------------------------------- | |
#███╗ ██╗ ██████╗ ████████╗███████╗ ██╗ ██╗ █████╗ ██╗ ██╗ ██╗███████╗███████╗ | |
#████╗ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║██╔══██╗██║ ██║ ██║██╔════╝██╔════╝ | |
#██╔██╗ ██║██║ ██║ ██║ █████╗ ██║ ██║███████║██║ ██║ ██║█████╗ ███████╗ | |
#██║╚██╗██║██║ ██║ ██║ ██╔══╝ ╚██╗ ██╔╝██╔══██║██║ ██║ ██║██╔══╝ ╚════██║ | |
#██║ ╚████║╚██████╔╝ ██║ ███████╗ ╚████╔╝ ██║ ██║███████╗╚██████╔╝███████╗███████║ | |
#╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚══════╝ ╚═══╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚══════╝╚══════╝ | |
#---------------------------------------------------------------------------------------------------------------------------------- | |
# 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
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
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
# This is my own configuration for i3. | |
.xinitrc | |
xset r rate 200 150 #sets typing speed for x | |
setxkbmap tr #sets keyboard layout for x | |
.bashrc | |
set -o vi #enables vim mode for bash shell | |
.Xmodmap |