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
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| _ "github.com/lib/pq" | |
| "log" | |
| "time" | |
| ) |
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
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| _ "github.com/lib/pq" | |
| "log" | |
| "time" | |
| ) |
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 | |
| $arr = [[1, 1, 1, 0, 0], | |
| [0, 1, 1, 1, 0], | |
| [1, 0, 0, 1, 0], | |
| [0, 0, 1, 0, 1], | |
| [0, 0, 0, 0, 1]]; | |
| var_dump(getPath(0, 0, $arr)); |
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\Controllers; | |
| use Carbon\Carbon; | |
| use Illuminate\Support\Facades\DB; | |
| class UserController extends Controller | |
| { |
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\Controllers; | |
| use Carbon\Carbon; | |
| use Illuminate\Support\Facades\DB; | |
| class UserController extends Controller | |
| { |
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 | |
| function base64StringToImage($base64String, $writeFolder, $newFileName) | |
| { | |
| //open file | |
| $file = fopen($writeFolder . "/" . $newFileName, "wb"); | |
| //problem with open a file | |
| if (!$file) | |
| throw new \Exception('can able to open file'); |
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
| Options +FollowSymbolics | |
| RewriteEngine on | |
| #request routing | |
| RewriteRule ^([a-zA-Z_-]*)$ index.php?name=$1 [nc,qsa] |