Skip to content

Instantly share code, notes, and snippets.

Ömür Yanıkoğlu hayatbiralem

Block or report user

Report or block hayatbiralem

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
@hayatbiralem
hayatbiralem / en.json
Last active Apr 24, 2019
Phone Area Codes in JSON Format (EN & TR)
View en.json
{
"+90": "Turkey",
"+93": "Afghanistan",
"+355": "Albania",
"+213": "Algeria",
"+1": "US Virgin Islands",
"+376": "Andorra",
"+244": "Angola",
"+54": "Argentina",
"+374": "Armenia",
@hayatbiralem
hayatbiralem / remove-empty-array-values.php
Created Nov 15, 2018
Remove empty arrays from nested array
View remove-empty-array-values.php
<?php
$array1 = $array2 = array (
0 =>
array (
'id' => '',
'name' => '',
'description' => null,
'categories' => false,
'posts' => '',
@hayatbiralem
hayatbiralem / download.sh
Created Oct 5, 2018 — forked from 84em/download.sh
Download website recursively with wget
View download.sh
#!/bin/bash
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=unix \
--domains domain.com \
View remove-default-jquery-ajax-header.js
$.ajax(
'https://api.github.com/search/repositories?q=' + encodeURIComponent(search),
{
// 'xhr' option overrides jQuery's default
// factory for the XMLHttpRequest object.
// Use either in global settings or individual call as shown here.
xhr: function() {
// Get new xhr object using default factory
var xhr = $.ajaxSettings.xhr();
// Copy the browser's native setRequestHeader method
View laravel.conf
server {
listen 80;
listen [::]:80;
server_name parkinson.irm.com.tr;
root /var/www/html/parkinson/public;
index index.php index.html index.htm;
location / {
@hayatbiralem
hayatbiralem / Readme.md
Last active Apr 15, 2018
Sample: Using Contact Form 7 with Enfold
View Readme.md

Using Contact Form 7

These codes for Ephemerid.

Disable Autop

First of all disable autop with this:

# wp-config.php
define('WPCF7_AUTOP', false);
View stoklar.txt
KL00567-R06,0
KL00567-R08,0
KL00568-G01,2
KL00568-R01,6
KL00569-R01,1
KL00569-R03,0
KL00569-R05,0
KL00569-R07,0
KL00569-R08,0
KL00569-R12,3
View urunler.xml
This file has been truncated, but you can view the full file.
[
{
"sku":"BL00001-R01",
"store_view_code":"",
"attribute_set_code":"Default",
"product_type":"",
"categories":"Default Category/BİLEKLİK",
"product_websites":"base",
"name":"BL00001-R01",
@hayatbiralem
hayatbiralem / ContextCmder-Disable.reg
Created Jan 19, 2017 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
View ContextCmder-Disable.reg
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@hayatbiralem
hayatbiralem / String.toLatinFromTurkish.js
Created Nov 23, 2016
Bir metin içindeki Türkçe karakterleri Latin karakterlere dönüştürür.
View String.toLatinFromTurkish.js
if (typeof String.prototype.toLatinFromTurkish !== "function") {
String.prototype.toLatinFromTurkish = function() {
var string = this;
var letters = {
"Ğ":"G",
"Ü":"U",
"Ş":"S",
"İ":"I",
"Ö":"O",
"Ç":"C",
You can’t perform that action at this time.