All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Facades\App; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Contracts\Filesystem\FileNotFoundException; | |
| class ConfigServiceProvider extends ServiceProvider | |
| { |
| <?php | |
| if(!function_exists('fileUpload')){ | |
| /** | |
| * upload files (single and multiple) | |
| * | |
| * @param \Illuminate\Http\Request $request | |
| * @param $inputName | |
| * @param string $disk | |
| * @return array|mixed |
| { | |
| "icons": [ | |
| "fa fa-glass", | |
| "fa fa-music", | |
| "fa fa-search", | |
| "fa fa-envelope-o", | |
| "fa fa-heart", | |
| "fa fa-star", | |
| "fa fa-star-o", | |
| "fa fa-user", |
| <?php | |
| error_reporting(E_ALL); | |
| ini_set('display_errors',1); | |
| set_time_limit(0); | |
| function download ($file_source, $file_target) { | |
| echo 'starting'; | |
| $rh = fopen($file_source, 'rb'); | |
| $wh = fopen($file_target, 'w+b'); | |
| if (!$rh || !$wh) { |
| //use jquery and sweetAlert2 | |
| $(document).ready(function() { | |
| $("form input[name~=_method][value~=DELETE]").closest('form').submit(function(event) { | |
| event.preventDefault(); | |
| var form = $(this); //wrap this in jQuery | |
| swal({ | |
| title: "are you sure?", | |
| text: "do you realy want to delete this item?", | |
| type: "warning", | |
| showCancelButton: true, |
wgetwget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
| // add some prototypes | |
| String.prototype.limit = function(length = 150, tail = '...') { | |
| return this.substr(0, length) + (this.length > length ? tail : ''); | |
| }; | |
| // how to use: | |
| 'this is an string'.limit(5); | |
| // or it can be like the below | |
| let name = 'this is my name'; |
^data:((?:\w+\/(?:(?!;).)+)?)((?:;[\w\W]*?[^;])*),(.+)$test this pattern on regexr: https://regexr.com/4inht
regex pattern to match RFC 2397 data URL