Skip to content

Instantly share code, notes, and snippets.

View AustinMatherne's full-sized avatar

Austin Matherne AustinMatherne

  • Remote
View GitHub Profile
@AustinMatherne
AustinMatherne / observable-lifecycles.ts
Last active November 1, 2019 11:11
Angular `ObservableLifecycles` Component Base Class
import {
OnChanges,
OnInit,
DoCheck,
OnDestroy,
AfterContentInit,
AfterContentChecked,
AfterViewInit,
AfterViewChecked,
SimpleChanges
@AustinMatherne
AustinMatherne / detect_filer_cash_flow_linkrole.py
Created March 16, 2024 19:21
Detect Filer Cash Flows LinkRole
baseTaxonomyCashFlowLinkRole = 'https://www.esma.europa.eu/xbrl/role/all/...'
baseTaxonomyCashFlowRels = baseTaxonomyModelXbrl.relationshipSet(XbrlConst.parentChild, baseTaxonomyCashFlowLinkRole)
baseTaxonomyCashFlowClarks = {
rel.toModelObject.qname.clarkNotation
for rel in baseTaxonomyCashFlowRels.modelRelationships
}
for root in baseTaxonomyCashFlowRels.rootConcepts:
baseTaxonomyCashFlowClarks.add(root.qname.clarkNotation)