Skip to content

Instantly share code, notes, and snippets.

View laurelnaiad's full-sized avatar
💭
Not in Colorado

Daphne Maddox laurelnaiad

💭
Not in Colorado
View GitHub Profile
@laurelnaiad
laurelnaiad / default.json
Created January 27, 2020 13:41 — forked from zetas/default.json
iTerm2 Byobu Keybind Profile.
{
"Ansi 5 Color" : {
"Green Component" : 0.4117647111415863,
"Blue Component" : 0.78823530673980713,
"Red Component" : 0.55686277151107788
},
"Working Directory" : "\/Users\/david",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0.729411780834198,
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> {
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 @ browser_adapter.js:92ExceptionHandler.call @ exception_handler.js:53(anonymous function) @ application_ref.js:166NgZone._notifyOnError @ ng_zone.js:252onError @ ng_zone.js:156Zone.run @ 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:163SafeSubscriber.next @ Subscriber.js:118Subscriber._next @ Subscriber.js:78Subscriber.next @ Subscriber.js:55Subject._finalNext @ Subject.js:124Subject._next @ Subject.js:116Subject.next @ Subject.js:75EventEmitter.emit @ async.js:93AgGridNg2.globalEventListener @ agGridNg2.js:59(anonymous function) @ eventService.js:81EventService.disp
@laurelnaiad
laurelnaiad / ngrx-store-router.d.ts
Created March 11, 2016 03:24
this is what gets installed by `typings install npm:ngrx-store-router`
// 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.
*

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)

@laurelnaiad
laurelnaiad / authRoute.js
Last active December 18, 2015 19:58 — forked from xcambar/LICENSE
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
laurelnaiad / angular-autoload.js
Last active December 17, 2015 23:39 — forked from nateabele/angular-autoload.js
nateabele's autoload patch, comments by stu-salsbury
/**
* 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']