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 { ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core'; | |
... | |
constructor(private cd: ChangeDetectorRef) { | |
this.service.dataList$.pipe(takeUntil(this._unsubscribeAll)) | |
.subscribe((data: Invoice[]) => { | |
this.dataList = data; | |
this.cd.markForCheck(); | |
}); |
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
class SiriProxy::Plugin::Twitter < SiriProxy::Plugin | |
# this watches when in the default context | |
listen_for /tweet (.*)/ do |data, tweetText| | |
show_rich_snippet do | |
image 'http://cl.ly/1l040J1A392n0M1n1g35/content' # this just makes things looks nice, but is obviously specific to my username | |
text tweetText | |
end | |
# this locks out other plugins until a confirmation or deny | |
confirm do |