Skip to content

Instantly share code, notes, and snippets.

@zhEdward
zhEdward / php_project_in_Windows.md
Last active May 24, 2021 10:54
运行PHP项目

安装Apache ,注意必须下载对应操作系统和 VC版本

安装php 注意选择 thread safe 和机器环境

配置环境变量(e.g.)

D:\software\Apache24\bin
D:\software\php-7.3.x
D:\software\php-7.3.x\ext
@zhEdward
zhEdward / gist:caa5d0bafddf60b15ca08b322b29a3be
Created February 17, 2019 15:25 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@zhEdward
zhEdward / rxjava2_multiple_clicks_sample.java
Created February 11, 2018 16:11
use rxjava2 implement multiple clicks event detection
//triple clicks trigger toast git commit_id
Observable<Object> observable = RxView.clicks(stv_version).share();
observable.buffer(observable.debounce(500, TimeUnit.MILLISECONDS))
.observeOn(AndroidSchedulers.mainThread())
.compose(RxHelper.<List<Object>>lifeCycle(this))
.subscribe(new Consumer<List<Object>>() {
@Override
public void accept(List<Object> objects) throws Exception {
if (objects.size() >= 3) {
new ToastView(OtherMoreActivity.this, BuildConfig.GIT_SHA).show();
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
## Project-wide Gradle settings.
#
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
@zhEdward
zhEdward / gradle.properties
Created February 22, 2017 03:26
gradle项目中 一些偏门属性的配置
## Project-wide Gradle settings.
#
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
@zhEdward
zhEdward / DemoActivity.java
Last active December 23, 2016 03:02
使用 ReactiveX实现 EventBus 事件总线
package which.package.the.DemoActivity.located;
import android.app.Activity;
import android.os.Bundle;
import android.os.PersistableBundle;
import rx.Observer;
import rx.Subscription;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Action1;
@zhEdward
zhEdward / WrappingSlidingDrawer.java
Created November 30, 2016 12:51
一个 自适应(水平 or 垂直)的 SlidingDrawer
/**
* Description: 自适应slidingDrawer wrap_content
* Copyright: Copyright (c)2015-2016
* Company:
* @author: Edward
* @version: 1.0
* Create at: 2016年11月30日 下午6:10:18
*
* Modification History:
* Date Author Version Description
@zhEdward
zhEdward / (create you project-level)gradle.properties
Last active June 17, 2020 09:20
gradle 统一常量/依赖库 管理(一)
#各个依赖引用版本
SUPPORT_V4_VERSION = 23.2.1
SUPPORT_V7_VERSION = 23.2.1
XUTILS_VERSION = 3.3.36
UNIVERSAL_IMAGE_LOADER_VERSION = 1.9.5
#编译工具的 版本
COMPILE_SDK_VERSION = 23
@zhEdward
zhEdward / (you module-level)build.gradle
Last active October 28, 2016 03:10
gradle 统一 常量/依赖库 管理方式(二)
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
//在project-level 定义的常量,编译时会默认,所以不必指定'ext'
buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
.....
}