自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 aem.findapp.ApplicationNotFoundError: Local application 'Microsoft Excel.app' not found

最近在用python的xlwings库 操作excel 文档,启动发现报错aem.findapp.ApplicationNotFoundError: Local application 'Microsoft Excel.app' not found了解了xlwings 的原理并针对报错堆栈查看分析源码,发现可以指定是要使用excel还是wps,我的mac上只有wps,所以在启动xlwing...

2020-01-15 16:09:44 2894 3

原创 react native 将android studio external libraries里的库替换成自己的编译的库

最近创建了个react native的工程,用android studio 打开android工程的时候发现莫名其妙多了okhttp的库,或者其他没有在gradle文件中引用的库。因为个人对okhttp的源码稍微改过一点,想用自己的jar包替换RN引用的jar,折腾了一下,所以时间就是这么被浪费的。不要再问我为什么干不完活了首先:在 module的build.gradle  文

2017-08-07 18:59:10 1837

原创 indexheap

function IndexHeap(data){this.arr=new Array();this.reverse=new Array();for(var i=0;ithis.arr[i]=i;this.reverse[i]=-1;}this.count=0;this.change=function(i,newItem){data[i]=newItem;

2017-07-16 22:28:43 264

原创 react native 问题记录

1.error: bundling failed: "Unable to resolve module `AccessibilityInfo` from `/Users/apple/WebstormProjects/carracing2/node_modules/react-native/Libraries/react-native/react-native-implementation.js

2017-07-13 15:52:47 6528

原创 (七)JavaScript实现堆排序

function Heap(data){this.arr=data;this.count=0;this.size=function(){return this.count;};this.isEmpty=function(){return this.count==0;}this.insert=function(item){this.arr[this.c

2017-07-09 23:19:32 198

原创 (六)c++和JavaScript实现二叉堆

c++实现#ifndef INC_05_HEAPIFY_HEAP_H#define INC_05_HEAPIFY_HEAP_H#include #include using namespace std;templateclass MaxHeap{private:    Item *data;    int co

2017-07-07 23:21:16 205

原创 (五)c++和JavaScript实现快速排序

c++实现#include #include #include #include "SortTestHelper.h"#include "MergeSort.h"#include "InsertionSort.h"using namespace std;template int _partition(T arr[], int l,

2017-06-30 21:40:17 184

原创 (四)c++和JavaScript实现归并排序

c++实现#include #include "SortTestHelper.h"#include "InsertionSort.h"using namespace std;templatevoid __merge(T arr[], int l, int mid, int r){       T aux[r-l+1];

2017-06-14 00:08:22 187

原创 (三)c++和javascript实现希尔排序

javascript      希尔排序         function hillSort(arr){    var n=arr.length;for(var gap=n/2;gap>0;gap/=2){for(var i=0;ifor(var j=i;iif(ar

2017-06-03 14:46:03 235

转载 Could not find the AndroidManifest.xml file,...found usingdummy file [file:///home/malachi/work/Anno

Could not find the AndroidManifest.xml file,...found usingdummy file [file:///home/malachi/work/AnnotationTest/target/gener.android studio 解决这个异常的办法,参考http://www.cnblogs.com/deman/p/493551

2017-06-01 16:00:18 1511

原创 (二)c++和JavaScript实现插入排序

c++#include #include using namespace std;templatevoid insertionSort(T arr[], int n){    for( int i = 1 ; i         // 寻找元素arr[i]合适的插入位置           for( int j = i ;

2017-05-29 11:58:31 213

原创 (一)c++ 和javascript 实现选择排序

c++实现#include using namespace std;templatevoid selectionSort(T arr[], int n){    for(int i = 0 ; i         int minIndex = i;        for( int j = i + 1 ; j

2017-05-28 23:30:44 204

原创 Android recyclerview源码分析(二)

这篇文章分析这3个类这3个类是和列表item的drag和swipe手势有关的类,通过这3个类可实现类似dragsortlistview的功能。先看下用法ItemTouchHelper.Callback callback = new SimpleItemTouchHelperCallback(adapter);mItemTouchHelper = new ItemTouch

2017-04-14 16:46:37 963

原创 Android recyclerview源码分析(一)

源码分析基于22.2.1版本先预览一下recyclerview 相关的类 今天先分析SortedList 和SortedListAdapterCallback 先看下这两个类的用法 SortedList mDataList=new SortedList   public class ObjectListCallback extends SortedLis

2017-04-13 19:54:46 888

原创 Android模仿摩拜单车车型选择按钮

个人感觉Tablayout里的indicator左右滑动和摩拜单车里按钮背景左右滑动很像,所以我的思路是修改Tablayout里indicator的位置和形状,把indicator的位置放在tab下面,并且修改indicator的形状为圆角矩形,那接下来就是具体实现啦我采用的方法是改写material design下TabLayout的源码,修改的地方只有两处,都位于TabLayout内部类 

2017-03-22 16:18:11 2044

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除