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 | |
import gzip | |
import cStringIO | |
import codecs | |
import json | |
def compressFileToString(inputFile): | |
""" | |
read the given open file, compress the data and return it as string. | |
and now is string type, does not matter the length of string |
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: utf8 | |
# desc: generate several passwords in python | |
import random | |
sets = (int)(input("How many passwords you need ? ")) | |
pwdLen = (int)(input("The length of each password ? ")) | |
pwdComposition = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789^&*()_" | |
pwdMaterial = [] |
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
import java.util.Stack; | |
class NODE { | |
public String ch; | |
public NODE leftNode; | |
public NODE rightNode; | |
public NODE() { | |
ch = "_"; | |
leftNode = null; | |
rightNode = null; |
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
/* | |
************************************************************** | |
Platform | |
************************************************************** | |
jdk: 1.8.x | |
hadoop: 3.1.0 | |
************************************************************** | |
Quick Guide | |
************************************************************** |
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 Sun Apr 22 16:04:40 2018 | |
@description: Basic Operation in CLI | |
@author: JianKai Wang | |
""" | |
# coding: utf-8 | |
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
<!-- | |
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> |
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 | |
* 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; |
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 -*- | |
""" | |
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 |
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 | |
* 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; |
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 | |
* 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; |