快速排序算法。python实现。 1 # -*- coding: utf8 -*- 2 3
import random 4 5 def partition(mylist, low, high): 6 pivotkey = mylist[low] 7
while low = piv...
分类:
其他好文 时间:
2014-05-17 01:25:40
阅读次数:
305
3.依赖倒置原则:High level modules should not depend upon low level modules. Both should depend upon abstractions. Abstractions should not depend upon details. Details should depend upon abstractions.
意思是:高...
分类:
其他好文 时间:
2014-05-11 22:15:36
阅读次数:
326
什么叫DCD
DataContact Detect(DCD)
1.首先是DCD
2.然后是Primary detection
3.然后是Secondary detection
检测充电的条件是VBUS>VOTG_SESS_VLD
检测流程
1.DCD
阶段
打开IDP_SRC与RDM_DWN,检测D+上的电压和VLGC_LOW比较.如果VDP小于VLG...
分类:
其他好文 时间:
2014-05-09 21:02:41
阅读次数:
377
1.为了节电,某些设备在suspend的时候把vbus关掉
2.SRP作用是Bdevice可以请求A-device打开VBUS.
3.一般来说在enable PHY之后都需要打开ID的上拉电阻
即使PHY处于low
power mode 也应该能检测到:
a.remote wakeup信号。
b.ID变化的信号
(在Intel FFRD上...
分类:
其他好文 时间:
2014-05-09 20:45:37
阅读次数:
281
ShareThis - By Vikas VermaBluetooth low energy
(BLE) is a feature of Bluetooth 4.0 wireless radio technology, aimed at new,
principally low-power and ...
分类:
其他好文 时间:
2014-05-09 10:07:10
阅读次数:
448
arch/arm/kernel/process.c实现pm_power_off=关机函数参考board-omap3touchbook.c文件中pm_power_off=omap3_touchbook_poweroff;staticvoidomap3_touchbook_poweroff(void)
{
intpwr_off=TB_KILL_POWER_GPIO;
if(gpio_request_one(pwr_off,GPIOF_OUT_INIT_LOW,"DVIreset")<0..
分类:
系统相关 时间:
2014-05-09 07:03:00
阅读次数:
470
class Solution{ public: int maxArea(vector&
height) { int len = height.size(), low = 0, high = len -1 ; int maxArea = 0; ...
分类:
其他好文 时间:
2014-05-08 10:23:54
阅读次数:
287
本篇文章来大概说一说打补丁的流程,一般来说打补丁的流程分为测试环境测试和生产环境安装两个部分。如果企业规模比较小,没有完善的流程制度,也是有一些打补丁的原则可以遵循的,比如:对于安全级别为Low以上的各种安全补丁应该分发;对于操作系统的安全补丁应该分发;对于各..
Everyone knows thejordan 11 concord 2014release
here we are at new popular and anticipated approaching Jordan 11 low top usually
set to Saturday at 8:...
分类:
其他好文 时间:
2014-05-07 18:46:26
阅读次数:
318
#define PAGE_SIZE 4096
/* these are not to be changed without changing head.s etc */
#define LOW_MEM 0x100000
extern unsigned long HIGH_MEMORY;
#define PAGING_MEMORY (15*1024*1024)
#define PAGING_PAG...
分类:
系统相关 时间:
2014-05-04 18:15:51
阅读次数:
441