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 / denklem_koku_serhat.py
Created Mar 7, 2011
Denklem Kökü İçin Bi Kaç Ufak Değişiklik
View denklem_koku_serhat.py
# -*- coding: cp1254 -*-
from math import sqrt
# sade bir dille yaptigim degisiklikleri anlatmaya calisacagim.
# matematiksel islemler icin hazir bir modul bulunmakta. Bunun ismi math.
# ama biz butun modulu ice aktarmak istemiyoruz, cunku bu koca modulden yalnizca
# sqrt fonksiyonunu kullanacagız. Bir tek sqrt icin butun modulu import etmeye gerek yok.
print """############################################
View php-hash-generator.php
<?php
$p = empty($_POST['p']) ? null : $_POST['p'];
?>
<html>
<head><title>Hash Olustur</title></head>
<style type="text/css">
table {border-collapse: collapse;}
table, td, th {border: solid 1px #ccc;}
th {background: #e1e1e1;border-color: #999;}
td, th {padding: 0.25em;}
@msdundar
msdundar / syc.php
Created May 21, 2011
The Mail Php File
View syc.php
<?php
class Ayarlar
{
protected $dbh;
function __construct()
{
$dsn = 'mysql:dbname=clientinfo;host=localhost';
$user = 'root';
$password = '';
View gist:1086929
# -*- coding: cp1254 -*-
from __future__ import division
while True:
def toplama_islemi():
girdi1t=input("Ilk sayiyi girin: ")
girdi2t=input("Ikinci sayiyi girin: ")
sonuct=girdi1t+girdi2t
@msdundar
msdundar / gist:1086933
Created Jul 16, 2011
Hesap-makinası-2
View gist:1086933
# -*- coding: cp1254 -*-
from __future__ import division
while True:
def toplama_islemi():
girdi1t=int(raw_input("Ilk sayiyi girin: "))
girdi2t=int(raw_input("Ikinci sayiyi girin: "))
sonuct=girdi1t+girdi2t
@msdundar
msdundar / gist:1086935
Created Jul 16, 2011
Final Notu Hesapla
View gist:1086935
# Mustafa Serhat Dundar tarafindan yazilmistir.
#-*- coding: cp1254 -*-
from __future__ import division
__author__="msdundar"
__date__ ="$31.May.2010 12:22:04$"
x=raw_input("Vize'den aldiginiz notu giriniz : ")
@msdundar
msdundar / gist:1086937
Created Jul 16, 2011
Sıcaklık Birimleri Çevirici
View gist:1086937
# Mustafa Serhat Dundar tarafindan yazilmistir.
#-*- coding: cp1254 -*-
from __future__ import division
__author__="msdundar"
__date__ ="$31.May.2010 12:22:04$"
while True:
def cel_to_fah():
sonuc2=((cel*9) / 5) + 32
View gist:1086939
# -*- coding: iso8859-9 -*-
username="Mustafa Serhat"
password="pythonaddict"
creditcard="1234-5678-9123-4567"
x=input("Enter the 5,6,7th. char. of your username : ")
y=input("Enter the 5th, 9th and last char. of your credit card : ")
crdt=creditcard[5]+creditcard[10]+creditcard[18]
usr=username[4:7]
View gist:1086940
# Mustafa Serhat Dundar tarafindan yazilmistir.
#-*- coding: cp1254 -*-
from __future__ import division
__author__="msdundar"
__date__ ="$31.May.2010 12:22:04$"
def kayitlar(isim, soyisim, yas, email):
View gist:1086941
# Mustafa Serhat Dundar tarafindan yazilmistir.
#-*- coding: cp1254 -*-
from __future__ import division
__author__="msdundar"
__date__ ="$31.May.2010 12:22:04$"
def kayitlar(isim, soyisim, yas, email):
You can’t perform that action at this time.