Skip to content

Instantly share code, notes, and snippets.

View furkankadioglu's full-sized avatar
🏠
Working from home

Kan furkankadioglu

🏠
Working from home
View GitHub Profile
$crawler = Goutte::request('GET', $url);
$datalar = [];
$trIndex = 0;
$tdIndex = 0;
$crawler->filter('table')->each(function ($table) use ($trIndex, $tdIndex, $datalar) {
$table->filter('tr')->each(function ($tr) use ($trIndex, $tdIndex, $datalar) {
$tr->filter('td')->each(function ($td) use ($trIndex, $tdIndex, $datalar) {
$tdIndex++;
});
$trIndex++;
@furkankadioglu
furkankadioglu / Provider.swift
Created August 20, 2017 12:54
Provider Mutating Hatası
//
// Provider.swift
// Sanal Piyasa
//
// Created by Furkan KADIOGLU on 28/06/2017.
// Copyright © 2017 Furkan KADIOGLU. All rights reserved.
//
import UIKit
import Alamofire
@furkankadioglu
furkankadioglu / chromeActions.js
Last active June 8, 2017 17:08
chromeActions
export function getChromeInformations() {
var eKey, aKey, authCheck;
return storageGet("eKey")
.then(function(_eKey){
console.log("Begin the promise function");
if("undefined" === typeof _eKey || _eKey == "" || _eKey == null)
@furkankadioglu
furkankadioglu / redux-test.js
Created June 5, 2017 16:45
React - Redux Örneği
import React, { Component } from 'react';
import { connect } from "react-redux";
import axios from 'axios';
import store from './store.js';
import Switcher from './components/Switcher';
import './components/Switcher.css';
@furkankadioglu
furkankadioglu / Switcher.js
Created June 3, 2017 20:53
React - Communication
import React, { Component } from 'react';
class Switcher extends Component {
constructor(props) {
@furkankadioglu
furkankadioglu / App.js
Created June 3, 2017 20:52
React - Communication
import React, { Component } from 'react';
import Switcher from './components/Switcher';
import './components/Switcher.css';
import './App.css';
class App extends Component {
class Calendar {
constructor(eventDatas)
{
this.selects = [];
this.eventObjects = [];
this.originalEvents = eventDatas;
this.originalEvents.forEach(function(data) {
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use File;
@furkankadioglu
furkankadioglu / roles.php
Created July 23, 2016 21:35
Roles Örneği
<?php
if($id == "generate-hierarchy")
{
/*
Demo Trainer ve Trainee için açıklamalar yetersiz kaldı.
Toplantıda bu konu sonraya ertelendi.
<?php
public function store(Request $request)
{
$postCategory = $request->get('postCategory');
$gameToken = $request->header('gameToken');
$csrf = $request->header('X-CSRF-TOKEN');
$validator = Validator::make($request->all(),