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
// Creates secret key and balance for test net. Outputs account.json. | |
const fs = require('fs'); | |
const Web3 = require('web3'); | |
const crypto = require('crypto'); | |
const {run} = require('./lib/utils.js'); | |
const prompt = require('./lib/prompt.js'); | |
async function main() { |
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
pragma solidity ^0.4.11; | |
import "./ERC20Standard.sol"; | |
contract NewToken is ERC20Standard { | |
function NewToken() { | |
totalSupply = 1000000; | |
name = "All you need coin"; | |
decimals = 6; | |
symbol = "AYN"; |
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
export const getTriangleArea = (a, b, c) => { | |
if (a > 0 && b > 0 && c > 0) { | |
const p = (a + b + c) / 2; | |
console.log(p); | |
const area = Math.sqrt(p * (p - a) * (p - b) * (p - c)); | |
console.log(area); |
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
CREATE TABLE customers ( | |
id INTEGER PRIMARY KEY, | |
CustomerId INTEGER, | |
RegistrationDateTime DATE, | |
Name TEXT); | |
INSERT INTO customers (CustomerId, RegistrationDateTime, Name) | |
VALUES (1, "2017-11-25", "Bulat"); | |
INSERT INTO customers (CustomerId, RegistrationDateTime, Name) | |
VALUES (2, "2017-12-15", "Alina"); |
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
require(Modules.IVR); | |
let extState; | |
function initIVR() { | |
extState = new IVRState("extension", { | |
type: "inputfixed", | |
inputLength: 2, | |
prompt: { | |
say: "Hello, World. To continue, enter two digits.", |
NewerOlder