| Provider | Singleton | Instantiable | Configurable |
|---|---|---|---|
| Constant | Yes | No | No |
| Value | Yes | No | No |
| Service | Yes | No | No |
| Factory | Yes | Yes | No |
| Decorator | Yes | No? | No |
| Provider | Yes | Yes | Yes |
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
| const fs = require('fs'); | |
| const solc = require('solc'); | |
| const Web3 = require('web3'); | |
| // Connect to local Ethereum node | |
| const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
| // Compile the source code | |
| const input = fs.readFileSync('Token.sol'); | |
| const output = solc.compile(input.toString(), 1); |
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
| <mjml> | |
| <mj-body> | |
| <mj-container background-color="#d7dde5"> | |
| <mj-section background-color="#ffffff" full-width="full-width"> | |
| <mj-column width="33.33333333333333%" vertical-align="middle"> | |
| <mj-image src="http://newbw.sastratechnologies.biz/sites/all/themes/bwlanding/logo.png" alt="OnePage" padding-bottom="0" padding-top="10"> | |
| </mj-image> |
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
| function ksort(obj){ | |
| var keys = Object.keys(obj).sort() | |
| , sortedObj = {}; | |
| for(var i in keys) { | |
| sortedObj[keys[i]] = obj[keys[i]]; | |
| } | |
| return sortedObj; | |
| } |
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
| /* | |
| This example shows how you can use your data structure as a basis for | |
| your Firebase security rules to implement role-based security. We store | |
| each user by their Twitter uid, and use the following simplistic approach | |
| for user roles: | |
| 0 - GUEST | |
| 10 - USER | |
| 20 - MODERATOR |
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
| $fileName = 'Billing-Summary.csv'; | |
| header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); | |
| header('Content-Description: File Transfer'); | |
| header("Content-type: text/csv"); | |
| header("Content-Disposition: attachment; filename={$fileName}"); | |
| header("Expires: 0"); | |
| header("Pragma: public"); | |
| $fh = @fopen( 'php://output', 'w' ); |