| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 |
| 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
| oldActvity="" | |
| displayName="" | |
| currentActivity=`adb shell dumpsys window windows | grep -E 'mCurrentFocus'` | |
| while true | |
| do | |
| if [[ $oldActvity != $currentActivity && $currentActivity != *"=null"* ]]; then | |
| displayName=${currentActivity##* } | |
| displayName=${displayName%%\}*} | |
| echo $displayName | |
| oldActvity=$currentActivity |
| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 |
| 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
| #coding=utf8 | |
| import itchat | |
| # tuling plugin can be get here: | |
| # https://github.com/littlecodersh/EasierLife/tree/master/Plugins/Tuling | |
| from tuling import get_response | |
| @itchat.msg_register('Text') | |
| def text_reply(msg): | |
| if u'作者' in msg['Text'] or u'主人' in msg['Text']: | |
| return u'你可以在这里了解他:https://github.com/littlecodersh' |
| #coding=utf8 | |
| import itchat, time | |
| SINCERE_WISH = u'祝%s新年快乐!' | |
| REAL_SINCERE_WISH = u'祝%s新年快乐!!' | |
| def send_wishes(): | |
| friendList = itchat.get_friends(update=True)[1:] | |
| for friend in friendList: | |
| # 如果不是演示目的,把下面的方法改为itchat.send即可 |
| #coding=utf8 | |
| import os | |
| import itchat | |
| from NetEaseMusicApi import interact_select_song | |
| # 第三方包通过该命令安装:pip install itchat, NetEaseMusicApi | |
| HELP_MSG = u'''\ | |
| 欢迎使用微信网易云音乐 | |
| 帮助: 显示帮助 |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
| public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
| private int previousTotal = 0; // The total number of items in the dataset after the last load | |
| private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
| private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
| int firstVisibleItem, visibleItemCount, totalItemCount; |
| /* | |
| * V4L2 video capture example | |
| * | |
| * This program can be used and distributed without restrictions. | |
| * | |
| * This program is provided with the V4L2 API | |
| * see http://linuxtv.org/docs.php for more information | |
| */ | |
| #include <stdio.h> |
| package baidumapsdk.demo; | |
| import android.app.Activity; | |
| import android.graphics.Color; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.os.Looper; | |
| import com.baidu.mapapi.map.*; | |
| import com.baidu.mapapi.model.LatLng; |
| /** | |
| * 文 件 名: SnackerBarUtils | |
| * 说 明: from: http://www.jianshu.com/p/cd1e80e64311 | |
| */ | |
| import android.graphics.Color; | |
| import android.support.design.widget.Snackbar; | |
| import android.view.Gravity; |