Skip to content

Instantly share code, notes, and snippets.

View xxnjdlys's full-sized avatar

xxnjdlys xxnjdlys

  • China Beijing
  • 01:44 (UTC +08:00)
View GitHub Profile
Here is the full output by gradle :client:aR --stacktrace
localhost:cp sadieyu$ gradle :client:aR --stacktrace
Parallel execution with configuration on demand is an incubating feature.
useNewCruncher has been deprecated. It will be removed in a future version of the gradle plugin. New cruncher is now always enabled.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at org.gradle.api.internal.AbstractTask.leftShift(AbstractTask.java:568)
at org.gradle.api.Task$leftShift.call(Unknown Source)
at build_82a5nxshwf8vyvmiorh4ifc7.run(/Users/sadieyu/workspace/cp/protocollibrary/build.gradle:65)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:90)
package demo.com.inmobidemonativead;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
package com.wukongtv.wkremote.client.statistics;
/**
* ███████████████████████████
* ███████▀▀▀░░░░░░░▀▀▀███████
* ████▀░░░░░░░░░░░░░░░░░▀████
* ███│░░░░░░░░░░░░░░░░░░░│███
* ██▌│░░░░░░░░░░░░░░░░░░░│▐██
* ██░└┐░░░░░░░░░░░░░░░░░┌┘░██
* ██░░└┐░░░░░░░░░░░░░░░┌┘░░██
{
"version": "0.2.0",
"configurations": [{
"type": "android",
"request": "launch",
"name": "wkremote",
"appSrcRoot": "/Users/sadieyu/workspace/wkremoteandroid/client/src/main",
"apkFile": "/Users/sadieyu/workspace/wkremoteandroid/client/build/outputs/apk/client-update2-debug.apk",
"adbPort": 5037
},
{
"status": 0,
"hash": "0",
"data": {
"app": [
{
"list": [
{
"name": "龙珠传奇之无间道",
"cover": "http://ww3.sinaimg.cn/large/6aebb461ly1ffe510v67mj20k009cnpt.jpg",
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : 十三姐家的小钻风
# @Time : 04/05/2017 20:54
# @File : checkRouterJs.py
import hashlib
import requests
import json

The idea is to create an Automator workflow and assigning a shortcut to it using the following steps:

  • Open Automator and create a Service;
  • Set the input to no input, and the application to Finder.app;
  • Drag and Drop the Run AppleScript workflow element onto the grey space;
  • Put the contents of this AppleScript in the textbox;
  • Save the workflow with a reasonable name (like New File);
  • Go to Settings -> Keyboard -> Shortcuts -> Services and assign a shortcut to it.
  • Now, let's show the AppleScript:
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
* ███████████████████████████
* ███████▀▀▀░░░░░░░▀▀▀███████
* ████▀░░░░░░░░░░░░░░░░░▀████
* ███│░░░十三姐家的小钻风░░░│██
* ██▌│░░░░░░░░░░░░░░░░░░░│▐██
* ██░└┐░░░░░░░░░░░░░░░░░┌┘░██
* ██░░└┐░░░░░░░░░░░░░░░┌┘░░██
* ██░░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██
* ██▌░│██ ❤ █▌░░░▐█ ❤ ██│░▐█
* ███░│▐███▀▀░░▄░░▀▀███▌│░███
@xxnjdlys
xxnjdlys / tinker-support.gradle
Created April 1, 2017 10:47
tinker-support.gradle
apply plugin: 'com.tencent.bugly.tinker-support'
def bakPath = file("${buildDir}/bakApk/")
/**
* 此处填写每次构建生成的基准包目录
*/
def baseApkDir = "client-0316-20-35-07"
/**