This file contains 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/bin/env python | |
# Author: Ray Rinaldy | |
# pip install Pillow | |
# put this script in every image folder that wants to be converted | |
# run python compress.py | |
# | |
# This script will works on .jpg, .jpeg & .png (for png files, it will auto convert to have white background) | |
import os, glob, PIL, sys |
This file contains 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
//===================================================================================================== | |
// IMU.c | |
// S.O.H. Madgwick | |
// 25th September 2010 | |
//===================================================================================================== | |
// Description: | |
// | |
// Quaternion implementation of the 'DCM filter' [Mayhony et al]. | |
// | |
// User must define 'halfT' as the (sample period / 2), and the filter gains 'Kp' and 'Ki'. |
This file contains 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
/** | |
* Created by tysheng | |
* Date: 2016/11/18 10:59. | |
* Email: tyshengsx@gmail.com | |
*/ | |
public abstract class BaseMultiItemAdapter<T> extends BaseRecyclerViewAdapter<T> { | |
private static final int DEFAULT_VIEW_TYPE = -255; | |
private SparseIntArray layouts; |
This file contains 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
/* | |
* 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 |
This file contains 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
/** | |
* Base adapter for BaseQuickAdapter | |
* Attention: all method called after setAdapter(). | |
* Created by tysheng | |
* Date: 16/9/18 09:18. | |
* Email: tyshengsx@gmail.com | |
*/ | |
public abstract class BaseRecyclerViewAdapter<T> extends BaseQuickAdapter<T, StyBaseViewHolder> { | |
protected RecyclerView mRecyclerView; |
This file contains 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
import android.content.Context; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
This file contains 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
public abstract class NineView extends LinearLayout { | |
public static int MAX_WIDTH = 0; | |
// 照片的Url列表 | |
private List<String> mImagesList; | |
protected Context mContext; | |
/** | |
* 长度 单位为Pixel |