1. AspectJ 支持 5 种类型的通知注解: @Before: 前置通知, 在方法执行之前执行 @After: 后置通知, 在方法执行之后执行 @AfterRunning: 返回通知, 在方法返回结果之后执行 @AfterThrowing: 异常通知, 在方法抛出异常之后 @Around: 环 ...
分类:
编程语言 时间:
2016-07-21 23:46:19
阅读次数:
240
POJ 3253 Fence Repair (优先队列) Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs ...
分类:
其他好文 时间:
2016-07-21 23:42:23
阅读次数:
275
Life is filled with regrets. Ask anyone around you what their regrets are and they usually have no difficulty coming up with many items on their "regr... ...
分类:
其他好文 时间:
2016-07-19 23:27:43
阅读次数:
324
Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needsN (1 ≤ N ≤ 20,000) planks of ...
分类:
其他好文 时间:
2016-07-18 02:04:52
阅读次数:
248
unity中欧拉角规定如下: A rotation that rotates euler.z degrees around the z axis, euler.x degrees around the x axis, and euler.y degrees around the y axis (in ...
分类:
编程语言 时间:
2016-07-14 21:37:45
阅读次数:
394
If you smile when no one else is around, you really mean it. 独处的时候你的笑容才是发自内心的笑容。 Human beings are social animals. And only in social activities, we be ...
分类:
其他好文 时间:
2016-07-06 00:01:12
阅读次数:
340
Improving our mouse drag event Our mouse drag event is a little too simple. Notice that when we drag around the sprite, it always positions itself at ...
分类:
Web程序 时间:
2016-07-01 06:38:57
阅读次数:
236
谈到iOS多线程,一般都会谈到四种方式:pthread、NSThread、GCD和NSOperation。其中,苹果推荐也是我们最经常使用的无疑是GCD。对于身为开发者的我们来说,并发一直都很棘手,如果对GCD的理解不够透彻,那么iOS开发的历程绝对不会顺利。这里,我会从几个角度浅谈我对GCD的理解。
一、多线程背景
Although threads have been around ...
分类:
其他好文 时间:
2016-06-30 16:35:07
阅读次数:
214
第一种:注解配置AOP 注解配置AOP(使用 AspectJ 类库实现的),大致分为三步: 1. 使用注解@Aspect来定义一个切面,在切面中定义切入点(@Pointcut),通知类型(@Before, @AfterReturning,@After,@AfterThrowing,@Around). ...
分类:
编程语言 时间:
2016-06-30 12:19:31
阅读次数:
274
原文地址:http://code.joejag.com/2016/anti-if-the-missing-patterns.html Around 10 years ago I encountered the anti-if campaign and found it to be an absurd ...
分类:
其他好文 时间:
2016-06-17 14:19:25
阅读次数:
192