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 path = require('path'); | |
const nodeExternals = require('webpack-node-externals'); | |
const {TsConfigPathsPlugin} = require('awesome-typescript-loader'); | |
module.exports = { | |
mode: 'development', | |
entry: './src/index.ts', | |
target: 'node', | |
// ignore node_modules when bundling with webpack | |
externals: [nodeExternals()], |
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
var fs = require('fs'); | |
var grpc = require('grpc'); | |
var http = require('request-promise'); | |
// use a macaroon file to prevent that no one else messes around with your node | |
var macaroon = fs.readFileSync("../admin.macaroon").toString('hex'); | |
///// REST Example ///// | |
// Add this line if your server has no valid SSL certificate |
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
FROM ubuntu:18.04 | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends apt-utils | |
RUN apt-get install software-properties-common -y | |
RUN apt-add-repository ppa:bitcoin/bitcoin | |
RUN apt-get install bitcoind -y | |
ADD entrypoint.sh $HOME/entrypoint.sh | |
CMD ["./entrypoint.sh"] |
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
<div *appNgForObject="let propertyName from myObject; let index=index"> | |
[{{index}}] {{propertyName}}: {{myObject[propertyName]}} | |
</div> |
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
<ng-template appNgForObject let-propertyName let-index="index" [appNgForObjectFrom]="myObject"> | |
<div> | |
[{{index}}] {{propertyName}}: {{myObject[propertyName]}} | |
</div> | |
</ng-template> |
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
<div *appNgForObject="let propertyName from myObject; let index=index"> | |
[{{index}}] {{propertyName}}: {{myObject[propertyName]}} | |
</div> |
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
<ng-template appNgForObject let-propertyName let-index="index" [appNgForObjectFrom]="myObject"> | |
<div> | |
[{{index}}] {{propertyName}}: {{myObject[propertyName]}} | |
</div> | |
</ng-template> |
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
constructor( | |
private templateRef: TemplateRef<any>, | |
private viewContainerRef: ViewContainerRef, | |
) {} |
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
propertyNames.forEach((propertyName: string, index: number) => { | |
this.viewContainerRef.createEmbeddedView(this.templateRef, { | |
$implicit: propertyName, | |
index | |
}); | |
}); |
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
@Input() appNgForObjectFrom: { [key: string]: string }; |
OlderNewer