- Add arrow navigation between tests
- Keyboard shortcuts to image diffs
Shift + D
for diff modeShift + S
for slider modeShift + A
for actualShift + E
for expected- Copy all test paths button - click on failed tests and click the button to copy all paths for a local run
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
snapshot() { | |
mkdir -p snapshots | |
local FILE_NAME="$1" | |
local EXPECTED="$2" | |
local FILE_PATH | |
local FILE_CONTENTS | |
FILE_PATH="snapshots/$FILE_NAME" | |
if [ -f "$FILE_PATH" ]; then |
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
wp search-replace http://origin.com http://destination.com --all-tables | |
wp option update home http://destination.com | |
wp option update siteurl http://destination.com | |
# Make sure that you have write permissions first | |
wp rewrite flush |
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
setCurrentCourse$ = createEffect(() => this.actions$.pipe( | |
ofType(ROUTER_NAVIGATED), // get router navigated ngrx actions | |
mergeMap(() => this.store.pipe( | |
select(selectRouteParam(‘id’))) // get the id from the router store | |
), | |
map((id: string) => setIds({ id })), // dispatch a new action to set the selected id | |
)); |
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 { Store, select } from ‘@ngrx/store’; | |
import { Component } from ‘@angular/core’; | |
@Component({ | |
selector: ‘app-root’, | |
template: `{{selectedId$ | async | json}}`, | |
}) | |
export class HomeComponent { | |
selectedId$ = this.store.pipe(select((state: any) => state.featureName.selectedId)); | |
constructor( | |
private store: Store, |
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
@Component({ | |
export class MyComponent { | |
id: string; | |
id$ = this.activatedRoute.params.pipe( | |
map(params => params.id), | |
tap(id => this.id = id), | |
); | |
constructor( | |
private activatedRoute: ActivatedRoute, | |
) {} |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Node: Nodemon", | |
"processId": "${command:PickProcess}", | |
"restart": true, | |
"protocol": "inspector", |
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
# install: brew install bash-completion | |
# then in .bash_profile | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi |
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
getAtts = (elem) => { | |
const attrs = {}; | |
Object.values(elem.attributes).forEach(attr => { | |
attrs[attr.name] = attr.value; | |
}); | |
return attrs | |
} | |
atts = getAtts($0); | |
d3Str = ''; | |
d3Str += `.append('${$0.tagName}')\n` |
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
// any type of callable | |
type callable = (...args: any[]) => any; | |
// only acept values of object T | |
type ValueOf<T> = T[keyof T]; |
NewerOlder