Skip to content

Instantly share code, notes, and snippets.

View yahyaerturan's full-sized avatar

Yahya Erturan yahyaerturan

View GitHub Profile
@yahyaerturan
yahyaerturan / TestController.php
Created January 2, 2019 16:52
Symfony Doğru Yazdırtıyor :)
<?php
/*
* This file is part of the VayesIMS package.
*
* (c) Yahya ERTURAN <root@yahyaerturan.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@yahyaerturan
yahyaerturan / _dropzone.php
Created November 28, 2018 16:23
_dropzone.php
<div class="files" id="previews">
<div id="template" class="vayes-file-row">
<div class="col-xs-6 col-sm-1 col-md-1">
<div class="vayes-vac-wrapper">
<div class="vayes-vac-element">
<div class="preview">
<img class="img-responsive img-circle" data-dz-thumbnail />
</div>
</div>
</div>
<?php
namespace App\Form;
use App\Entity\Business;
use App\Entity\User;
use Doctrine\ORM\EntityRepository;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\BirthdayType;
<?php
namespace App\Helper;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Translation\TranslatorInterface;
class XhrResponse
@yahyaerturan
yahyaerturan / .history
Last active April 5, 2021 05:58
composer.lock file - for - security.firewall.map has a dependency on a non-existent service security.request_matcher.zfHj2lW
1. composer require server --dev
symfony/process (v4.1.6)
symfony/web-server-bundle (v4.1.6)
Symfony operations: 1 recipe (418553c035c1340534830260d374a8d2)
- Configuring symfony/web-server-bundle (>=3.3):
2. composer require make --dev
Using version ^1.8 for symfony/maker-bundle
@yahyaerturan
yahyaerturan / vstart.php
Created April 29, 2017 11:01
functions
function get_page_data($lang,$id_page,$result_type = 'row')
function get_page($arguments=array(),$lang='tr',$id_page=0,$media_type='ibs',$media_limit=0)
function get_page_media($arguments=array(),$id_page='1',$media_type='isl',$limit=0)
function get_article_media($arguments=array(),$id_article='',$media_type='isl',$limit=0)
function get_sub_pages($arguments=array(),$lang='tr',$id_page='0',$media_type='',$limit = '0',$result_type='result')
function get_navigation($arguments=array(),$lang='tr',$id_menu=1,$type='list',$online_only=true,$max_depth='0',$sub_nav='0',$ul_class='',$active_class='', $active_segment=2,$use_span=false)
function get_articles($arguments=array(),$lang='tr',$id_page='',$id_article='',$media_type='',$limit='0',$order_by='a.logical_date',$asc_desc='desc',$result_type='result')
function get_articles_by_category($arguments=array(),$lang='tr',$id_page = 0, $id_category='',$media_type='',$limit='0',$order_by='a.logical_date',$asc_desc='desc',$result_type='result')
function get
@yahyaerturan
yahyaerturan / seed.php
Last active March 13, 2017 20:29
CI3 Fake Date Dumper with Intervals
<?php
# Creates an array first with given numbers
# Dumps it to db with 250 records/insert intervals
# You may need to adjust your php settings:
# ini_set('memory_limit', '1024M');
# ini_set('max_execution_time', 300); //300 seconds = 5 minutes
/**
* Users Seeds
@yahyaerturan
yahyaerturan / .bashrc
Created January 10, 2017 12:50
Ubuntu .bashrc
# Added by Yahya ERTURAN
export PATH=$PATH:$HOME/bin
# Added by Yahya ERTURAN for NodeJS & NPM
export PATH=$HOME/.npm-global/bin:$PATH
@yahyaerturan
yahyaerturan / sublime-settings
Created January 10, 2017 09:27
Sublime Settings
{
"auto_find_in_selection": true,
"color_scheme": "Packages/Theme - itg.flat/itg.dark.tmTheme",
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"font_face": "Monaco",
"font_size": 12,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
@yahyaerturan
yahyaerturan / index.html
Created November 12, 2016 19:35
Centered Vayes Logo for empty hosts
<!doctype html>
<html lang="tr">
<head>
<meta charset="utf-8">
<title>Vayes Web Yazılım</title>
<meta name="description" content="Vayes Web Yazılım - Web Tasarım">
<meta name="author" content="Vayes">