Skip to content

Instantly share code, notes, and snippets.

View ViewShowCountUtils
/**
* desc: 安卓曝光量统计工具类
*/
public class ViewShowCountUtils {
//刚进入列表时统计当前屏幕可见views
private boolean isFirstVisible = true;
//用于统计曝光量的map
private ConcurrentHashMap<String, Integer> hashMap = new ConcurrentHashMap<String, Integer>();
@fushenghua
fushenghua / android-360-autosign.py
Last active Aug 2, 2019
360自动加固Android APK
View android-360-autosign.py
# -*- coding:utf-8 -*-
import os
import shutil
import subprocess
def startJIAGU():
WORKSPACE= os.getenv("WORKSPACE")+"\\"
JIAGU_HOME= os.getenv("JIAGU_HOME")
isPublish = open(WORKSPACE+"isPublish.txt").readline().strip('\n').rstrip()+""
View gradle-copy-apk-jenkins-windows.bat
@echo off
set files=D:
set dateStr=%files%%date:~0,4%%date:~5,2%%date:~8,2%
set dateStr2=%date:~0,4%%date:~5,2%%date:~8,2%
set apkPath=%WORKSPACE%\app\build\outputs\apk\%BuildFlavor%\release\
rem 指定FTP用户(这就是匿名)
set ftpUser=anonymous
rem 指定FTP密码(任意
set ftpPass=123
rem 指定FTP服务器地址
View ftp-upload-jenkins-windows.bat
rem 指定FTP用户(这就是匿名)
set ftpUser=anonymous
rem 指定FTP密码(任意
set ftpPass=123
rem 指定FTP服务器地址
set ftpIp=192.168.3.227
echo open %ftpIp% >> ftp.txt
echo %ftpUser%>> ftp.txt
View rename.py
# -*- coding: utf-8 -*-
import os
import re
base = '/Users/fushenghua/Documents/Github/'
def rename():
file = open(base + "/name.txt")
while 1:
You can’t perform that action at this time.