Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. Not ...
分类:
其他好文 时间:
2016-09-22 12:49:09
阅读次数:
116
COMPPUTER SCIENCE AN OVERVIEW 11th Edition job 作业 batch processing 批处理 queue 队列 job queue 作业队列 first-in, first-out 先进先出 interactive processing 交互式处理 r ...
分类:
其他好文 时间:
2016-09-22 00:51:03
阅读次数:
158
ButterKnife的原理简述 注解处理器Java5 中叫APT(Annotation Processing Tool),在Java6开始,规范化为 Pluggable Annotation Processing。 第一步(收集信息) 找到所有被注解的属性或者方法,将所有的信息收集到对应的“类数据 ...
分类:
其他好文 时间:
2016-09-21 21:37:34
阅读次数:
108
Butterknife实现原理 一、简介 1、特点 低版本不使用APT(Annotation Processing Tool)编译时解析技术,使用时仅添加依赖。在Butterknife8.0版本及以上使用APT。 一般注入框架都是运行时注解,即声明注解的生命周期为RUNTIME,然后在运行的时候通过 ...
分类:
其他好文 时间:
2016-09-21 20:05:22
阅读次数:
179
transform:转换 对元素进行移动、缩放、转动、拉长或拉伸。 方法:translate(): 元素从其当前位置移动,根据给定的 left(x 坐标) 和 top(y 坐标) 位置参数 有两个div,它们的css样式如下 结果如下: rotate() 元素顺时针旋转给定的角度。允许负值,元素将逆 ...
分类:
Web程序 时间:
2016-09-20 23:44:35
阅读次数:
163
第一次遇到菱形图片时感到不好处理,后来经过查资料及请问经验丰富的前端开发人员后总结了两种方法,在此写出来以供大家参考…… 设计师给出的设计图类似下图: 解决办法一: 思路:首先切图的时候每个图片都顺时针旋转45°,切成圆角矩形(如下图),然后利用transform:rotate(-45deg);把图 ...
分类:
其他好文 时间:
2016-09-20 19:35:29
阅读次数:
125
题目: Given a list, rotate the list to the right by k places, where k is non-negative. (Medium) For example:Given 1->2->3->4->5->NULL and k = 2,return 4 ...
分类:
其他好文 时间:
2016-09-20 00:06:10
阅读次数:
231
再来看一下之前的一段代码: def process(input: Any) { input match { case (a: Int, b: Int) => println("Processing (int, int)... ") case (a: Double, b: Double) => pri... ...
分类:
其他好文 时间:
2016-09-18 23:31:31
阅读次数:
260
border-left:100px solid transparent; 左边框隐藏 transform:rotate(45deg); div旋转45度 用css做一个三角形 <style type="text/css"> #a{ width:0px; height:0px; border-top: ...
分类:
Web程序 时间:
2016-09-18 15:23:05
阅读次数:
161