Skip to content

Instantly share code, notes, and snippets.

View darkengine's full-sized avatar

Chunliang Lin darkengine

  • Shenzhen, GuangDong, China
View GitHub Profile
# Redis configuration file example.
#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
@darkengine
darkengine / GenericViewHolder.java
Created December 15, 2015 06:05
Generic ViewHolder
package com.rockyapps.dbdemo.ui;
import android.util.SparseArray;
import android.view.View;
/**
* Created by apple on 15/12/15.
*/
public class GenericViewHolder {
@SuppressWarnings("unchecked")