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\Services; | |
| use Intervention\Image\Drivers\Imagick\Driver; | |
| use Intervention\Image\ImageManager; | |
| class ImageOptimizer | |
| { |
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
| @props([ | |
| 'title' => 'Coming Soon', | |
| 'description' => "We're working hard to bring you this feature. Stay tuned for updates!", | |
| 'estimatedDate' => null, | |
| 'showNotifyButton' => true, | |
| 'className' => '', | |
| 'progress' => 75 | |
| ]) | |
| <div |
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
| import * as vscode from 'vscode'; | |
| export class LaravelProjectDetector { | |
| async isLaravelProject(): Promise<boolean> { | |
| const workspaceFolder = vscode.workspace.workspaceFolders?.[0]; | |
| if (!workspaceFolder) { | |
| return false; | |
| } | |
| try { |
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 | |
| header('Content-Type: application/json'); | |
| header("Access-Control-Allow-Origin: *"); | |
| $username = 'TU_USERNAME'; | |
| $password = 'TU_PASSWORD'; | |
| $api_url = "https://el-api-de-pepe-donis.com/auth"; |
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
| --- | |
| import { getImage } from "astro:assets"; | |
| const { imageUrl, alt = "" } = Astro.props; | |
| const imageImports = import.meta.glob("../assets/**/*.{png,jpg,jpeg,webp}", { | |
| eager: true, | |
| }); | |
| interface ImageModule { | |
| default: ImageMetadata; |
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
| <IfModule mod_rewrite.c> | |
| <IfModule mod_negotiation.c> | |
| Options -MultiViews -Indexes | |
| </IfModule> | |
| RewriteEngine On | |
| RewriteCond %{HTTP:Authorization} . | |
| RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
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
| import { useBottomSheetStore } from "@/store/useBottomSheetStore"; | |
| import { BottomSheetModal, BottomSheetView } from "@gorhom/bottom-sheet"; | |
| import { useEffect, useRef } from "react"; | |
| export default function BottomSheetGlobal() { | |
| const bottomSheetRef = useRef<BottomSheetModal>(null); | |
| const { isOpen, content, closeBottomSheet } = useBottomSheetStore(); | |
| useEffect(() => { | |
| if (isOpen) { |
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 to change sender email | |
| function wpb_sender_email( $original_email_address ) { | |
| return 'no-replay@example.com'; | |
| } | |
| // Function to change sender name | |
| function wpb_sender_name( $original_email_from ) { | |
| return 'Example 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
| module.exports = function (api) { | |
| api.cache(true); | |
| return { | |
| presets: ["babel-preset-expo"], | |
| plugins: [ | |
| [ | |
| "module:react-native-dotenv", | |
| { | |
| moduleName: "@env", | |
| path: ".env", |
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 | |
| //The following is the code that you should add to the functions.php | |
| //file of your theme to remove the WooCommerce logout confirmation message: | |
| add_action( 'template_redirect', 'logout_confirmation' ); | |
| function logout_confirmation() { | |
| global $wp; | |
| if ( isset( $wp->query_vars['customer-logout'] ) ) { |
NewerOlder