Skip to content

Instantly share code, notes, and snippets.

View beilly's full-sized avatar

benli.shi beilly

View GitHub Profile
@beilly
beilly / email-sonar.html
Created May 14, 2019 03:16
Jenkins邮件模板
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>
</head>
<style>
.build_info_table,
@beilly
beilly / AndroidBug5497Workaround.java
Created August 31, 2016 07:18
WebView adjustResize windowSoftInputMode breaks when activity is fullscreen.Depent on https://github.com/madebycm/AndroidBug5497Workaround
package com.vcredit.utils;
import android.app.Activity;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.FrameLayout;
/**
* Created by shibenli on 2016/8/31.
@beilly
beilly / 开发通用工具.MD
Created April 23, 2019 05:40
开发工具收集
@beilly
beilly / DeviceUuidFactory.java
Last active February 19, 2019 08:57
实现在设备上更通用的获取设备唯一标识
package com.benli.app.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.provider.Settings.Secure;
import android.telephony.TelephonyManager;
import android.util.Log;
import java.io.UnsupportedEncodingException;
import java.util.UUID;
@beilly
beilly / EmptyCheckTypeAdapterFactory.java
Last active August 21, 2018 09:07
处理 Empty Json Object to null,no Property Jsonobject to null
package com.ibeilly.utils.gson;
import android.os.Parcelable;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
@beilly
beilly / trial.key
Last active June 7, 2018 08:27 — forked from huqi/trial.key
Beyond Compare 4 license for Mac and Windows
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
@beilly
beilly / edit_cursor_color.xml
Created May 9, 2018 02:04
Android TextView修改光标
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size android:width="2dp" />
<solid android:color="#ff6a45" />
</shape>
@beilly
beilly / apk-pack.gradle
Created April 9, 2018 08:43
打包配置自增插件
apply plugin: HJPackPlugin
class HJPackPlugin implements Plugin<Project> {
@Override
void apply(Project project) {
def file = project.rootProject.file("packageHJ.properties")
project.extensions.create("hjConf", InnerStorage, file)
}
@beilly
beilly / docker-sonar.md
Last active March 9, 2018 10:01
docker 安装sonar的脚本

#配置阿里云加速docker镜像下载,建议自己注册(免费获取)

https://mf43icmq.mirror.aliyuncs.com

#安装并配置postgres数据库

docker run --name postgresdb -e POSTGRES_PASSWORD=sonar -e POSTGRES_USER=sonar -p 5432:5432 -d postgres

@beilly
beilly / RecycleViewDivider.java
Created August 30, 2017 05:40
RecycleView万能分割线
package com.vcredit.cp.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutManager;