This file contains 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
$letters = [ | |
'A' => 'А', | |
'B' => 'Б', | |
'V' => 'В', | |
'G' => 'Г', | |
'D' => 'Д', | |
'E' => 'Е', | |
'J' => 'Ж', | |
'Z' => 'З', | |
'I' => 'И', |
This file contains 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
$([document.documentElement, document.body]).animate({ | |
scrollTop: $('#needleElement').offset().top | |
}, 1000); |
This file contains 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 | |
$target = $_SERVER['DOCUMENT_ROOT'] . '/path/to/folder'; // Target folder | |
$link = $_SERVER['DOCUMENT_ROOT'] . '/path/to/link/NAME'; // Linkfile folder with name NAME | |
symlink($target, $link); | |
echo readlink($link); |
This file contains 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
1. php artisan key:generate | |
2. php artisan config:clear | |
3. done |
This file contains 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\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Foundation\Auth\AuthenticatesUsers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
class LoginController extends Controller |
This file contains 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 | |
function commonParts($a, $b) { | |
$a = trim($a); | |
$b = trim($b); | |
$str = strlen($a) <= strlen($b) ? strtolower($a) : strtolower($b); | |
$pos = 0; | |
$max = 0; |