Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

fatihtoprak

🏠
Working from home
Block or report user

Report or block fatihtoprak

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 delete-all-lightshot-app-gallery-history-items.js
View * usage data_get.php
{{dd( array_sum( data_get($cart['cart_item'], '*.price.net_subtotal') ) )}}
View amp-fullscreen.amp.html
<!doctype html>
<html >
<head>
<meta charset="utf-8">
<title>AMP #0</title>
<link rel="canonical" href="amps.html" >
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<meta name="apple-mobile-web-app-title" content="AppTitle">
<meta name="apple-mobile-web-app-capable" content="yes">
@fatihtoprak
fatihtoprak / amp form.md
Last active Oct 18, 2019
amp form push
View amp form.md

amp form submission

            return response($return, 200)
                ->header("Content-type", "application/json")
                ->header("Access-Control-Allow-Credentials", "true")
                ->header("Access-Control-Allow-Origin", "*.ampproject.org")
                //->header("AMP-Access-Control-Allow-Source-Origin", $ampxhr)
                ->header("Access-Control-Expose-Headers", "AMP-Access-Control-Allow-Source-Origin");
@fatihtoprak
fatihtoprak / remove_DS_store_files.md
Last active May 24, 2019
How to remove .DS_Store files.
View remove_DS_store_files.md

Tüm DS_Store dosyalarını kaldırma

sudo crontab -e

Vi editor'da klavyenizden bir kez I harfine basın ve aşağıdaki komutu girin:

*/10 * * * * root find / -name ".DS_Store" -depth -exec rm {} \;

  • Bu crontab girişi aşağıdaki formata sahiptir:
@fatihtoprak
fatihtoprak / il_ilce_enlem_boylam.sql
Created Sep 20, 2018 — forked from ismailbaskin/il_ilce_enlem_boylam.sql
Türkiye İl ve İlçelerin enlem boylam bilgileri
View il_ilce_enlem_boylam.sql
/*
Türkiye İl ve İlçelerin enlem boylam bilgileri (dörtgen olarak sınır pozisyonlarıyla birlikte) kaynak : google maps (başarsoft)
twitter : http://twitter.com/tserpico
*/
DROP TABLE IF EXISTS `pk_il`;
CREATE TABLE `pk_il` (
`il_id` int(2) NOT NULL COMMENT 'plaka kodu',
`il_adi` varchar(255) NOT NULL,
`lat` double(20,8) DEFAULT NULL COMMENT 'enlem',
@fatihtoprak
fatihtoprak / FacebookDebugger.php
Created Jan 20, 2018 — forked from FrostyX/FacebookDebugger.php
Facebook API - Force facebook to reload cache from your website
View FacebookDebugger.php
<?php
class FacebookDebugger
{
/*
* https://developers.facebook.com/docs/opengraph/using-objects
*
* Updating Objects
*
* When an action is published, or a Like button pointing to the object clicked,
* Facebook will 'scrape' the HTML page of the object and read the meta tags.
View vs-code.conf
{
"team.showWelcomeMessage": false,
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
"editor.fontSize": 16.3,
"editor.tabSize": 2,
"git.enableSmartCommit": true,
"workbench.colorTheme": "itg dark",
"git.autofetch": true,
"gitlens.advanced.messages": {
View class-wp-replace-img-url.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* WordPress Replace Image URL
*
* Replaces image url content of the WordPress post content.
*
* PHP version 5
* WordPress version 3.5
@fatihtoprak
fatihtoprak / bootstrap-extra.css
Created Apr 2, 2017
reset col paddings bootostrap
View bootstrap-extra.css
.row-no-padding > [class*="col-"] {
padding-left: 0 !important;
padding-right: 0 !important;
}
div[class*="col-"] {
padding-left: 0 !important;
padding-right: 0 !important;
}
You can’t perform that action at this time.