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
@Effect({dispatch: false}) | |
entityCreationSuccess$: Observable<Action> = this.actions$.pipe( | |
ofType(UserActions.CREATE_USER_SUCCESS, PostActions.CREATE_POST_SUCCESS), | |
tap(action => { | |
this.router.navigate(['../'], {relativeTo: this.route}) | |
}) | |
); |
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
<div class="container"> | |
<div class="panzoom"> | |
<div class="diagram"> | |
<div id="i0" class="item">Root!</div> | |
<div id="i1" class="item">Child 1</div> | |
<div id="i11" class="item">Child 1.1</div> | |
<div id="i12" class="item">Child 1.2</div> | |
<div id="i2" class="item">Child 2</div> | |
<div id="i21" class="item">Child 2.1</div> | |
<div id="i3" class="item">Child 3</div> |
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
/** | |
* Get the caret position in all cases | |
* | |
* @returns {object} left, top distance in pixels | |
*/ | |
getCaretTopPoint () { | |
const sel = document.getSelection() | |
const r = sel.getRangeAt(0) | |
let rect | |
let r2 |
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
import * as admin from 'firebase-admin'; | |
import { Change, EventContext } from 'firebase-functions'; | |
import { isEqual } from 'lodash'; | |
import DocumentSnapshot = admin.firestore.DocumentSnapshot; | |
import FieldPath = admin.firestore.FieldPath; | |
const isEquivalent = (before: any, after: any) => { | |
return before && typeof before.isEqual === 'function' | |
? before.isEqual(after) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Stack</title> | |
<script src="http://d3js.org/d3.v2.js"></script> | |
<style> | |
svg { | |
border: solid 1px #ccc; | |
font: 10px sans-serif; | |
shape-rendering: crispEdges; |
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
<div class="container"> | |
<div class="panzoom"> | |
<div class="diagram"> | |
<div id="i0" class="item">Root!</div> | |
<div id="i1" class="item">Child 1</div> | |
<div id="i11" class="item">Child 1.1</div> | |
<div id="i12" class="item">Child 1.2</div> | |
<div id="i2" class="item">Child 2</div> | |
<div id="i21" class="item">Child 2.1</div> | |
<div id="i3" class="item">Child 3</div> |
OlderNewer