Skip to content

Instantly share code, notes, and snippets.

View lahmacun's full-sized avatar
🎯
Focusing

lahmacun

🎯
Focusing
View GitHub Profile
@lahmacun
lahmacun / git_notlari.md
Created June 9, 2017 16:10 — forked from mesuutt/git_notlari.md
Git notları

Neden git pull değilde git pull --rebase kullanılmalı

http://stackoverflow.com/a/7200641/1027507

Dosyaları silmeden son yapılan commiti silmek

git reset --soft HEAD~1

Remoteda olup localde olmayan branchi indirip üzerinde çalışmaya başlamak

git config --global user.name "Mustafa Zahid Efe"
git config --global user.email "zhdefe@gmail.com"
git config --list
git config --list --global
<!DOCTYPE html>
<html>
<head>
<title>Document Title</title>
</head>
<body>
</body>
</html>
<?php
function topla() {
$toplam = 0;
$argumanSayisi = func_num_args();
for ($i = 0; $i < $argumanSayisi; $i ++) {
$toplam += func_get_arg($i);
}
return $toplam;
}
@lahmacun
lahmacun / composer.json
Created December 30, 2017 11:00
PHPUnit Yazısı
{
"require": {
"phpunit/phpunit": "^6.5"
},
"autoload": {
"psr-4": {
"App\\": "app"
}
}
}
<?php
function topla() {
$toplam = 0;
$argumanSayisi = func_num_args();
for ($i = 0; $i < $argumanSayisi; $i ++) {
$toplam += func_get_arg($i);
}
return $toplam;
}
<?php
function topla() {
$toplam = 0;
$argumanSayisi = func_num_args();
for ($i = 0; $i < $argumanSayisi; $i ++) {
$toplam += func_get_arg($i);
}
return $toplam;
}
@lahmacun
lahmacun / Türkiye'deki İller Listesi - Satır Satır
Last active March 16, 2018 12:49
Özellikle Wordpress eklentisi olan Contact Form 7'de kullanmak için oluşturulmuş bir gisttir.
ADANA
ADIYAMAN
AFYON
AĞRI
AMASYA
ANKARA
ANTALYA
ARTVİN
AYDIN
BALIKESİR
server {
listen 80;
server_name dummy_site.local;
# MAMP DOCUMENT_ROOT !! Don't remove this line !!
root "/Applications/MAMP/htdocs/dummy_site.local/public";
access_log /Applications/MAMP/logs/nginx_access.log;
error_log /Applications/MAMP/logs/nginx_error.log;