Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

WangJie wangjiegulu

💭
I may be slow to respond.
View GitHub Profile
@wangjiegulu
wangjiegulu / upload_file_to_drive.md
Last active May 31, 2019
Upload file to google drive via shell command.
View upload_file_to_drive.md
####
#### x.sh [FILE] [FOLDER_ID] [FILE_ID]
#### https://labbots.com/google-drive-upload-bash-script/
#### https://developers.google.com/oauthplayground/
####
CLIENT_SERCRET=`cat CLIENT_SERCRET`
REFRESH_TOKEN=`cat REFRESH_TOKEN`
CLIENT_ID=`cat CLIENT_ID`
@wangjiegulu
wangjiegulu / apply_meta_inf_maven_push.gradle
Last active Mar 22, 2018
apply RapidMetaInfPlugin and RapidMavenPushPlugin
View apply_meta_inf_maven_push.gradle
// apply maven push plugin, https://github.com/wangjiegulu/RapidMavenPushPlugin
apply plugin: 'com.github.wangjiegulu.plg.rapidmavenpush'
rapidMavenPush {
printProperties = true
abortOnError = false
disable = false
defaultMavenType = 'local'
mavens {
maven {
mavenType = 'local'
@wangjiegulu
wangjiegulu / mavenupload.md
Last active Jul 23, 2018
maven upload gradle
View mavenupload.md

in library:

apply from: '../mavenupload/maven_push.gradle'

maven_push.gradle:

@wangjiegulu
wangjiegulu / Android_Jacoco_Unit_Test.MD
Last active Nov 19, 2016
Android_Jacoco_Unit_Test
View Android_Jacoco_Unit_Test.MD
apply plugin: 'jacoco'

buildTypes {
        debug {
            // ...
            // 打开该属性的话,在断点调试的时候会导致方法参数值丢失(看不到),所以在调试的时候要记得把它关掉
            testCoverageEnabled true
        }
}
View Dagger2_Component_Dependencies.md
@Module
public class InteractorModule {
    @Provides
    public ILoginInfoInteractor providerILoginInfoInteractor() {
        return InteractorFactory.get(ILoginInfoInteractor.class);
    }
}
@wangjiegulu
wangjiegulu / Dagger2_Component_Dependencies.md
Last active Mar 22, 2018
Dagger2: Component ependencies
View Dagger2_Component_Dependencies.md
@Module
public class InteractorModule {
    @Provides
    public ILoginInfoInteractor providerILoginInfoInteractor() {
        return InteractorFactory.get(ILoginInfoInteractor.class);
    }
}
@wangjiegulu
wangjiegulu / android_gradle_kotlin.md
Created Dec 30, 2015
gradle.build for Kotlin+dagger2+Glide+RxJava/RxAndroid+OkHttp+RapidORM
View android_gradle_kotlin.md

Project build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.kotlin_version = '1.0.0-beta-2417'
    ext.support_version = "23.1.1"
    repositories {
        jcenter()
    }
@wangjiegulu
wangjiegulu / android_gradle_java.md
Last active Dec 30, 2015
gradle.build for dagger2+Glide+RxJava/RxAndroid+OkHttp+RapidORM
View android_gradle_java.md

Project build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.support_version = "23.1.1"
    repositories {
        jcenter()
    }
    dependencies {
View hellogist
class: center, middle
# Title
---
# Agenda
1. Introduction
2. Deep-dive
You can’t perform that action at this time.