This file contains hidden or 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 { EventEmitter, ElementRef, OnInit, Directive, Input, Output } from '@angular/core'; | |
import { fromEvent } from 'rxjs'; | |
import { map, debounceTime } from 'rxjs/operators'; | |
import { NgModel } from '@angular/forms'; | |
@Directive({ selector: '[debounce]' }) |
This file contains hidden or 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 { ElementRef, OnInit, Directive, Input } from '@angular/core'; | |
import { Observable, fromEvent } from 'rxjs'; | |
import { distinctUntilChanged, filter, merge } from 'rxjs/operators'; | |
@Directive({ | |
selector: 'input', | |
// selector: '[enter-submit]', | |
}) |
This file contains hidden or 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
from BeautifulSoup import BeautifulSoup | |
import requests | |
from xml.sax import saxutils as su | |
class Comment(object): | |
def __init__(self, id, html, author, | |
points, postedOn, level, parent=None): | |
self.id = id |