Simple Horizontal Divider Item Decoration for RecyclerView
mRecyclerView.addItemDecoration(new SimpleDividerItemDecoration(
getApplicationContext()
));
NOTE: Add item decoration prior to setting the adapter
public function action_authcode() { | |
//随机生成一个4位数的数字验证码 | |
$num=""; | |
for($i=0;$i<4;$i++){ | |
$num .= rand(0,9); | |
} | |
//4位验证码也可以用rand(1000,9999)直接生成 | |
//将生成的验证码写入session,备验证页面使用 | |
SESSION::put("authcode", $num); | |
//创建图片,定义颜色值 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
/* | |
* Copyright (C) 2014 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 |
/* Various BCD Conversion util. methods */ | |
public class BCD { | |
/* | |
* long number to bcd byte array e.g. 123 --> (0000) 0001 0010 0011 | |
* e.g. 12 ---> 0001 0010 | |
*/ | |
public static byte[] DecToBCDArray(long num) { | |
int digits = 0; |
package mobi.dzs.util; | |
/** | |
* 16进制值与String/Byte之间的转换 | |
* @author JerryLi | |
* @email lijian@dzs.mobi | |
* @data 2011-10-16 | |
* */ | |
public class CHexConver | |
{ |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
for i in {1..12} | |
do | |
url=http://www.bilibili.com/video/av3794937/index_$i.html | |
echo $url | |
youtube-dl -o "SeGmEnT-$i-%(playlist_index)s.%(ext)s" $url | |
rm -f buffer_list | |
touch buffer_list | |
for file in $(ls SeGmEnT-$i-*.flv) | |
do | |
echo file "'$file'" >> buffer_list |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.support.v4.content.ContextCompat; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.AttributeSet; | |
import android.view.View; |