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-item (click)="open(item)" long-press (longpress)="select(item)"></ion-item> | |
import {Directive, HostListener, Output, EventEmitter} from '@angular/core'; | |
@Directive({ | |
selector: '[long-press]' | |
}) | |
export class LongPressDirective { | |
private touchTimeout: any; | |
@Output() longpress = new EventEmitter(); |
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 * as request from 'request'; | |
declare module 'tor-request' { | |
export function request(url: string, options?: request.CoreOptions, cb?: request.RequestCallback): void; | |
export function setTorAddress(ipaddress: string, port: number): void; | |
interface ITorControlPort { | |
password: string; | |
host: string; |