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
/* | |
* 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 |
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
/* | |
* 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) { |
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
# | |
# 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 |
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
# | |
# 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 |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Feb 20 17:46:53 2017 | |
author: JianKaiWang | |
platform: python 3 | |
""" | |
# 引用外部套件 random | |
import random |
NewerOlder