环境与IDE、SDK安装完成后就可以开始真正写第一个程序了 最开始肯定要先去搞定GPIO。因为这个是所有的基础。无论后面要用什么都离不开GPIO。 先贴上例程: #include "reg24le1.h"void main( void ){ unsigned int itmp; P0DIR = 0; ...
分类:
其他好文 时间:
2018-01-16 17:58:06
阅读次数:
152
许多 Actionscript 程序员已经从 Flash 转到 Cocos2d-x 了。那么以前的那些超级好用的类库都不见了,只好重新来过。 我利用 Lua 和 lpack 库实现了一套 lua版本的 ByteArray 。这套库用于 quick-cocos2d-x(后称quick) 中。因此依赖一 ...
分类:
其他好文 时间:
2018-01-16 12:22:59
阅读次数:
183
在负载均衡做各种复杂策略的时候往往会碰到需要前后有连续性的状态计数,netscaler作为一个策略封装比较友好的ADC在提供完善策略安全性保障的同时还提供了比较开放的编程环境。在编程中很关键的一环就是变量的定义和使用,我们就变量这一话题来看netscaler能够提供怎样的功能。本文抛砖引玉为目的,提供一个思路供大家参考,具体应用场景还需要大家发散性思考。
分类:
Web程序 时间:
2018-01-16 10:19:19
阅读次数:
224
什么是 two pointers 以一个例子引入:给定一个递增的正整数序列和一个正整数 M,求序列中的两个不同位置的数 a 和 b,使得它们的和恰好为 M,输出所有满足条件的方案。 本题的一个最直观的想法是,使用二重循环枚举序列中的整数 a 和 b,判断它们的和是否为 M。时间复杂度为 O(n2)。 ...
分类:
其他好文 时间:
2018-01-15 22:30:01
阅读次数:
204
1.加载依赖 2.布局 3.初始化和监听 4完成 ...
分类:
移动开发 时间:
2018-01-14 21:26:23
阅读次数:
209
题目: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 思路: 这道题看起来并不难,但是有很多需要注意的点,我用了很久的时间才通过这道题。大致的思路 ...
分类:
其他好文 时间:
2018-01-14 21:24:28
阅读次数:
200
wiki:https://en.wikipedia.org/wiki/COM_Express COM Express, a computer-on-module (COM) form factor, is a highly integrated and compact PC that can be ...
分类:
其他好文 时间:
2018-01-14 20:21:54
阅读次数:
266
JS 早期没有继承的原因,可以在这里找到. 实现 继承有多种方式,下面一一列举 1,利用class ES 6退出后 js有真正的类 class ,也有了 extends 2,利用call或apply方法 3,利用prototype 4,拷贝prototype继承 ...
分类:
Web程序 时间:
2018-01-13 23:52:23
阅读次数:
247
Comparable接口:让自定义的对象具有比较规则 输出结果: Student [name=zhangsan, age=28] Student [name=dahuang, age=22] Student [name=xiaoming, age=21] Student [name=wangwu, ...
分类:
编程语言 时间:
2018-01-13 22:28:35
阅读次数:
185
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front ...
分类:
其他好文 时间:
2018-01-13 20:55:28
阅读次数:
123