This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var script = document.createElement('script');script.src = "http://libs.useso.com/js/jquery/1.10.0/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.manualanimation; | |
import android.graphics.Canvas; | |
import android.graphics.ColorFilter; | |
import android.graphics.Paint; | |
import android.graphics.PixelFormat; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Animatable; | |
import android.graphics.drawable.Drawable; | |
import android.view.animation.AnimationUtils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* author:lsxiao | |
* date:2017-03-23 18:47 | |
* github:https://github.com/lsxiao | |
* zhihu:https://zhihu.com/people/lsxiao | |
* <p> | |
* tab切换器,用于解决CompoundButton不在一同一个父布局下的 radio tab 切换 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @param bytes 目标数组 | |
* @param circular 是否循环移位 | |
*/ | |
void shiftLeft(char unsigned *bytes, bool circular) { | |
int size = sizeof bytes; | |
int highBitOfHeadByte = (bytes[0] & 0x80) == 0x80 ? 1 : 0;//获取头字节的最高位bit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.wilhelmgym.quiz.recyclerview; | |
import android.content.Context; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.AttributeSet; | |
import android.view.ViewGroup; | |
public class SpanningLinearLayoutManager extends LinearLayoutManager { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/fish | |
set packages (adb shell pm list packages | awk -F':' '{print $2}'); | |
for pkg in $packages; | |
set apk_path (adb shell pm path $pkg | awk -F':' '{print $2}'); | |
set path ~/Desktop/apks/$pkg.apk | |
echo $path | |
adb pull $apk_path $path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ss.sys.ces.gg; | |
import com.bytedance.frameworks.baselib.network.http.e.a; | |
import com.bytedance.frameworks.baselib.network.http.e; | |
import com.ss.a.b.b; | |
import com.ss.sys.ces.c; | |
import com.ss.sys.ces.out.StcSDKFactory; | |
import java.util.Calendar; | |
import java.util.HashMap; | |
import java.util.Iterator; |