Skip to content

Instantly share code, notes, and snippets.

View HamiltonWang's full-sized avatar
🎯
Focusing

Hamilton Wong HamiltonWang

🎯
Focusing
  • Taiepi, Taiwan
View GitHub Profile
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'SER' token contract
//
// Deployed to : 0x5B376c999d7E281a032B104A7892BD36B1d62051
// Symbol : SER
// Name : Serenium Coin
// Total supply: 100000000000
// Decimals : 18
@HamiltonWang
HamiltonWang / R_lang_intro
Created May 17, 2017 05:29
R Language Introduction
> 9 * (2.3 + 1.125) * 2.5/5.1 + 0.23E3
[1] 245.1103
@HamiltonWang
HamiltonWang / nodejs_ejs_template_3_6
Last active February 28, 2017 13:53
node.js ejs templates 3/6
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
@HamiltonWang
HamiltonWang / React Native 深入學習
Created February 7, 2017 16:00
React Native Class
Hello all
@HamiltonWang
HamiltonWang / blog.js
Last active February 7, 2017 16:01
Node.js classes
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 );