Skip to content

Instantly share code, notes, and snippets.

View hoisel's full-sized avatar
🏠
Working from home

Hoisel hoisel

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hoisel on github.
  • I am hoisel (https://keybase.io/hoisel) on keybase.
  • I have a public key ASDGeBvmPwIoltvEySqikbo9mmByFXoGPNcI4PM3kf5ASgo

To claim this, I am signing this object:

@hoisel
hoisel / genericPipe.ts
Created April 9, 2019 15:20
Add generic typings to static rxjs pipe function
/**
* @license Use of this source code is governed by an MIT-style license that
* can be found in the LICENSE file at https://github.com/cartant/rxjs-etc
*/
import { Observable, pipe as _pipe, UnaryFunction } from "rxjs";
export function genericPipe<T>(...operations: UnaryFunction<Observable<T>, Observable<T>>[]): <R extends T>(source: Observable<R>) => Observable<R>;
export function genericPipe<T>(...operations: UnaryFunction<T, T>[]): <R extends T>(source: R) => R;
export function genericPipe<T, A>(op1: UnaryFunction<T, A>): UnaryFunction<T, A>;
import { Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, ViewEncapsulation } from '@angular/core';
import {
EventManager,
ɵDomRendererFactory2,
ɵDomSharedStylesHost,
ɵflattenStyles,
ɵNAMESPACE_URIS
} from '@angular/platform-browser';
//HACK: this uses the shadow DOM V1 spec until we fix it in core

Aliases

  • alias.qm=!git checkout $1; git merge @{-1}
  • alias.co=checkout
  • alias.slog=log --pretty='%C(red)%h%Creset %C(green)%d%Creset %s - %C(cyan)%an%Creset - %C(yellow)%cr%Creset' --graph
  • alias.so=show --pretty='parent %Cred%p%Creset commit %Cred%h%Creset%C(yellow)%d%Creset%n%n%w(72,2,2)%s%n%n%w(72,0,0)%C(cyan)%an%Creset %Cgreen%ar%Creset'
  • alias.history=log --pretty='%C(red)%h%Creset %C(green)%d%Creset %s - %C(cyan)%an%Creset - %C(yellow)%cr%Creset' --follow
  • alias.full-history=log --pretty='%C(red)%h%Creset %C(green)%d%Creset %s - %C(cyan)%an%Creset - %C(yellow)%cr%Creset' --follow --patch
  • alias.ce=config --global -e