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 / ktuyos.py
Created May 15, 2013
KTÜ YÖS'e başvuran adayların pasaportları! 2 dakikada nasıl bulunur?
View ktuyos.py
#!/usr/bin/env python3.2
import os.path, webbrowser, urllib.request
from sys import exit
from time import sleep
# Night fun
say = 0
for i in range(26,2000):
View browser.py
#!/usr/bin/env python3.2
import os.path, webbrowser
from sys import exit
from time import sleep
new = 2
# Hatalı girilen dosya yolunu düzelt
try:
@msdundar
msdundar / auth.py
Last active Apr 6, 2019
urllib.request.urlopen
View auth.py
#!/usr/bin/env python3.2
import os.path, urllib.request
from sys import exit
from time import sleep
# Hatalı girilen dosya yolunu düzelt
try:
yer = input("Dosyanın konumu: ").strip()
dosya_adi = input("Dosyanın ismi: ").strip()
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 |
+--------------------+---------------------- +-------------------+
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-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 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))
@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>
@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-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>
You can’t perform that action at this time.