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\View\Components; | |
use Closure; | |
use Illuminate\Contracts\View\View; | |
use Illuminate\View\Component; | |
class Card extends Component | |
{ |
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
[opcache] | |
opcache.enable=1 | |
opcache.enable_cli=1 | |
opcache.jit_buffer_size=100M | |
opcache.jit=tracing |
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 | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Support\Facades\DB; | |
return new class extends Migration | |
{ | |
/** | |
* Run the migrations. | |
*/ |
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 | |
/** @see https://twitter.com/AshAllenDesign/status/1786037324775633109 */ | |
test('strict types are used everywhere') | |
->expect('App') | |
->toUseStrictTypes(); | |
test('globals') | |
->expect(['dd', 'ddd', 'die', 'dump', 'ray', 'sleep']) |
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
{ | |
"ti": "AAAABBBBCCCCDDDD_ZZZ", | |
"cn": "Example ION File", | |
"dt": "11", | |
"ci": "AAAABBBBCCCCDDDD_ZZZ~fioUStyk923dTK4y7iXdBwVjTBYEunBtd9GpEigvBf9", | |
"cs": "gkBdyWByfHiOwteD-vQn9jb7pudublgsI9kW4fiPhzsOi2lFKIttCzy5ofiiyMQqgSjpuS3GRDtMHbLbj_fexq", | |
"iu": "https://mingle-ionapi.inforcloudsuite.com", | |
"pu": "https://mingle-sso.inforcloudsuite.com:443/AAAABBBBCCCCDDDD_ZZZ/as/", | |
"oa": "authorization.oauth2", | |
"ot": "token.oauth2", |
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
Show hidden characters
/* | |
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings, | |
and don't need to be repeated here. Anything listed here will take precedence, however. | |
*/ | |
[ | |
{ "keys": ["super+shift+n"], "command": "new_window" }, | |
{ "keys": ["super+shift+w"], "command": "close_window" }, | |
{ "keys": ["super+alt+shift+n"], "command": "new_os_tab" }, | |
{ "keys": ["ctrl+alt+tab"], "command": "next_os_tab" }, | |
{ "keys": ["ctrl+alt+shift+tab"], "command": "prev_os_tab" }, |
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 | |
/** @see https://www.php.net/manual/en/intro.parallel.php */ | |
$runtime = new \parallel\Runtime(); | |
$channel = new \parallel\Channel(); | |
// Run a task in parallel, passing a channel for communication | |
$future = $runtime->run(function () use ($channel) { | |
// Do some work here | |
$channel->send('Result'); |
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
/** | |
* ClientGate - a component that will only render on the client, where you can safely access browser only APIs | |
* | |
* Usage: `<ClientGate>{() => `Hello Client ${window.title}`}</ClientGate>` | |
* @see https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store#usesyncexternalstore | |
*/ | |
const emptySubscribe = () => () => {}; | |
const ClientGate = ({ children }: React.PropsWithChildren) => { |
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
indexer: | |
stub_paths: | |
- "%application_root%/_ide_helper.php" | |
- "%application_root%/_ide_helper_models.php" | |
- "%application_root%/vendor/laravel/framework/src/Illuminate/Support/Facades" | |
- "%application_root%/vendor/laravel/framework/src/Illuminate/Database/Eloquent" | |
- "%application_root%/vendor/laravel/framework/src/Illuminate/Http" | |
- "%application_root%/vendor/laravel/framework/src/Illuminate/Routing" | |
- "%application_root%/vendor/laravel/framework/src/Illuminate/View" | |
- "%application_root%/vendor/laravel/framework/src/Illuminate/Foundation" |
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
#!/usr/bin/env bash | |
# The provided ffmpeg command performs several operations: | |
#`-vf "scale=-1:720,setsar=1"`: The `-vf` option stands for "video filter" and allows you to apply various video processing operations. In this case, two filters are applied: | |
# - `scale=-1:720`: This filter scales the video vertically to a height of 720 pixels, while maintaining the original aspect ratio. The `-1` value for the width means that the width will be calculated automatically based on the new height. | |
# - `setsar=1`: This filter sets the sample aspect ratio (SAR) to 1, which ensures that the video is displayed with square pixels. | |
#`-c:v libx264`: This option specifies the video codec to be used for the output file. In this case, it's the x264 codec, which is a popular and widely-used H.264 video codec. | |
#`-crf 20`: The Constant Rate Factor (CRF) is a quality setting for the x264 codec. A lower CRF value (e.g., 20) results in higher quality and larger file size, while a higher CRF value (e.g., 28) results in lower qual |
NewerOlder