Skip to content

Instantly share code, notes, and snippets.

Daphne Maddox laurelnaiad

Block or report user

Report or block laurelnaiad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View selector.ts
import * as memoize from 'memoize'
import { Observable } from 'rxjs/Observable'
import 'rxjs/add/operator/share'
import 'rxjs/add/operator/distinctUntilChanged'
export interface Selector<T,V> {
( source$: Observable<T> ): Observable<V>
export interface SelectorFactory<T,V> {
View test.ts
import {Injector} from 'angular2/core'
import RESPOND_PROVIDERS, {Respond} from 'respond-ng'
import {SagaTester} from 'store-saga/testing'
import * as moment from 'moment'
import { actionKeys } from './alertsSchema'
import * as saga from './alertsSaga';
import * as schema from './alertsSchema'
import * as mocks from './alertsMocks'
browser_adapter.js:81 EXCEPTION: Attempt to use a dehydrated detector: OdTable_0 -> rowDataChangedBrowserDomAdapter.logError @ browser_adapter.js:81BrowserDomAdapter.logGroup @ @ exception_handler.js:53(anonymous function) @ application_ref.js:166NgZone._notifyOnError @ ng_zone.js:252onError @ @ core.js:82(anonymous function) @ ng_zone.js:175arguments.(anonymous function) @ functions.js:30setTimeout (async)Zone.(anonymous function) @ functions.js:43(anonymous function) @ ng_zone.js:227window.(anonymous function) @ functions.js:14(anonymous function) @ async.js:108SafeSubscriber.__tryOrUnsub @ @ Subscriber.js:118Subscriber._next @ @ Subscriber.js:55Subject._finalNext @ Subject.js:124Subject._next @ @ Subject.js:75EventEmitter.emit @ async.js:93AgGridNg2.globalEventListener @ agGridNg2.js:59(anonymous function) @ eventService.js:81EventService.disp
laurelnaiad / ngrx-store-router.d.ts
Created Mar 11, 2016
this is what gets installed by `typings install npm:ngrx-store-router`
View ngrx-store-router.d.ts
// Compiled using typings@0.6.10
// Source: node_modules/angular2/src/core/metadata/di.d.ts
declare module 'ngrx-store-router~angular2/src/core/metadata/di' {
import { Type } from 'angular2/src/facade/lang';
import { DependencyMetadata } from 'angular2/src/core/di/metadata';
* Specifies that a constant attribute value should be injected.
* The directive can inject constant string literals of host element attributes.
View yUML in

It works if you escape the the greater than signs (except for the ones that are used to close the img elements).

In my editor (atom), I can do this with a find/replace in regex mode as

find: [^\/](>)
replace with: &gt;

... resulting in... (view this raw to see the text)

View authRoute.js
authRouteProvider.$inject = ['$routeProvider'];
function authRouteProvider ($routeProvider) {
* Creates a wapper controller on the one that is specified in the constructor.
* currentUser__ and userRole__ are late-bound, as is $location.
* bound to the route, or wraps the controller in param
* so the authentication check is run before the original controller is executed
* @param currentController
* @return {Function} The wrapper controller
laurelnaiad / angular-autoload.js
Last active Dec 17, 2015 — forked from nateabele/angular-autoload.js
nateabele's autoload patch, comments by stu-salsbury
View angular-autoload.js
* Naive AngularJS module autoloader; depends on require.js.
* Usage:
* angular.autoLoad({
* 'ngResource': '/js/angular-resource-1.0.1.min.js',
* 'google-maps': '/js/angular-google-maps.js',
* 'ui.bootstrap': '/js/ui/ui-bootstrap-custom-tpls-0.4.0.min.js',
* 'module.split.over.multiple.files': ['/js/file1.js', '/js/file2.js']
You can’t perform that action at this time.