I hereby claim:
- I am ilkermanap on github.
- I am ilkermanap (https://keybase.io/ilkermanap) on keybase.
- I have a public key whose fingerprint is 6787 DA07 035B 1331 0B96 5697 16AD C19D DABA A346
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| def split_with_location(line, separator=None): | |
| temp = {} | |
| t = line.strip() | |
| finished = False | |
| loc = 0 | |
| while len(t) > 0: | |
| if separator is not None: | |
| word = t.split(separator)[0] | |
| else: |
| class Durum: | |
| def __init__(self, app = QtGui.QApplication, widget=None): | |
| self.app = app | |
| self.widget = widget | |
| def guncelle(self, mesaj): | |
| if type(self.widget) is QtGui.QListWidget: | |
| self.widget.addItem(mesaj) | |
| if type(self.widget) is QtGui.QLabel: | |
| self.widget.setText(mesaj) |
| def distance(lt1,ln1, lt2,ln2, in_meters = True): | |
| """ | |
| distance between two coordinates in meters | |
| or in | |
| """ | |
| R = 6371000 # earth radius | |
| theta1 = lt1 * PI / 180 | |
| theta2 = lt2 * PI / 180 | |
| delta_theta = (lt2 -lt1) * PI / 180 | |
| delta_fi = (ln2 - ln1) * PI / 180 |
| from dns.resolver import Resolver | |
| myres = Resolver() | |
| myres.nameservers = ['8.8.8.8', '8.8.4.4'] | |
| liste = open("liste.txt", "r").readlines() | |
| for satir in liste: | |
| adr, ipadr = satir.split() | |
| ans = myres.query(adr, 'A') | |
| print adr, ipadr |
| import os | |
| import platform | |
| import hashlib | |
| sistem = platform.system().lower() | |
| if sistem == "linux" or sistem == "linux2" or sistem == "darwin": | |
| SLASH = "/" | |
| elif sistem == "windows": | |
| SLASH = "\\" |
| http://www.kocaeli.edu.tr | |
| http://www.hurriyet.com.tr | |
| http://www.google.se | |
| http://www.yahoo.com |
| import random | |
| import sys | |
| class Pul: | |
| def __init__(self, renk, sayi): | |
| self.renk = renk | |
| self.sayi = sayi | |
| class Sepet: | |
| def __init__(self, kapasite = 360): |
| from openpyxl import load_workbook | |
| # Kaynak dosyayi oku | |
| dosya = load_workbook('deneme.xlsx') | |
| # icindeki tablo isimlerini yazdir | |
| print(dosya.get_sheet_names()) | |
| # ben bos dosya kullandim. icinde Sheet1 vardi | |
| # sayfa degiskeni, artik Sheet1 |
| from random import randint | |
| class Mayin: | |
| def __init__(self, x,y): | |
| self.x = x | |
| self.y = y | |
| class Tarla: | |
| def __init__(self, x, y, mayin_sayisi): | |
| self.x = x |