This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_URL => "https://graph.facebook.com/v2.8/me/photos", | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => "", | |
CURLOPT_MAXREDIRS => 10, | |
CURLOPT_TIMEOUT => 30, | |
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, | |
CURLOPT_CUSTOMREQUEST => "POST", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
for($sayi = 0; $sayi < 5; $sayi++) { | |
$kb=1024; | |
echo "aktarılıyor $kb Kb...<!-"; | |
flush(); | |
$time = explode(" ",microtime()); | |
$start = $time[0] + $time[1]; | |
for($x=0;$x<$kb;$x++){ | |
echo str_pad('', 1024, '.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Silinecek dosyaların bulunduğu dizin | |
*/ | |
$dir = "klasor/dosyalar"; | |
/* | |
* Dizindeki tüm dosyalara işlem uygulanır | |
*/ | |
foreach (glob($dir."*") as $file) { | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.onkeydown = function (e) { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="dosya.php"> | |
<input type="submit" value="Gönder"> | |
<input type="submit" value="Gönder 2" formaction="dosya-2.php"> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button onclick="titret(1000)">Titret</button> | |
<button onclick="titret([1000, 200, 1000, 2000, 400]);">Titret (3 defa aralıklı)</button> | |
<script> | |
function titret(sure) { | |
navigator.vibrate(sure); | |
console.log(sure + "ms"); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Defer Javascript | |
*/ | |
add_filter( 'clean_url', function( $url ) | |
{ | |
if ( FALSE === strpos( $url, '.js' ) ) | |
{ | |
return $url; | |
} | |
return "$url' defer='defer"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<noscript id="deferred-styles"> | |
<link rel="stylesheet" type="text/css" href="stil.css"/> | |
</noscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var loadDeferredStyles = function() { | |
var addStylesNode = document.getElementById("deferred-styles"); | |
var replacement = document.createElement("div"); | |
replacement.innerHTML = addStylesNode.textContent; | |
document.body.appendChild(replacement) | |
addStylesNode.parentElement.removeChild(addStylesNode); | |
}; | |
var raf = requestAnimationFrame || mozRequestAnimationFrame || | |
webkitRequestAnimationFrame || msRequestAnimationFrame; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pil = navigator.battery || navigator.webkitBattery || navigator.mozBattery; | |
function pilDurumu(pil) { | |
document.getElementById('seviye').innerHTML += ' %' + pil.level * 100; | |
document.getElementById('yuzde').value = pil.level * 100; | |
if (pil.charging === true) { | |
var durum = "Şarj oluyor"; | |
} else { | |
var durum = "Şarjda değil"; | |
} |
OlderNewer