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
| Refer Link: https://any-api.com/ |
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
| [ | |
| { | |
| "keys": [ | |
| "tab" | |
| ], | |
| "command": "expand_abbreviation_by_tab", | |
| "context": [ | |
| { | |
| "operand": "source.js", | |
| "operator": "equal", |
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
| { | |
| "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJibG9nLmRldiIsInN1YiI6IjU5YWEyYTQ3ZjlkYzQxMTU3ODAwNjM0NiIsImlhdCI6MTUwNDYwNTY1MiwiZXhwIjoxNTA0NjA5MjUyfQ.F-7q5gR7TnLFaHxKhOiacgPlOzAYGgQ1lu5mZ_WWnqI" | |
| } |
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\Middleware; | |
| use Closure; | |
| use Exception; | |
| use App\User; | |
| use Firebase\JWT\JWT; | |
| use Firebase\JWT\ExpiredException; |
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
| APP_ENV=local | |
| APP_DEBUG=true | |
| APP_KEY=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 | |
| DB_CONNECTION=mysql | |
| DB_HOST=localhost | |
| DB_PORT=3306 | |
| DB_DATABASE= | |
| DB_USERNAME= | |
| DB_PASSWORD= | |
| CACHE_DRIVER=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
| <?php | |
| namespace App\Http\Controllers; | |
| use Validator; | |
| use App\User; | |
| use Firebase\JWT\JWT; | |
| use Illuminate\Http\Request; | |
| use Firebase\JWT\ExpiredException; | |
| use Illuminate\Support\Facades\Hash; |
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 | |
| $sender_name = stripslashes($_POST["sender_name"]); | |
| $sender_email = stripslashes($_POST["sender_email"]); | |
| $sender_message = stripslashes($_POST["sender_message"]); | |
| $response = $_POST["g-recaptcha-response"]; | |
| $url = 'https://www.google.com/recaptcha/api/siteverify'; | |
| $data = array( | |
| 'secret' => 'YOUR_SECRET', | |
| 'response' => $_POST["g-recaptcha-response"] |
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
| $this->form_validation->set_rules ( 'featured_image', 'Blog Image', 'callback_image_required_validation' ); | |
| /** | |
| * This method used for image required validation. | |
| * | |
| * @return boolean | |
| */ | |
| function image_required_validation() { | |
| $allowed_mime_type_arr = array ( | |
| 'image/gif', |
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
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
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/php | |
| <?php | |
| /* | |
| * Convert JSON file to CSV and output it. | |
| * | |
| * JSON should be an array of objects, dictionaries with simple data structure | |
| * and the same keys in each object. | |
| * The order of keys it took from the first element. | |
| * | |
| * Example: |