This is a command that you can run in Cursor to execute commands installed via Claude Plugins.
Cursor doesn't have any direct support for Claude Code plugins, but this command provides a bridge between them.
Assuming you have some plugins installed:
This is a command that you can run in Cursor to execute commands installed via Claude Plugins.
Cursor doesn't have any direct support for Claude Code plugins, but this command provides a bridge between them.
Assuming you have some plugins installed:
| /** | |
| * ESLint rule to require static methods of intrinsics to be dereferenced before | |
| * use | |
| * | |
| * This rule enforces that static methods of JavaScript intrinsics (like | |
| * Object.keys, Array.from, etc.) should be destructured before use instead of | |
| * being accessed directly. This can help with performance and bundle size by | |
| * allowing these methods to be reused throughout a module. | |
| * | |
| * @example |
| /** | |
| * ESLint rule to require `@function` tag in JSDoc comments for arrow functions | |
| * | |
| * @packageDocumentation | |
| */ | |
| import { | |
| AST_NODE_TYPES, | |
| AST_TOKEN_TYPES, | |
| ESLintUtils, |
A Zsh script to clean up local and remote Git branches that have already been rebased (fully merged) onto a target branch.
Depends on branch name prefixes; for example, feature/, bugfix/, etc. I tend to use my username boneskull.
This is a snippet for zsh you can add to a .zshrc to automatically open manpages in Dash if and only if the "Manpages" DocSet is installed. It's been tested with macOS Sequoia (v15.5).
It uses the omz_urlencode function provided by oh-my-zsh.
If you don't have oh-my-zsh installed, you can paste this into your .zshrc as a reasonable substitution:
omz_urlencode() {
local string="${@}"
local strlen=${#string}| #!/bin/sh | |
| # jm3.net | |
| # uninstall the 162 non-English fonts that Apple installs that clog up Photoshop's font menu. | |
| # ======================== | |
| ## RUN AT YOUR OWN RISK ## | |
| # ======================== | |
| # if this formats your hard drive or deletes your fonts or changes the sex | |
| # of your dog, I'm super sorry, but there's nothing I can do. |
| diff --git a/node_modules/lodash.template/index.js b/node_modules/lodash.template/index.js | |
| index f051141..c4cb7e1 100644 | |
| --- a/node_modules/lodash.template/index.js | |
| +++ b/node_modules/lodash.template/index.js | |
| @@ -1519,9 +1519,29 @@ function template(string, options, guard) { | |
| // Like with sourceURL, we take care to not check the option's prototype, | |
| // as this configuration is a code injection vector. | |
| var variable = hasOwnProperty.call(options, 'variable') && options.variable; | |
| + | |
| + var INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`'; |
| diff --git a/node_modules/lodash.template/index.js b/node_modules/lodash.template/index.js | |
| index f051141..c4cb7e1 100644 | |
| --- a/node_modules/lodash.template/index.js | |
| +++ b/node_modules/lodash.template/index.js | |
| @@ -1519,9 +1519,29 @@ function template(string, options, guard) { | |
| // Like with sourceURL, we take care to not check the option's prototype, | |
| // as this configuration is a code injection vector. | |
| var variable = hasOwnProperty.call(options, 'variable') && options.variable; | |
| + | |
| + var INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`'; |
| diff --git a/node_modules/lodash.template/index.js b/node_modules/lodash.template/index.js | |
| index f051141..c4cb7e1 100644 | |
| --- a/node_modules/lodash.template/index.js | |
| +++ b/node_modules/lodash.template/index.js | |
| @@ -1519,9 +1519,29 @@ function template(string, options, guard) { | |
| // Like with sourceURL, we take care to not check the option's prototype, | |
| // as this configuration is a code injection vector. | |
| var variable = hasOwnProperty.call(options, 'variable') && options.variable; | |
| + | |
| + var INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`'; |
This code contains some helper functions for testing xstate v5+ Actor and Machine behavior using Promises and "traditional" assertions (vs state-machine-based testing).
Maybe I'll put some examples here.
Instead of this, see xstate-audition which I built upon this idea (with less OOP).