Skip to content

Instantly share code, notes, and snippets.

View muzafferkoluman's full-sized avatar

Muzaffer Koluman muzafferkoluman

View GitHub Profile
header('Content-Encoding: UTF-8');
header("Content-Type: application/xls");
header( "Content-disposition: attachment; filename=".$filename."");
header("Pragma: no-cache");
header("Expires: 0");
header('Content-Description: File Transfer');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
@muzafferkoluman
muzafferkoluman / include
Created July 27, 2017 07:59
Document Root
include($_SERVER["DOCUMENT_ROOT"] . "/pdo/PDO.class.php");
@muzafferkoluman
muzafferkoluman / Jquery Mantığı
Created June 30, 2017 15:29
function her seferinde açmak gerek
$(function () {
$("h3#name").hide();
});
$(function () {
$("#button").click(function () {
$("#name").show();
})
});
@muzafferkoluman
muzafferkoluman / Js ile Ezberler
Created June 29, 2017 14:37
parentlerle istenilene doğru ilerlemek
<div id="div1" style="background-color: burlywood">
<p>Lorem ipsum dolor sit amet, nde voluptatem voluptates.</p>
<p>Lorem ipsum dolor sit amet, s.</p>
<p>Lorem ipsum dolor sit amet,rehenderit.</p>
<p>Lorem ipsum dolor sit amet,rehenderit.</p>
</div>
<button onclick="tikla()">Tikla</button>
<script>
function tikla() {
@muzafferkoluman
muzafferkoluman / @media css
Created June 29, 2017 12:24
Hep unuttuğum :)
@media screen and
(min-width:500px) and
(max-width:600px)
{
.logo{width:25px;
}
}
style="width: 100%;height: 100%;margin: 0;padding: 0;display: table-cell;vertical-align: middle;text-align: center"