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 / 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
@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 / 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 / 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 / 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 / CharacterController.cs
Created December 18, 2017 06:52
The script provides you with basic operations of first personal control on Unity.
/*
* author : jiankaiwang
* description : The script provides you with basic operations of first personal control.
* platform : Unity
* date : 2017/12
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@jiankaiwang
jiankaiwang / MouseCamLook.cs
Created December 18, 2017 06:52
The script provides you with basic operations of first personal camera look on mouse moving.
/*
* author : jiankaiwang
* description : The script provides you with basic operations
* of first personal camera look on mouse moving.
* platform : Unity
* date : 2017/12
*/
using System.Collections;
using System.Collections.Generic;
@jiankaiwang
jiankaiwang / Line_Notify_API.py
Created December 29, 2017 02:13
Send information to the specific line group.
# -*- coding: utf-8 -*-
"""
author : JianKai Wang
description : send info to the specific line group
date : Dec 2017
Line Notify : https://notify-bot.line.me
document :
* line sticker : https://devdocs.line.me/files/sticker_list.pdf
Notice :
* Add the official account (LINE Notify) into the group
@jiankaiwang
jiankaiwang / AutoCamera.cs
Created January 20, 2018 14:22
The C# script makes the camera move on the path desired in Unity3D.
/*
* author : jiankaiwang
* description : The C# script makes the camera move on the path desired in Unity3D.
* platform : Unity
* date : 2018/01
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@jiankaiwang
jiankaiwang / recaptcha-example-js.html
Last active March 25, 2024 09:39
the example to use recaptcha in javascript
<!--
Description: The following is the example code to use recaptcha.
Notice: The function backend_API_challenge is the concept and you should implement it on the backend.
Especially, you must keep your secret key in private all the time.
Flow:
1. Click the submit button.
2. On the console, execute backend_API_challenge function.
-->
<html>
<head>