Instantly share code, notes, and snippets.

💭
🦈

# M. Serhat Dundarmsdundar

💭
🦈
• Sort options
Created Jul 16, 2011
Sayı Tahmin Oyunu
View gist:1086944
 # Mustafa Serhat Dundar tarafindan yazilmistir. #-*- coding: cp1254 -*- from __future__ import division __author__="msdundar" __date__ ="\$31.May.2010 12:22:04\$" x = 158 while True:
Created Jul 16, 2011
Liste Oluşturma
View gist:1086945
 # Mustafa Serhat Dundar tarafindan yazilmistir. #-*- coding: cp1254 -*- from __future__ import division __author__="msdundar" __date__ ="\$31.May.2010 12:22:04\$" def deneme(): rehber=[] while len(rehber)<5:
Created Jan 7, 2012
View Evolution of a Python programmer.py
 #Newbie programmer def factorial(x): if x == 0: return 1 else: return x * factorial(x - 1) print factorial(6) #First year programmer, studied Pascal
Created Apr 7, 2012
Google Maps JavaScript API v3 - Basic Map

Created Apr 7, 2012
Google Maps JavaScript API v3 - Animated Map

Created Apr 8, 2012
Google Maps JavaScript API v3 - Multiple Animated Map

Created Dec 8, 2012
Taban Donustur.py
View taban_donustur.py
 #!/usr/bin/env python3.2 x = input("Bir sayı girin: ") y = int(input("Bu sayı kaç tabanında? ")) print("\nBinary: ", bin(int(x, y))[2:]) print("Octal: ", oct(int(x, y))[2:]) print("Hexadecimal: ", hex(int(x, y))[2:]) print("Decimal: ", int(x, y))
Created Jan 1, 2013
View db-boyut1.sql
 mysql> SELECT table_schema "moodle", -> sum( data_length + index_length ) / 1024 /1024 "Veritabanı Boyutu[MB]", sum( data_free )/ 1024 / 1024 -> FROM information_schema.TABLES GROUP BY table_schema; +--------------------+-----------------------+-------------------+ | Veritabanı Adı | Veritabanı Boyutu[MB] | sum(data_free)[MB]| +--------------------+-----------------------+-------------------+ | moodle | 1136.78851891 | 118.50432777 | +--------------------+---------------------- +-------------------+
Created Jan 1, 2013
View db-boyut2.sql
 mysql> SELECT table_schema "moodle", -> sum( data_length + index_length ) / 1024 /1024 "Veritabanı Boyutu[MB]", sum( data_free )/ 1024 / 1024 -> FROM information_schema.TABLES GROUP BY table_schema ; +--------------------+-----------------------+-------------------+ | Veritabanı Adı | Veritabanı Boyutu[MB] | sum(data_free)[MB]| +--------------------+-----------------------+-------------------+ | moodle | 1136.78851891 | 503.07000923 | +--------------------+---------------------- +-------------------+
Created Jan 1, 2013
View db-boyut-son.sql
 mysql> SELECT table_schema "moodle", -> sum( data_length + index_length ) / 1024 /1024 "Data Base Size in MB", sum( data_free )/ 1024 / 1024 -> FROM information_schema.TABLES GROUP BY table_schema ; +--------------------+-----------------------+-------------------+ | Veritabanı Adı | Veritabanı Boyutu[MB] | sum(data_free)[MB]| +--------------------+-----------------------+-------------------+ | moodle | 232.15587044 | 0.00000000 | +--------------------+---------------------- +-------------------+
You can’t perform that action at this time.