Skip to content

Instantly share code, notes, and snippets.

View phatyh's full-sized avatar
🎯
Focusing

Fatih Turan phatyh

🎯
Focusing
View GitHub Profile
// ==UserScript==
// @name whatsapp.com make web option available
// @match https://api.whatsapp.com/send/*
// @author github.com/andersonbosa < @t4inha >
// @description see more in: https://gist.github.com/andersonbosa/24cfe32eb0bc9074c1e1ef4e1b5b9f5f
// ==/UserScript==
// Function to update URL parameter
function updateURLParameter(param, value) {
@phatyh
phatyh / BaseModel.php
Last active July 18, 2020 12:29
Laravel Query Builder for DevExtreme Filter, Skip, Take, Sort
<?php
namespace App\Models;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Model;
class BaseModel extends Model
{
protected $operations = [
@phatyh
phatyh / form.html
Last active March 15, 2018 08:57
Submit multiple forms using jquery-ajax
<form class="async" action="url" method="post">
<div class="async-success">
<input type="text">
<div class="async-error"></div>
<button type="submit" data-text="Submitting...">Submit</button>
</div>
</form>
<form class="async" action="url" method="post">
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@phatyh
phatyh / Tr.php
Last active April 5, 2017 14:20
Türkçe karakterli ucwords, ucfirst, strtoupper, strtolower php fonksiyonları
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Tr
{
protected $alphabet = [
'upper' => ['A','B','C','Ç','D','E','F','G','Ğ','H','I','İ','J','K','L','M','N','O','Ö','P','R','S','Ş','T','U','Ü','V','Y','Z'],
'lower' => ['a','b','c','ç','d','e','f','g','ğ','h','ı','i','j','k','l','m','n','o','ö','p','r','s','ş','t','u','ü','v','y','z']
];
function uppercase($text)
@phatyh
phatyh / spintax.php
Last active August 29, 2015 14:08 — forked from irazasyed/spintax.php
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
* @name Spintax
* @author Jason Davis - https://www.codedevelopr.com/
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/
*/
class Spintax
{
public function process($text)
RADİKAL
=====================================
HABER LİSTELEME ve DETAYLANDIRMA
--------------------------------
* Tüm rastgele cihaz id'ler yerine 1 yazılabilir
GET -> http://native.radikal.com.tr/native/dailynews/{sayfa}/{rastgele-cihaz-id}