Skip to content

Instantly share code, notes, and snippets.

View eftalyurtseven's full-sized avatar

Eftal Yurtseven eftalyurtseven

View GitHub Profile
@eftalyurtseven
eftalyurtseven / functions.php
Created October 12, 2012 14:32
Wordpress Yazara ait Benzer Yazıları Listelemek
function yazarin_benzer_yazilari() {
global $authordata, $post;
$authors_posts = get_posts( array( 'author' => $authordata->ID, 'post__not_in' => array( $post->ID ), 'posts_per_page' => 5 ) );
$output = '<ul>';
foreach ( $authors_posts as $authors_post ) {
$output .= '<li><a href="' . get_permalink( $authors_post->ID ) . '">' . apply_filters( 'the_title', $authors_post->post_title, $authors_post->ID ) . '</a></li>';
}
$output .= '</ul>';
return $output;
}
@eftalyurtseven
eftalyurtseven / sidebar-right.php
Created October 12, 2012 15:21
Wordpress Kullanıcı Giriş Kontrolü
<?php
if( is_user_logged_in()){
echo 'Giriş Yapıldı!';
}else{
echo 'Giriş Yapılamamış!';
}
?>
@eftalyurtseven
eftalyurtseven / index.php
Last active March 17, 2019 09:24
jQuery Php Anında Arama
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Eftal Yurtseven Anında Arama</title>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function(){
@eftalyurtseven
eftalyurtseven / index.php
Created December 30, 2012 08:39
jQuery PHP AJAX Post Etme kodlarımız
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Post işlemi &raquo; Eftal Yurtseven</title>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function(){
$("#sonuc").hide();
@eftalyurtseven
eftalyurtseven / index.php
Created December 31, 2012 10:59
jQuery ile Method yazmak ve jStyle Methodu
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Eftal Yurtseven Method Kullanımı</title>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="jStyle.js"></script>
<script type="text/javascript">
$(function(){
@eftalyurtseven
eftalyurtseven / travelpro.xml
Created January 5, 2013 15:36
TravelPro Türkçe Blogger Teması
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>
<b:include data='blog' name='all-head-content'/>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
@eftalyurtseven
eftalyurtseven / functions.php
Created May 1, 2013 19:38
Php ile Haber Scripti Yazmak Bölüm 2 Fonksiyon Dosyamız
<?php
/*
* Project: Haber Scripti
* Author: Eftal Yurtseven
* Functions
*/
/*
@eftalyurtseven
eftalyurtseven / ChecksumAddress.js
Created December 13, 2021 14:16
How to check ETH address is valid or not? Tutorial is here: https://youtu.be/b_GnjbVWSo4
const Web3 = require('web3');
class Web3Helper {
constructor() {
this.web3 = new Web3();
}
isValidAddress = (address) => {
try {
this.web3.utils.toChecksumAddress(address);
{
"table_number": "B-1",
"products": {
"Italian Pizza": 3,
"Chef's Special": 2,
"Water": 1,
"Beer": 2,
"Wine": 3
}
}
package order
import (
"context"
"errors"
"fmt"
"time"
"github.com/jackc/pgx/v4"
)