Skip to content

Instantly share code, notes, and snippets.

View savasdersimcelik's full-sized avatar

Savaş Dersim Çelik savasdersimcelik

View GitHub Profile
@savasdersimcelik
savasdersimcelik / index.html
Created November 26, 2022 19:08 — forked from wolinka/index.html
HTML yapım aşamasında şablonu
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yapım Aşamasında!</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700%7CRoboto:400,700" rel="stylesheet">
<style>
* {
box-sizing: border-box;
@savasdersimcelik
savasdersimcelik / meta-tags.md
Created February 25, 2021 11:00 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags
<!-- SEO / Google -->
<meta name="author" content="Author name here....">
<meta name="description" content="Description text here.....">
<link rel="canonical" href="URL here...">
<!-- Social: Twitter -->
<!-- After inserting META need to validate at https://dev.twitter.com/docs/cards/validation/validator -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@8bit_code">
<meta name="twitter:creator" content="8bit_code">
@savasdersimcelik
savasdersimcelik / Copying the Folder and its Folders and Files
Last active November 1, 2020 22:21
Bir kalsör ve içerisindeki tüm klasör ve doyaları başka bir noktaya kopyalama
public function recurse_copy($src,$dst) {
$dir = opendir($src);
@mkdir($dst);
while(false !== ( $file = readdir($dir)) ) {
if (( $file != '.' ) && ( $file != '..' )) {
if ( is_dir($src . '/' . $file) ) {
$this->recurse_copy($src . '/' . $file,$dst . '/' . $file);
}
else {
copy($src . '/' . $file,$dst . '/' . $file);
@savasdersimcelik
savasdersimcelik / json_deep_search.php
Last active September 26, 2020 01:08
PHP JSON Deep Search | Returns the value of an element with a key value in an json of uncertain depth.
if (! function_exists('json_deep_search'))
{
/**
* Author : Savaş Dersim ÇELİK
* Returns the value of an element with a key value in an json of uncertain depth.
*
* @param json $json
* @param string $key
*
@savasdersimcelik
savasdersimcelik / array_deep_search.php
Last active September 26, 2020 15:40
PHP Array Deep Search | Returns the value of an element with a key value in an array of uncertain depth.
if (! function_exists('array_deep_search'))
{
/**
* Author : Savaş Dersim ÇELİK
* Returns the value of an element with a key value in an array of uncertain depth.
*
* @param array $array
* @param string $key
*
* @return mixed|false
/**
* Metni url'de kullanılabilir hale çevirir. Boşluklar tireye çevrilir,
* alfanumerik olmayan katakterler silinir.
*
* Transform text into a URL path slug(with Turkish support).
* Spaces turned into dashes, remove non alnum
*
* @param string text
*/
slugify = function(text) {
@savasdersimcelik
savasdersimcelik / PDO classes.md
Created June 3, 2018 10:04 — forked from danferth/PDO classes.md
PHP classes for PDO

PDO Classes for db connect and manipulation

Below is a description on how to use the classes in the below script

###Include script and set up db variables

include 'zdb.php';
@savasdersimcelik
savasdersimcelik / RainTPL Class
Created May 16, 2018 20:27
RainTPL Classına ait kodlar
<?php
/**
* RainTPL
* -------
* Realized by Federico Ulfo & maintained by the Rain Team
* Distributed under the MIT license http://www.opensource.org/licenses/mit-license.php
*
* @version 2.7.2
*/