Skip to content

Instantly share code, notes, and snippets.

View jiankaiwang's full-sized avatar
🎯
Focusing

Jian-Kai Wang jiankaiwang

🎯
Focusing
View GitHub Profile
@jiankaiwang
jiankaiwang / nodejs_firebase_iot_fetch_data.js
Created December 6, 2017 06:47
It's the firebase API template in Nodejs server side, and also continuous fetching iot sensor data from the firebase.
/*
* author : jiankaiwang
* platform : nodejs
* feature : the firebase API template in NodeJS server side
* description : continuously fetch iot sensor data from the firebase
* reference : push data into firebase (https://gist.github.com/jiankaiwang/635f40bb5609033e922337b7aa2a44e6)
*/
var firebase = require("firebase");
// firebase configuration
@jiankaiwang
jiankaiwang / nodejs_firebase_iot_send_data.js
Last active December 6, 2017 06:48
It's the firebase API template in Nodejs server side, and also continuous sending iot sensor data to the firebase.
/*
* author : jiankaiwang
* platform : nodejs
* feature : the firebase API template in NodeJS server side
* description : continuously send iot sensor data to the firebase
*/
var firebase = require("firebase");
function get_time(type) {
function __formatMDHMS(getValue) {
@jiankaiwang
jiankaiwang / FaceDecomposition.py
Last active March 15, 2017 15:27
Face Decomposition by Machine Learning on Python
#
# face : http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html
# orau : Vlad Niculae, Alexandre Gramfort
# auth : Jiankai Wang
# plat : python 3.5
# veri : 0.0.1
# date : 2017/02/23
#
import logging
@jiankaiwang
jiankaiwang / FitInfluData.py
Last active March 15, 2017 15:28
Fit Taiwan Influenza Data By Ordinary Least Squares
#
# desc : fet influenza data from Taiwan CDC Open Data
# auth : Jiankai Wang
# date : 2017/2/23
# plat : Python 2.7.12 | Anaconda 4.2.0 (64-bit)
# veri : 0.0.1
#
import sys
@jiankaiwang
jiankaiwang / FunnyPython.py
Last active March 15, 2017 15:29
Quickly Start Programming on Python
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 20 17:46:53 2017
author: JianKaiWang
platform: python 3
"""
# 引用外部套件 random
import random