Skip to content

Instantly share code, notes, and snippets.

package android.support.v4.graphics.drawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.DrawableContainer;
import android.graphics.drawable.GradientDrawable;
import android.os.Build;
/**
* 参考support-v4-23.1.1源码, 修复{@link DrawableCompat#wrap(Drawable)}方法在状态改变后不刷新的问题
* <p/>
@ipcjs
ipcjs / ZipUtil.java
Created March 23, 2016 07:48
compress & decompress
import java.io.*;
import java.rmi.AccessException;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
/**
@ipcjs
ipcjs / SelectionBuilder.java
Last active March 31, 2016 06:32
构建查询语句; 增强版
/*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ipcjs
ipcjs / SelectionBuilder.java
Last active March 31, 2016 06:16
构建查询语句; 原版
/*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ipcjs
ipcjs / +Rime+小鹤双拼+颜文字+笔画混合输入方案.md
Last active March 8, 2024 07:03
Rime+小鹤双拼+颜文字+笔画混合输入方案

Rime+小鹤双拼+颜文字+笔画混合输入方案

概述

方案配置文件+详细说明:Rime+小鹤双拼+颜文字+笔画混合输入方案

实现的功能是:给小鹤双拼添加颜文字支持,直接打双拼出颜文字,支持模糊音,支持词频调整,同时不影响小鹤双拼自带的笔画反查。

要实现双拼+颜文字的功能网上已经有很多方法,但都有些弊端,这里分别简单介绍下:

@ipcjs
ipcjs / MIUI8体验报告.md
Last active September 14, 2016 05:38
那N5刷了MIUI8体验下

MIUI8体验报告

优缺点

优点

  1. 锁屏通知唤醒屏幕
  2. 各应用的锁屏通知开关
  3. 各应用的通知指示灯开关
@ipcjs
ipcjs / down_iqiyi_dongman_fans.py
Created November 4, 2016 02:01
下载爱奇艺下的动漫爱好者, 并拼图
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys, os, random, itertools, re, functools
import urllib.parse, urllib.request
from PIL import Image, ImageFilter, ImageDraw, ImageColor
"""
@ipcjs
ipcjs / bilibili_comment_search.js
Created December 8, 2016 07:26
bilibili回复助手
// 在匿名函数中执行代码, 防止污染全局变量
(function () {
'use strict';
console.log('hello world');
var id, type, feedback, group;
if (window.aid) {
id = window.aid;
type = "arc";
} else if (window.tp_id) {
id = window.tp_id;
@ipcjs
ipcjs / vue-attributes-for-webstorm.txt
Last active December 21, 2022 05:57
Vue attributes for WebStorm
:checked
:class
:click
:disabled
:for
:id
:name
:readonly
:style
:title
@ipcjs
ipcjs / dom_load_order.user.js
Last active October 22, 2017 10:48
Dom相关事件的执行顺序
// ==UserScript==
// @name New Userscript
// @namespace https://github.com/ipcjs
// @version 0.0.1
// @description try to take over the world!
// @author ipcjs
// @match http://bangumi.bilibili.com/anime/5788/play*
// @grant none
// @run-at document-start
// ==/UserScript==