I hereby claim:
- I am geekdinazor on github.
- I am furkankalkan (https://keybase.io/furkankalkan) on keybase.
- I have a public key whose fingerprint is F210 227A 7556 2E68 8EBE 6D12 AF0C 4FB7 A1FC 0F55
To claim this, I am signing this object:
# Daniel Dixon | |
# Due: 6/02/17 | |
# Yahtzee Code | |
import random | |
# Function | |
# Main menu and rules | |
while True: | |
def mainMenu(): |
from wos import WosClient | |
from wos.utils import query | |
from bs4 import BeautifulSoup | |
from slugify import slugify | |
from iso639 import to_iso639_2 | |
from suds.client import Client | |
import json | |
WOS_API_USER="" |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def mapFileParse(): | |
f = open('paths.txt', 'r') | |
for line in f: | |
map = [] | |
for l in line[2:].replace('\r\n','').replace(' ',''): | |
map.append(l) | |
paths.update({line[0]:map}) | |
f.close() | |
def ThreeSome(path): |
def commandParser(): | |
f = open('commandsP1.txt', 'r') | |
allCommands = [] | |
for line in f: | |
params = line.replace('\r\n','').split(' ') | |
allCommands.append(params) | |
for command in allCommands: | |
if command[0] == "AU": | |
if len(command) != 3: | |
print "Error: Wrong input type for '%s'" % (command[0]) |
from random import randint | |
def rastgele_tc(): #http://basarancaner.blogspot.com.tr/2011/01/rastgele-tc-kimlik-no-uretici.html | |
tcno = str(randint(100000000, 1000000000)) | |
list_tc = map(int, tcno) | |
tc10 = (sum(list_tc[::2]) * 7 - sum(list_tc[1::2])) % 10 | |
return tcno + str(tc10) + str((sum(list_tc[:9]) + tc10) % 10) | |
dizi = set() | |
while(len(dizi) <= 100000): |
def isPrime(n): | |
c = 0 | |
for i in range(2,n): | |
if n % i == 0: | |
c = c + 1 | |
if c == 0: | |
return True | |
else: | |
return False | |
def drawSquare(corner): | |
for i in range(0,corner): | |
print "*" * corner | |
def drawRectangle(row,column): | |
for i in range(0,row): | |
print "*" * column | |
def drawTriangle(row): | |
for row in range(0,row + 1): |
function replacer (numpost) | |
{ | |
while (numpost>=1) | |
{ | |
if (!document.getElementById(numpost)) | |
{ | |
alert(numpost+"th post is missing! Please contact the webmaster.") | |
numpost-- ; | |
continue; | |
} |