This file contains 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
// | |
// main.c | |
// NetworkFixer | |
// | |
// Created by mac on 2018/11/24. | |
// Copyright (c) 2018 ___ORGANIZATIONNAME___. All rights reserved. | |
// | |
#include <stdio.h> | |
#import <Foundation/Foundation.h> |
This file contains 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 hashlib | |
import datetime | |
def next_wechat_substr(current): | |
for c in chrs: | |
yield current + c | |
def md5(s): | |
return hashlib.md5(s).hexdigest() |
This file contains 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: laoyur | |
//inspired of http://stackoverflow.com/a/31021154 | |
package com.laoyur.test; | |
import java.util.List; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Rect; | |
import android.os.Bundle; | |
import android.view.MotionEvent; | |
import android.view.View; |