Go to C:\Users\username\AppData\Local\Programs\cursor\resources\app\bin\cursor
Edit the following variables:
VSCODE_PATH="$(dirname "$0")/.."
VSCODE_PATH="$(dirname "$(readlink -f "$0")")/.."
ELECTRON="$VSCODE_PATH/cursor"
Go to C:\Users\username\AppData\Local\Programs\cursor\resources\app\bin\cursor
Edit the following variables:
VSCODE_PATH="$(dirname "$0")/.."
VSCODE_PATH="$(dirname "$(readlink -f "$0")")/.."
ELECTRON="$VSCODE_PATH/cursor"
Emoji | Name | Text example |
---|---|---|
🚀 | Rocket | You're up |
📦 | Package | Installing additional dependencies... |
⚓ | Hook | Running completion hooks... |
📄 | Document | Generating README.md... |
🎉 | Party | Successfully created project hello-vue. |
👉 | Next | Get started with the following commands: |
✔ | Tick | Task completed |
✨ | Magic | Assembling project... |
/* ------------------------------ | |
REMOVE HOOKS WITHOUT CLASS OBJECT ACCESS | |
Reference: https://gist.github.com/tripflex/c6518efc1753cf2392559866b4bd1a53#gistcomment-3528826 | |
Reference: https://github.com/herewithme/wp-filters-extras/blob/master/wp-filters-extras.php | |
---------------------------------- */ | |
function remove_class_hook($tag, $class_name = '', $method_name = '', $priority = 10) | |
{ | |
global $wp_filter; | |
$is_hook_removed = false; | |
if (!empty($wp_filter[$tag]->callbacks[$priority])) { |
//Woocommerce Checkout JS events | |
$( document.body ).trigger( 'init_checkout' ); | |
$( document.body ).trigger( 'payment_method_selected' ); | |
$( document.body ).trigger( 'update_checkout' ); | |
$( document.body ).trigger( 'updated_checkout' ); | |
$( document.body ).trigger( 'checkout_error' ); | |
//Woocommerce cart page JS events | |
$( document.body ).trigger( 'wc_cart_emptied' ); | |
$( document.body ).trigger( 'update_checkout' ); |
rem see https://github.com/coreybutler/nvm-windows/issues/300 | |
@echo off | |
SETLOCAL EnableDelayedExpansion | |
if [%1] == [] ( | |
echo Pass in the version you would like to install, or "latest" to install the latest npm version. | |
) else ( | |
set wanted_version=%1 |
/** | |
* Wrapper for easy cURLing | |
* | |
* @author Viliam Kopecký | |
* | |
* @param string HTTP method (GET|POST|PUT|DELETE) | |
* @param string URI | |
* @param mixed content for POST and PUT methods | |
* @param array headers | |
* @param array curl options |
<?php | |
/** | |
* Get Instagram media on WordPress using the current Instagram (Facebook) API | |
* | |
* @param $token // Info on how to retrieve the token: https://www.gsarigiannidis.gr/instagram-feed-api-after-june-2020/ | |
* @param $user // User ID can be found using the Facebook debug tool: https://developers.facebook.com/tools/debug/accesstoken/ | |
* @param int $limit // Add a limit to prevent excessive calls. | |
* @param string $fields // More options here: https://developers.facebook.com/docs/instagram-basic-display-api/reference/media | |
* @param array $restrict // Available options: IMAGE, VIDEO, CAROUSEL_ALBUM | |
* |
[ | |
{ | |
"featureType": "all", | |
"elementType": "labels.text.fill", | |
"stylers": [ | |
{ | |
"color": "#ffffff" | |
} | |
] | |
}, |
<?php | |
/** | |
* Make sure the function does not exist before defining it | |
*/ | |
if( ! function_exists( 'remove_class_filter' ) ){ | |
/** | |
* Remove Class Filter Without Access to Class Object | |
* | |
* In order to use the core WordPress remove_filter() on a filter added with the callback |
// Configures WordPress to use SMTP server in wp-config.php | |
define( 'SMTP_USER', '[email protected]' ); // Username to use for SMTP authentication | |
define( 'SMTP_PASS', 'SMTP_PASSWORD' ); // Password to use for SMTP authentication | |
define( 'SMTP_HOST', 'smtp.smtpserver.com' ); // The hostname of the mail server | |
define( 'SMTP_FROM', '[email protected]' ); // SMTP From email address | |
define( 'SMTP_NAME', 'FROM_NAME' ); // SMTP From name | |
define( 'SMTP_PORT', '25' ); // SMTP port number - likely to be 25, 465 or 587 | |
define( 'SMTP_SECURE', 'tls' ); // Encryption system to use - ssl or tls | |
define( 'SMTP_AUTH', true ); // Use SMTP authentication (true|false) | |
define( 'SMTP_DEBUG', 0 ); // for debugging purposes only set to 1 or 2 |