View example.html
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Select All Checkboxes with jQuery - savascanaltun.com.tr</title> | |
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> | |
</head> | |
<body> | |
<center> |
View list.php
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 | |
/** Turkey Bank list | |
* @date 31.05.2020 | |
*/ | |
$array=[ | |
0 => 'Adabank A.Ş. ', | |
1 => 'Akbank T.A.Ş. ', | |
2 => 'Aktif Yatırım Bankası A.Ş. ', | |
3 => 'Alternatifbank A.Ş. ', | |
4 => 'Anadolubank A.Ş. ', |
View no-print-element.html
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test Page - Savaş Can ALTUN / savascanaltun.com.tr</title> | |
<style type="text/css"> | |
@media print{ | |
.no-print, .no-print * | |
{ | |
display: none !important; |
View phpApikeyGenerator.php
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 | |
echo bin2hex(random_bytes(20)); // int type | |
// return 4b5ffb1b86049479d7bc875bcaf0a9b4fcfd1b16 |
View gist:2da1da866e446675e85652b81fce8a7b
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
1c349abe3d2ee7889fc44dff28dfbb2bff25376910f75615cff9d180f2014f6cf46fa21a79a2 |
View cutnumber.js
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
// Turkish | |
function cutNumber(value) { | |
var newValue = value; | |
if (value >= 1000) { | |
var suffixes = ["", "Bin", "Milyon", "Milyar"," Trilyon"]; | |
var suffixNum = Math.floor( (""+value).length/3 ); | |
var shortValue = ''; | |
for (var precision = 2; precision >= 1; precision--) { | |
shortValue = parseFloat( (suffixNum != 0 ? (value / Math.pow(1000,suffixNum) ) : value).toPrecision(precision)); | |
var dotLessShortValue = (shortValue + '').replace(/[^a-zA-Z 0-9]+/g,''); |
View phpdoc.php
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 | |
/** | |
* İnsan sınıfı x) | |
* @author Savaş Can ALTUN <savascanaltun@gmail.com> | |
* @link http://savascanaltun.com.tr | |
* @version 1.0 | |
*/ | |
class Human { |
View recaptcha.php
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 | |
if ($_POST) { | |
/* | |
* Author : Savaş Can ALTUN <savascanaltun@gmail.com> | |
* Date : 28.06.2016 | |
* Personel Page => http://savascanaltun.com.tr | |
* Video Example => https://www.youtube.com/watch?v=7F-vWQjbeMo | |
*/ | |
$url="https://www.google.com/recaptcha/api/siteverify"; |
View php-create-random-date.php
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 | |
/** | |
* @author Savaş Can ALTUn <savascanaltun@gmail.com> | |
* www.savascanaltun.com.tr | |
*/ | |
$tarihBas = strtotime('1.1.2016'); // date Start | |
$tarihSon = strtotime('24.06.2016'); // date End | |
$rastgeleTarih = rand($tarihBas, $tarihSon); // create random | |
echo(date('d.m.Y H:i', $rastgeleTarih)); // convert time |
View validation.php
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 | |
/* Translate Savaş Can ALTUN < savascanaltun@gmail.com > */ | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines contain the default error messages used by |
NewerOlder