This file contains hidden or 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
| def toplama(a,b): | |
| return a+b | |
| def carpma(a,b): | |
| return a*b | |
| class Komut: | |
| def __init__(self): | |
| self.liste = [] | |
| self.func = None |
This file contains hidden or 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 Kitap: | |
| def __init__(self, isbn, yazar, adi, yayinevi): | |
| self.isbn = isbn | |
| self.yazar = yazar | |
| self.adi = adi | |
| self.yayinevi = yayinevi | |
| self.veri = {"isbn":isbn, "yazar":yazar, "adi":adi, "yayinevi":yayinevi} | |
| def __str__(self): | |
| return "%s\t%s\t%s\t%s" % (self.isbn, self.yazar, self. adi, self.yayinevi) |
This file contains hidden or 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 os | |
| from flask import Flask, flash, request, redirect, url_for | |
| from werkzeug.utils import secure_filename | |
| from flask import send_from_directory | |
| UPLOAD_FOLDER = '/tmp/' | |
| ALLOWED_EXTENSIONS = { 'png', 'jpg', 'jpeg', 'gif'} | |
| app = Flask(__name__) | |
| app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER |
This file contains hidden or 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
| """ | |
| skala dict, | |
| { | |
| 0 : 0, tecrube suresi : karsilik gelen maas artisi | |
| 5 : 3000 | |
| 7 : 4000 | |
| 10: 6000 | |
| } | |
This file contains hidden or 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
| all: | |
| g++ -c evler.cpp -std=c++11 | |
| g++ evler.o evmain.cpp -o evmain -std=c++11 |
This file contains hidden or 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 threading import Thread | |
| import time | |
| from random import randint | |
| # Uc fonksiyon, uzun calisma icin sleep kullandik. | |
| # her biri ayri bir thread olarak calisip, en uzun sure calisan bitince sonuclari yazacaktir. | |
| def func1(a,b, result, idx): | |
| sleepsec = randint(5,10) | |
| print("func1, sleeping ", sleepsec) |
This file contains hidden or 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 sys | |
| class Kelime: | |
| def __init__(self, kelime): | |
| self.kelime = kelime | |
| self.bulunan = [] | |
| def kontrol(self): |
This file contains hidden or 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 | |
| class Kelime: | |
| def __init__(self, kelime): | |
| for noktalama in (";",",", ".","?","!"): | |
| kelime = kelime.replace(noktalama , "") | |
| self.kelime = kelime | |
| self.karisik = self.karistir() | |
| def karistir(self): |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ui version="4.0"> | |
| <class>Dialog</class> | |
| <widget class="QDialog" name="Dialog"> | |
| <property name="geometry"> | |
| <rect> | |
| <x>0</x> | |
| <y>0</y> | |
| <width>400</width> | |
| <height>300</height> |