Skip to content

Instantly share code, notes, and snippets.

View melihucar's full-sized avatar
👾

Melih Uçar melihucar

👾
View GitHub Profile
@melihucar
melihucar / .i3-config
Last active May 30, 2017 12:18
.tmux.conf
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@melihucar
melihucar / Service.java
Created April 29, 2016 10:48
Android Remote Service Request Handler
public class Service {
public final class Method {
public static final String GET = "GET";
public static final String POST = "POST";
public static final String DELETE = "DELETE";
public static final String PUT = "PUT";
}
public interface OnBeforeRequestListener {
public void onBeforeRequest();
@melihucar
melihucar / .vimrc
Created April 22, 2016 11:12
.vimrc
" File ~/.nvimrc
call plug#begin('~/.config/nvim/plugged')
Plug 'tpope/vim-sensible'
" General
Plug 'Xuyuanp/nerdtree-git-plugin' | Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
@melihucar
melihucar / cities.php
Last active September 17, 2015 19:33
Yahoo Weather Şehirler
$cities = [
['yahoo_id' => 2344116, 'plate_no' => '34', 'name' => "İstanbul"],
['yahoo_id' => 2343732, 'plate_no' => '06', 'name' => "Ankara"],
['yahoo_id' => 2344117, 'plate_no' => '35', 'name' => "İzmir"],
['yahoo_id' => 2343678, 'plate_no' => '01', 'name' => "Adana"],
['yahoo_id' => 2343680, 'plate_no' => '02', 'name' => "Adıyaman"],
['yahoo_id' => 2343682, 'plate_no' => '03', 'name' => "Afyon"],
['yahoo_id' => 2343687, 'plate_no' => '04', 'name' => "Ağrı"],
['yahoo_id' => 2343707, 'plate_no' => '68', 'name' => "Aksaray"],
['yahoo_id' => 2343729, 'plate_no' => '05', 'name' => "Amasya"],
@melihucar
melihucar / yokVT.sql
Last active August 29, 2015 14:08 — forked from hkulekci/yokVT.sql
CREATE TABLE `yok_bolumler` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`fakulteId` varchar(40) NOT NULL,
`universiteId` int(6) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `fakulteHash` (`fakulteId`)
) ENGINE=MyISAM;
INSERT INTO `yok_bolumler` (`id`, `fakulteId`, `universiteId`, `name`) VALUES
@melihucar
melihucar / gist:0d54a3076a74f2c7fd65
Created October 28, 2014 13:09
Datatable currency sort
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"currency-pre": function ( a ) {
a = (a==="-") ? 0 : a.replace( /[^\d\-\.]/g, "" );
return parseFloat( a );
},
"currency-asc": function ( a, b ) {
return a - b;
},
@melihucar
melihucar / gist:4975550df1185bc0c1e2
Created October 25, 2014 16:12
Checkbox SelectAll
<input type="checkbox" class="select-all" data-target=".select">
$('.select-all').click(function(){
var checked = $(this).prop('checked');
var $target = $( $(this).attr('data-target') );
$target.each(function(){
$(this).prop('checked', checked);
});
});
bin,banka_kodu,banka_adi,type,sub_type,virtual,prepaid
413226,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,PLATINUM
444676,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,CLASSIC
444677,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,GOLD
444678,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,PLATINUM
453955,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
453956,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, GOLD
454671,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
454672,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
454673,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, BUSINESS
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}
[
{
"name":"Adana",
"slug":"adana",
"plate_code":1,
"districts":[
{
"name":"Alada\u011f",
"slug":"aladag"
},