Skip to content

Instantly share code, notes, and snippets.

@TalhaAkkas
TalhaAkkas / gist:842228
Created February 24, 2011 14:42
Turtle Ekstra Seçenekler
# -*- coding: utf-8 -*-
import turtle
def kare(kenar_uzunluk):
for x in range(4):
turtle.forward(kenar_uzunluk)
turtle.right(90)
def eskenar_ucgen(kenar_uzunluk):
for x in range(3):
turtle.forward(kenar_uzunluk)
turtle.right(120)
@TalhaAkkas
TalhaAkkas / gist:846735
Created February 28, 2011 00:27
Turtle Denklem Grafikleri
# copyright talha buyukakkaslar 02:24 28.02.2010
# -*- coding: utf-8 -*-
import turtle
t=turtle
t.title("Matematik Gösterim")
t.setup(width=500,height=500,startx=100,starty=100)
def f(a):
t.forward(a)
@TalhaAkkas
TalhaAkkas / DenizAltiKomutani.py
Created March 2, 2011 23:13
Deniz Altı Komutanı
# copyright : talha büyükakkaşlar
# -*- coding: cp1254 -*-
import turtle
from turtle import *
import random
import time
# bu kısım bize istediğimiz şekilde turtle yapma imkanı sağlayacak
turtle.register_shape("ship",((4,12),(4,2),(8,2),(8,6),(4,6),(4,-4),(0,-4),(0,8)))
turtle.register_shape("sub",((-4,10),(-4,4),(-8,4),(-8,0),(-4,0),(-4,-10),(0,-10),(0,10),(-2,12)))
turtle.register_shape("torpedo",((0,2),(-10,2),(-10,0),(0,0)))
@TalhaAkkas
TalhaAkkas / ParolaTest.py
Created March 9, 2011 01:09
# -*- coding: cp1254 -*- def kontrol(harf): if ord (harf)>128: #"ascii2" return"ascii2" elif ord(harf)<=128: if ord(harf)>96 and ord(harf)<123: return"kucukharf" elif ord(harf)>64 and ord(harf)<9
# -*- coding: cp1254 -*-
import turtle
import math
t = turtle
def kontrol(harf):
if ord (harf)>128:
#"ascii2"
return"ascii2"
elif ord(harf)<=128:
if ord(harf)>96 and ord(harf)<123:
@TalhaAkkas
TalhaAkkas / gist:870128
Created March 15, 2011 00:38
C# Hesap Makinası
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main()
@TalhaAkkas
TalhaAkkas / Cevirbeni.py
Created March 17, 2011 17:49
CevirgecliGoturgec
def cevir(sayi, girdi, cikti):
sayi = onlukacevir(sayi, girdi)
sayi = onlukdancevir(sayi, cikti)
return ters(sayi)
def onlukacevir(sayi, girdi):
sayi = str(sayi)
cikacak = 0
for i in range(len(sayi)):
cikacak += sayiyap(sayi[i])*(girdi**(len(sayi)-(i+1)))
@TalhaAkkas
TalhaAkkas / Cevap.py
Created March 19, 2011 23:13
Muhammet Talha Büyükakkaşlar
# -*- coding: cp1254 -*-
isim = raw_input("Lütfen isminizi giriniz :")
numara = raw_input("Hoşgeldin {0} lütfen numaranızı giriniz".format(isim))
if numara == "019":
print "Bu numara Ali adlı kullanıcıya ait"
elif numara == "043":
print "Bu numara Mehmet adlı kullanıcıya ait"
elif numara == "126":
print "Bu numara Ayşe adlı kullanıcıya ait"
else:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
@TalhaAkkas
TalhaAkkas / Test_me.py
Created March 21, 2011 18:40
Klasörün içindeki tüm dosyaları test eden program
# -*- coding: cp1254 -*-
import os
import doctest
def tani(klasor):
Cikti = []
for i in range(len(klasor)):
islendi = False
j = len(klasor[i])
from math import *
class space ():
def __init__(self):
self.point_list = []
self.lines_list = []
self.screen_list = []
outter_space = space()