Skip to content

Instantly share code, notes, and snippets.

View ahmetgungor's full-sized avatar
🙃

ahmet G. ahmetgungor

🙃
View GitHub Profile
var keyExistsOn = (o, k) => k.split(".").reduce((a, c) => a.hasOwnProperty(c) ? a[c] || 1 : false, Object.assign({}, o)) === false ? false : true;
<?php
/**
* adasusbilisim[.]gmail.com
*/
defined('BASEPATH') OR exit('No direct script access allowed');
class Tarihhesapla {
private $msj = array();
/**
@ahmetgungor
ahmetgungor / gist:2490ef3634089447b95220de5ef113c7
Created November 6, 2017 11:24
sag tuş ve f12 kaldırır
<script language="JavaScript">
/**
* Disable right-click of mouse, F12 key, and save key combinations on page
* By Arthur Gareginyan (arthurgareginyan@gmail.com)
* For full source code, visit http://www.mycyberuniverse.com
*/
window.onload = function() {
document.addEventListener("contextmenu", function(e){
e.preventDefault();
}, false);
@ahmetgungor
ahmetgungor / Html5 Notification Kullanımı
Last active February 16, 2016 11:54
Html5 Notification Kullanımı
<script>
// tarayıcı türleri ie,chrome,mozilla
var notification = window.Notification || window.mozNotification || window.webkitNotification;
// Kullanıcı izini
if ('undefined' === typeof notification)
alert('Web notification not supported');
else
notification.requestPermission(function(permission){});