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
@material-colors: red #f44336, | |
pink #e91e63, | |
purple #9c27b0, | |
deep-purple #673ab7, | |
indigo #3f51b5, | |
blue #2196f3, | |
light-blue #03a9f4, | |
cyan #00bcd4, | |
teal #009688, | |
green #4caf50, |
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
init(); | |
var pattern = /[A-Za-z0-9-\.]/i; | |
function inputDigitsOnly(e) { | |
var chrTyped, chrCode = 0, evt = e ? e : event; | |
if (evt.charCode != null) chrCode = evt.charCode; | |
else if (evt.which != null) chrCode = evt.which; | |
else if (evt.keyCode != null) chrCode = evt.keyCode; | |
if (chrCode == 0) chrTyped = 'SPECIAL KEY'; |
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>Dropdrop Image Upload</title> | |
<link rel="stylesheet" href="assets/main.css"> | |
<script src="https://code.jquery.com/jquery-2.2.4.js" crossorigin="anonymous" | |
integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI="></script> | |
<script src="assets/main.js"></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
function titleCaseTurkish($string) | |
{ | |
$temp = preg_split("/\s/u", $string, -1, PREG_SPLIT_NO_EMPTY); | |
foreach ($temp as &$item) { | |
$item = str_replace("i", "İ", $item); | |
} | |
$temp = join(' ', $temp); | |
return mb_convert_case($temp, MB_CASE_TITLE, "UTF-8"); | |
} |
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 | |
class CreditCardCheck | |
{ | |
public function validateCreditcard_number($cc_num) | |
{ | |
$credit_card_number = $this->sanitize($cc_num); | |
// Get the first digit | |
$data = array(); |
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
let step = 1; | |
let loop = Math.round(100 / step); | |
let increment = 360 / loop; | |
let half = Math.round(loop / 2); | |
let nextDeg = 0; | |
for (let i = 0; i <= loop; i += step) { | |
if (i < half) { | |
nextDeg = 90 + increment * i; | |
// background-image linear-gradient(90deg, $back-color 50%, transparent 50%, transparent), linear-gradient(nextDeg, $theme-color 50%, $back-color 50%, $back-color) |
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 | |
namespace App\Classes\Iyzico; | |
use Iyzipay; | |
use Iyzipay\Model; | |
use Iyzipay\Options; | |
use Iyzipay\Request; | |
/** |
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
#Forwarding | |
#ex. : from = 1, to = 5 | |
UPDATE table_name SET order_field = order_field - 1 | |
WHERE order_field > {from} | |
AND order_field <= {to} | |
#Backward | |
#ex. from = 5, to = 1 | |
UPDATE table_name SET order_field = order_field + 1 | |
WHERE order_field >= {to} |
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
function generateUniqueId() | |
{ | |
mt_srand(); | |
$order_no = substr(md5(uniqid(mt_rand())), 0, 8); | |
return $order_no; | |
} |
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
$('#frm-human-res').submit(function (e) { | |
e.preventDefault(); | |
var form_data = new FormData(), | |
cv_file = document.getElementById("upload-btn").files[0]; | |
var other_data = $(this).serializeArray(); | |
$.each(other_data, function (key, input) { | |
form_data.append(input.name, input.value); | |
}); |
OlderNewer