(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
const problem = { | |
start: {A: 5, B: 2}, | |
A: {C: 4, D: 2}, | |
B: {A: 8, D: 7}, | |
C: {D: 6, finish: 3}, | |
D: {finish: 1}, | |
finish: {} | |
}; | |
const lowestCostNode = (costs, processed) => { |
import { Component, AfterViewInit, Input, Output, EventEmitter } from '@angular/core'; | |
import { Platform } from 'ionic-angular'; | |
import { GoogleMap } from 'ionic-native'; | |
@Component({ | |
selector: 'GoogleMap', | |
template: '<div [id]="id" [style.height]="height" [style.width]="width" style="display: block;"></div>' | |
}) | |
export class GoogleMapComponent implements AfterViewInit { | |
@Input() id: string = 'GoogleMap'; | |
@Input() height: string = '100%'; |
function initFS() { | |
//init and maintain fs, look into removing | |
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) { | |
appFileSystem = fs; | |
fs.root.getDirectory("Wanagogo", {create: true, exclusive: false}, function(dirEntry) { | |
mainAppDir = dirEntry | |
k('defining main app dir', dirEntry) | |
//look at downloads | |
mainAppDir.getDirectory("downloads", {create: true, exclusive: false}, function(dirEntry) { |
/** | |
* Starter vars. | |
*/ | |
var index = 0; | |
var i; | |
/** | |
* Need cordova.file plugin. | |
* $ cordova plugin add org.apache.cordova.file | |
* |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.