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 {Injectable} from 'angular2/core'; | |
import {Http, Request, Response, RequestOptionsArgs} from 'angular2/http'; | |
import {Alert, NavController} from 'ionic-angular'; | |
import {Network, Connection} from 'ionic-native'; | |
@Injectable() | |
export class NetworkService { | |
public networkAlert: any; |
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
const fs = require('fs'); | |
const readline = require('readline'); | |
const dataPath = "./Downloads/activities_export_full.jsonl"; | |
const readStream = fs.createReadStream(dataPath); | |
let requestsByUserId = {}; | |
const rl = readline.createInterface({ |