Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Bilal Ucar bilalucar

💭
I may be slow to respond.
Block or report user

Report or block bilalucar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:00d32d431b13d1715dbc0d8228b0cc46
<a href="https://webmaster.kitchen" rel="nofollow">Webmaster Kitchen</a>
View gist:89d1674c3026762d9c217834e0abbc28
//autoload fonksiyonu, PSR-0 standartların nasıl otomatik yüklendiğini gösterir.
<?php
function autoload($className)
{
$className = ltrim($className, '\\');
$fileName = '';
$namespace = '';
if ($lastNsPos = strrpos($className, '\\')) {
$namespace = substr($className, 0, $lastNsPos);
View gist:cedd5900614c1ca350c047e3d0147e29
<?php
// side effect: change ini settings
ini_set('error_reporting', E_ALL);
// PHP 5.3 and later:
namespace ProjeAdi\Model;
class Foo
{
}
View gist:ff63a6d060a74794e919c2d63c62ddb0
<?php
namespace Vendor\Package;
use FooInterface;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterface
{
public function sampleFunction($a, $b = null)
View gist:bf5b517f9512452e3b8b2a876cba83b7
/**
* Interpolates context values into the message placeholders.
*/
function interpolate($message, array $context = array())
{
// build a replacement array with braces around the context keys
$replace = array();
foreach ($context as $key => $val) {
$replace['{' . $key . '}'] = $val;
}
View gist:6e230825191d9fa25f8717dbd12e9dc6
<fieldset>
<legend>Personal Information:</legend>
<div>
<label for="first_name">First Name</label>
<input type="text" name="first_name" id="first_name">
</div>
<div>
<label for="last_name">Last Name</label>
<input type="text" name="last_name" id="last_name">
</div>
View gist:71de571b4da99b376d328ef66948514a
<link rel="canonical" href="https://webmaster-kitchen/seo-nedir"/>
//Bu, arama motorlarına, söz konusu sayfanın URL'nin bir kopyası gibi muamele edilmesi gerektiğini ve
//motorların uyguladığı tüm bağlantı ve içerik ölçümlerinin bu URL'ye geri dönmesi gerektiğini söyler.
View gist:887fc307e5c11111c0c255ded035afa3
<div>
SEO Conference<br/>
Learn about SEO from experts in the field.<br/>
Event date:<br/>
May 8, 7:30pm
</div>
View gist:9936f559a5777858173f37cc10ca800a
<div itemscope itemtype="http://schema.org/Event">
<div itemprop="name">SEO Conference</div>
<span itemprop="description">Learn about SEO from experts in the field.</span>
Event date:
<time itemprop="startDate" datetime="2012-05-08T19:30">May 8, 7:30pm</time>
</div>
@bilalucar
bilalucar / gist:bf77554ec8508c6a41e56543e0245b00
Created Mar 1, 2017
Link Verirken Dikkat Edilmesi Gerekenler
View gist:bf77554ec8508c6a41e56543e0245b00
<a href="../"> Anasayfa </a>
Bunun yerine şunu kullanırsınız:
<a href="https://webmaster.kitchen"> Ana Sayfa </a>
You can’t perform that action at this time.