Skip to content

Instantly share code, notes, and snippets.

💭
🦈

M. Serhat Dundar msdundar

💭
🦈
Block or report user

Report or block msdundar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@msdundar
msdundar / gist:1086944
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:
@msdundar
msdundar / gist:1086945
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:
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
@msdundar
msdundar / google-maps-api-basic.html
Created Apr 7, 2012
Google Maps JavaScript API v3 - Basic Map
View google-maps-api-basic.html
<!DOCTYPE HTML>
<html><head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
</style>
@msdundar
msdundar / google-maps-api-animated.html
Created Apr 7, 2012
Google Maps JavaScript API v3 - Animated Map
View google-maps-api-animated.html
<!DOCTYPE HTML>
<html><head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
</style>
@msdundar
msdundar / google-maps-api-multiple-animated.html
Created Apr 8, 2012
Google Maps JavaScript API v3 - Multiple Animated Map
View google-maps-api-multiple-animated.html
<!DOCTYPE HTML>
<html><head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#harita_canvas { height: 100% }
</style>
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))
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 |
+--------------------+---------------------- +-------------------+
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 |
+--------------------+---------------------- +-------------------+
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.