Skip to content

Instantly share code, notes, and snippets.

View erdemoflaz's full-sized avatar
🥑

Erdem OFLAZ erdemoflaz

🥑
View GitHub Profile
all: [
70526,
54343,
36969,
29899,
50669,
14178,
732,
738,
6921,
* H1 tagleri direk sayfanın en önemli parçası, title'lar kesinlikle h1 olmalı.
* Her sayfaya özel title ve description
* Ne olursa olsun bütün linklere (a tagleri) title eklenmeli, title herşey <3
* Sosyal medya hesaplarından aktif paylaşım (özellikle google+), resim ve texler özgün olmalı
* Sayfalar çok hızlı açılmalı, hızı azaltacak scripttir cdn dir gözünün yaşına bakma ya sil ya çek locale.
* Google zengin kartlar eklersen snippet vs oluşturabilir.
* Google search scriptini koyarsan daha google üzerindeyken site başlığının altında search input'u çıkacak.
* Sadece google değil, yandex'i de kullan (yandex metrika)
* Sayfalarda özgün ve bolca yazı olsun h1 h2 h3 taglari ile birlikte
* Url ler user friendly, olabildiğince kısa ve "_" alt çizgi barındırmamalı.
@erdemoflaz
erdemoflaz / elasticupdate.php
Last active April 6, 2020 13:24
elastic update commands
php artisan elastic:drop-index 'App\Scout\ProductIndexConfigurator' &&
php artisan elastic:create-index 'App\Scout\ProductIndexConfigurator' &&
php artisan scout:import 'App\Product' &&
php artisan elastic:drop-index 'App\Scout\TagIndexConfigurator' &&
php artisan elastic:create-index 'App\Scout\TagIndexConfigurator' &&
php artisan scout:import 'App\Tag'
// türkçe karakterleri bozmadan olması gerektiği gibi encode edip basan kod parçası
// not: $encoding = 'UTF-8'
public function mb_ucfirst($string, $encoding)
{
$strlen = mb_strlen($string, $encoding);
$firstChar = mb_substr($string, 0, 1, $encoding);
$then = mb_strtolower(mb_substr($string, 1, $strlen - 1, $encoding), $encoding);
return mb_strtoupper($firstChar, $encoding) . $then;
}
@erdemoflaz
erdemoflaz / style.css
Created January 23, 2019 10:45
css overflow data crop
.classname {
white-space: nowrap;
overflow: hidden;
width: 100px;
text-overflow: ellipsis;
}
@erdemoflaz
erdemoflaz / chrome_autocomplete_yellow.css
Created July 25, 2018 11:06
F*CK CHROME, remove the autocomplete yellow color
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 50px white inset;
-webkit-text-fill-color: #333;
}
İnstragram son
<script type="text/javascript">
$(document).ready(function(){
$.ajax({url: "https://www.instagram.com/explore/tags/falan-felan/?__a=1", success: function(result){
console.log(result.tag.media.nodes)
result.tag.media.nodes.forEach(function(element) {
{
"status": "success",
"search_nag": {},
"code": 0,
"bookmark": "b28xMDB8MDQ0NWZiOTBjNzNiODlkOTQ1ZTk3ZjY0ZTBhYjU0YjM0ZDYyNDg3NjU3ZWQ3OGJmZjI4ZTliZGRmODBlMzJlNQ==",
"debug_data": {
"query_data": {}
},
"message": "ok",
"data": [
@erdemoflaz
erdemoflaz / git.txt
Last active October 31, 2023 17:25
Git kullanımı | TR
# -------------------------------------------
# GIT NOTLARI - ERDEM OFLAZ |8 ARALIK 2017|
# -------------------------------------------
# Paketlerin yüklenmesi
aptitude install git
# kullanıcı bilgileri
git config --global user.name "emrah"
@erdemoflaz
erdemoflaz / mac os da android run
Created November 2, 2017 02:10
React-Native Android device Settings on Macos
https://stackoverflow.com/questions/35141951/react-native-java-lang-runtimeexception-sdk-location-not-found-define-locati