-%%%%%%%%%%%##**++==---::....
*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%##*+=--::...
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*######******##*****+
.#@%**+++**##%%@@@@@@@@@@@@@@@@@@%#*#*******************:
.#@#*+.-*######%%%%#**+++++=+#@@%%#*#####***************+
.#@#*=:=***####%%%%%%%%%%%%%#%@@%##*####*****************:
.%@#*--+****######%%%%%%%%%%%@@@%##*#####***************+:
:%@##-=+****########%%%%%%%%%@@@%##*####****************+.
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
const REGEX = /\(\)|\{\}|\[\]/g; | |
/** | |
* Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. | |
* | |
* An input string is valid if: | |
* 1. Open brackets must be closed by the same type of brackets. | |
* 2. Open brackets must be closed in the correct order. | |
* 3. Every close bracket has a corresponding open bracket of the same type. | |
* |
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
class Example extends Phaser.Scene | |
{ | |
preload() { | |
this.load.image('backdrop', 'assets/pics/platformer-backdrop.png'); | |
this.load.image('cannon_head', 'assets/tests/timer/cannon_head.png'); | |
this.load.image('cannon_body', 'assets/tests/timer/cannon_body.png'); | |
this.load.spritesheet('chick', 'assets/sprites/chick.png', { frameWidth: 16, frameHeight: 18 }); | |
} | |
create() { |
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
<code class="_dYGX5IbclMlrl5HlKg8"><div class="RKd5EvdcekLoOHmadYH7 Cls16K72bxF5uWu0_fT8 E_lbv7gA85FrFeRroPBY">Error: Could not trigger Notes Limit Phase 2 Paywall</div><div>Component Stack:</div><div>The above error occurred in task anonymous</div><div> created by takeLatest(GrowthFeatures/TRIGGER_NOTES_LIMIT_PHASE_TWO_IF_ELIGIBLE, )</div><div> created by nje</div><div>Tasks cancelled due to error:</div><div>takeLatest(GrowthFeatures/TRIGGER_NOTES_LIMIT_PHASE_TWO_IF_ELIGIBLE, )</div><div>takeLeading(App/LOG_OUT, uO)</div><div>takeLeading(modals/backup_modal_submit, )</div><div>takeLatest(App/HOVER_TO_SET_DRAWER, )</div><div>takeLatest(App/SET_COLOR_THEME, )</div><div>takeLeading(App/WAIT_TILL_SYNC, )</div><div>takeEvery(Debug/CRASH_SAGA, mO)</div><div>takeLeading(APP/HANDLE_SHOW_RELEASE_NOTES_MODAL, )</div><div>takeLatest(App/NAVIGATE_TO, )</div><div>takeLatest(AllNotes/SELECT_ALL_NOTES, IAe)</div><div>takeLatest(AllNotes/SELECT_ALL_NOTES_VIEW, )</div><div>takeLatest(AllNotebooks/SELECT_ALL_NOTEBOOKS, |
You would do the same thing except after renderHook()
:
await act(() => {
const [myMutation] = result.current;
myMutation(/* your args */);
});
expect(result.current[1]).toEqual({
// your object
docker system df
docker system prune -a -f --volumes
docker volume rm $(docker volume ls -qf dangling=true)
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 | |
declare(strict_types=1); | |
namespace App\Tests\Catalog\Value; | |
use App\Catalog\Value\Amount; | |
use PHPUnit\Framework\TestCase; | |
final class AmountTest extends TestCase |
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
/** | |
* Evaluate XPath expression. | |
* | |
* @param {string} xpathExpression - XPath expression. | |
* @param {HTMLElement} [contextNode=document] - Context node for the query. | |
* @returns {HTMLElement[]} | |
*/ | |
function evaluateXPath(xpathExpression, contextNode = document) { | |
const result = document.evaluate( | |
xpathExpression, |
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
const KEY_CODE = { | |
ARROW_DOWN: 40, | |
BACKSPACE: 8, | |
ENTER: 13, | |
}; | |
/** | |
* Dispatch keydown event. | |
* | |
* @param {number} keyCode |
NewerOlder