Skip to content

Instantly share code, notes, and snippets.

View zhangzhibin's full-sized avatar

Zhang Zhibin zhangzhibin

View GitHub Profile
@zhangzhibin
zhangzhibin / getAdvertisingId.java
Last active May 20, 2021 10:32
query device adid for Facebook Ads Testing. contact me at https://xmanyou.com
// https://xmanyou.com
// in app gradle file
android {
// ...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
@zhangzhibin
zhangzhibin / TAHelper.java
Last active May 20, 2021 10:32
Helper for TA Android SDK, 数数科技TA 安卓SDK 调用封装。 contact me at https://xmanyou.com
package sdkhelper;
import android.content.Context;
import android.util.Log;
import com.adjust.sdk.Adjust;
import org.json.JSONObject;
import java.util.ArrayList;
@zhangzhibin
zhangzhibin / FileBox.ts
Last active August 31, 2023 10:38
Using Open File Dialog in Cocos Creator project 详细步骤参考 https://xmanyou.com/cocos-creator-open-file-box/
// 影子工作室为你提供详细步骤 https://xmanyou.com/cocos-creator-open-file-box/
const {ccclass, property} = cc._decorator;
@ccclass
export default class FileBox extends cc.Component {
// LIFE-CYCLE CALLBACKS:
@property
containerId = "_filebox_container_";
@property
@zhangzhibin
zhangzhibin / ScreenShotNode.ts
Last active July 16, 2019 12:59
A screenshot component for Cocos Creator 2.0.5 written in typescript
// https://xmanyou.com/cocos-creator-jie-tu-gong-neng-dai-ma/
// 截图组件 (如果没有提前添加Camera组件,则会自动添加一个默认参数的Camera)
// 语言:Typescript
// Cocos Creator 版本: 2.0.5
// 使用方法:
// 1. 在场景里添加一个Node, 把这个组件拖进去
// 2. 在需要截图的地方,import, 然后调用:ScreenShotNode.take()
// Screenshot component
// typescript