This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lib; | |
use Illuminate\Foundation\Application as Laravel; | |
/** | |
* @name Ferdi ÜNAL | |
* @email [email protected] | |
*/ | |
class Application extends Laravel | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Create The Application | |
|-------------------------------------------------------------------------- | |
| | |
| The first thing we will do is create a new Laravel application instance | |
| which serves as the "glue" for all the components of Laravel, and is | |
| the IoC container for the system binding all of the various parts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/** | |
* @author Ferdi ÜNAL | |
* @email [email protected] | |
*/ | |
$location = require "location.php"; | |
$json = fopen('location.json', 'w'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*** | |
* Laravel'de farklı dizindeki dosyaları kendi oluşturduğumuz url'ler ile | |
* nasıl göstereceğimizi aşağıda belirttim. | |
* $path değişkeni sizin dosyanızın yolunu belirler. | |
*/ | |
Route::get('/img/{user_id}/{filename}',function($userId,$filename){ | |
$path = public_path("upload/users/{$userId}/{$filename}"); | |
if(!\File::isFile($path)){ | |
abort(404,"Dosya bulunamadı !"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5.QtCore import Qt | |
from PyQt5.QtWidgets import QDialog | |
class Editor(QDialog): | |
def __init__(self,parent=None,path=None): | |
super().__init__(parent) | |
self.path=path | |
self.initUI() | |
def initUI(self) : | |
self.setWindowFlags(self.windowFlags() | Qt.WindowMinimizeButtonHint | Qt.WindowMaximizeButtonHint | Qt.WindowStaysOnBottomHint) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Requests; | |
use App\Http\Requests\Request; | |
class Reminder extends Request | |
{ | |
/** | |
* Determine if the user is authorized to make this request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Http\Requests\Reminder as Request; | |
public function store(Request $request){ | |
return $request->all(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DATA = $(formId).serialize(); | |
const URL = $(formId).attr('action'); | |
$.ajax({ | |
url: URL, | |
data: DATA, | |
success: function (e) { | |
alertify.success('Tamamdır :)') | |
}, | |
error: function (e) { | |
const data = e.responseJSON; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@section('form') | |
<form class="ui form" action="{!! route(config('dencol.auth.routes.reminder.post.args.as')) !!}" | |
method="post" autocomplete="off" novalidate onsubmit="return false;" id="reminderForm"> | |
<div class="ui segment" style="text-align: left;"> | |
<div class="field"> | |
<div class="ui left icon input"> | |
<i class="user icon"></i> | |
<input type="text" name="email" placeholder="E-posta adresin" value="{!! old('email') !!}"> | |
</div> | |
</div> |