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
#!/usr/bin/python | |
from Tkinter import * | |
def frame(root, side): | |
w = Frame(root) | |
w.pack(side = side, expand = YES, fill = BOTH) | |
return w | |
def button(root, side, text, command = None): |
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
#!/usr/bin/php | |
<?php | |
$ayrisacak = "Tablet | |
Pfizer | |
Asetilsalisilikasit | |
Ambalaj: 80mgx20 tablet. |
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
#!/usr/bin/ruby | |
dizi = Array.new | |
string = "hasan eve;kos:git,gel" | |
if string =~ /\W/ | |
dizi = string.split(/ |,|:|;/) | |
else | |
puts "boşluk, virgül, noktalı virgül vs yok" | |
end |
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
#!/usr/bin/ruby | |
string1 = "hasan eve kos, kos hasan kos" | |
if string1 =~ /^hasan/ | |
puts "buldum ", $1 | |
else | |
puts "bulamadim" | |
end |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace KelimeUzayi | |
{ | |
class KelimeAgaci | |
{ | |
Dictionary<string, string> d = new Dictionary<string, string>(); |
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
#-*- coding: utf-8 | |
def name(): | |
hayal = ["89", "69", "83", "105", "76"] | |
hayalet = "" | |
for i in hayal: | |
hayalet += chr(int(i)) | |
return hayalet | |
def teklif(): |
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
#!/usr/bin/python | |
def cevir(a): | |
a = str(a) | |
i = -1 | |
b = "" | |
while -i < len(a) + 1: | |
b += a[i] | |
i -= 1 | |
print int(b) |
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 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
#!/usr/bin/python | |
#-*-coding:utf-8-*- | |
sayi1 = 3 | |
sayi2 = 5 | |
sinir = input("lutfen sınır sayısını girin : ") | |
a = [] | |
top = 0 | |
for i in range(1, sinir+1): | |
if i % 3 == 0 or i % 5 == 0: |
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
#!/usr/bin/python | |
#-*-coding:utf-8-*- | |
def fibo(n): | |
if n == 0: | |
return 0 | |
elif n == 1: | |
return 1 | |
elif n > 1: | |
return fibo(n - 1) + fibo(n - 2) |