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
View responsive-is-not-ready.css
@media (max-width: 1199px) {
html[lang][class],
html[lang][class] body {
height: calc(100vh - 32px) !important;
margin: 0 !important;
padding: 0 !important;
}
html[lang][class] body * {
display: none !important;
View log-all-events.js
// Detailed source: https://css-tricks.com/capturing-all-events/
var oldAddEventListener = EventTarget.prototype.addEventListener;
var disabled = ['mousemove', 'mouseover'];
EventTarget.prototype.addEventListener = function(eventName, eventHandler)
{
if(disabled.indexOf(eventName) === -1) {
console.log(eventName, eventHandler.toString());
}
@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",
You can’t perform that action at this time.