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
| { | |
| "name": "laravel/laravel", | |
| "type": "project", | |
| "description": "The Laravel Framework.", | |
| "keywords": [ | |
| "framework", | |
| "laravel" | |
| ], | |
| "license": "MIT", | |
| "require": { |
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
| public class ActivityOrFragment extends AppCompatActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| // usage | |
| // save in shared preference | |
| SharedPreferencesHelper.init(getApplicationContext(), "Shared Preference Name") |
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
Show hidden characters
| { | |
| "caret_extra_bottom": 10, | |
| "caret_extra_top": 10, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/One Dark Color Scheme/One Dark.tmTheme", | |
| "draw_minimap_border": true, | |
| "draw_white_space": "all", | |
| "font_face": "Monaco", | |
| "font_options": | |
| [ |
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
| #Create filter to match files you want to cache | |
| # 3 HOUR | |
| <FilesMatch "\.(txt|xml|js|css)$"> | |
| Header set Cache-Control "max-age=10800" | |
| </FilesMatch> |
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 Illuminate\Contracts\Validation\Validator; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| use Illuminate\Support\Facades\Hash; | |
| class ProfileUpdatePasswordRequest extends FormRequest | |
| { |
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 HelperServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Register 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
| https://colab.research.google.com/github/biplobsd/OneClickRun/blob/master/OneClickRun.ipynb#scrollTo=kSvUMUuTPX7r |
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
| let referCode = document.getElementById('refer_code'); | |
| referCode.select() | |
| try { | |
| const successful = document.execCommand('copy'); | |
| const msg = successful ? 'successful' : 'unsuccessful'; | |
| alert('Refer code was copied ' + msg); | |
| } catch (err) { | |
| alert('Oops, unable to copy'); | |
| } | |
| /* unselect the range */ |
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
| let referCode = document.getElementById('refer_code'); | |
| referCode.select() | |
| try { | |
| const successful = document.execCommand('copy'); | |
| const msg = successful ? 'successful' : 'unsuccessful'; | |
| alert('Refer code was copied ' + msg); | |
| } catch (err) { | |
| alert('Oops, unable to copy'); | |
| } | |
| /* unselect the range */ |
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\Resources; | |
| use Illuminate\Http\Resources\Json\JsonResource; | |
| trait ResourceHelpers | |
| { |