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
pragma solidity ^0.4.24; | |
// ---------------------------------------------------------------------------- | |
// 'SER' token contract | |
// | |
// Deployed to : 0x5B376c999d7E281a032B104A7892BD36B1d62051 | |
// Symbol : SER | |
// Name : Serenium Coin | |
// Total supply: 100000000000 | |
// Decimals : 18 |
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
> 9 * (2.3 + 1.125) * 2.5/5.1 + 0.23E3 | |
[1] 245.1103 |
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
mkdir express_ejs | |
cd express_ejs | |
mkdir views && cd views | |
mkdir pages && cd .. //<— 我們把所有 ejs 放在同一個地方來管理 | |
npm init | |
npm install express —save | |
npm install ejs —save | |
nano index.js |
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
Hello all |
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 db = require('../db'); | |
var moment = require('moment'); | |
exports.getAllBlogs = function( callback ) { | |
db.query('SELECT * FROM db_blog', function (err, rows) { | |
if (err) { | |
callback(err); | |
} | |
callback(null, rows ); |