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
#!/bin/bash | |
NPM_DEPS_FILE=".npm-deps-parseable.txt" | |
KIK_MODULES_FILE=".kik-modules.txt" | |
echo "Downloading kik incident modules list..." | |
wget https://gist.githubusercontent.com/azer/db27417ee84b5f34a6ea/raw/50ab7ef26dbde2d4ea52318a3590af78b2a21162/gistfile1.txt -O $KIK_MODULES_FILE | |
wait $! | |
echo "Building dependency list..." | |
npm ls --parseable > $NPM_DEPS_FILE |
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
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' | |
alias git=hub | |
alias gis="git status" | |
alias gits="git status" | |
alias gitp="git pull" | |
alias safepull="git stash && git pull && git stash apply" |
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
private imageSrc: string; | |
ngOnInit() { | |
this.imageSrc = 'default value'; | |
this.subscription = this.imageService.getRemoteUrl$(this.componentData).subscribe((url) => { | |
console.log('QUAAAAACK pre', this.imageSrc); | |
this.imageSrc = url; | |
console.log('QUAAAAACK post', this.imageSrc); |
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
<ion-header> | |
<ion-navbar> | |
<ion-title> | |
My App | |
</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content padding> | |
Ok: {{ userFirstName }} <!-- Pluto --> |
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
#!/usr/bin/env node | |
/** This hook updates platform configuration files based on preferences and config-file data defined in config.xml. | |
Currently only the AndroidManifest.xml and IOS *-Info.plist file are supported. | |
Prerequistes: | |
npm install -D lodash elementtree plist | |
See http://stackoverflow.com/questions/28198983/ionic-cordova-add-intent-filter-using-config-xml |
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
/** @format */ | |
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'ng4d-root', | |
template: ` | |
<article> | |
<h1>Hello, I'm William!</h1> | |
<p>And I'm a 41 years old dad.</p> |
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 { Component } from '@angular/core'; | |
@Component({ | |
selector: 'ng4d-greeting-card', | |
template: ` | |
<pre>GreetingCardComponent</pre> | |
`, | |
}) | |
export class GreetingCardComponent {} |
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 { Component } from '@angular/core'; | |
@Component({ | |
selector: 'ng4d-greeting-card', | |
template: ` | |
<article> | |
<h1>Hello, I'm William!</h1> | |
<p>And I'm a 41 years old dad.</p> | |
</article> | |
`, |
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 { Component, Input } from '@angular/core'; | |
@Component({ | |
selector: 'ng4d-greeting-card', | |
template: ` | |
<article> | |
<h1>Hello, I'm {{ name }}!</h1> | |
<p>And I'm a {{ age }} years old dad.</p> | |
</article> | |
`, |
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
export class HttpErrorInterceptor implements HttpInterceptor { | |
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
return next.handle(request).pipe( | |
tap( | |
() => {}, | |
error => { | |
// There may be other events besides the response error. | |
if ( | |
error instanceof HttpErrorResponse | |
) { |