Apr
20
Programming in Clojure 002 : 语法糖
Published 12:04 Apr 20, 2014 by @ezra.
#Programming# 现在,如果你真的有兴趣,可能已经迫不及待想要学习 Clojure 的语法了,下面我们再来列举一些 Clojure 的语法糖吧:
作用
语法糖
对应函数
...
Apr
20
Mac: 注册全局热键
Published 12:04 Apr 20, 2014 by @ezra.
#Programming# 使用 Cocoa 为应用注册热键, 首先需要引入 Carbon.framework, 并包含头文件。
#import <Carbon/Carbon.h>
接下来, 要做两件事, 注册热...
Apr
16
HTML color codes and names
Published 12:04 Apr 16, 2014 by @ezra.
#Programming#
Color Name
Color Code
Red
...
Apr
07
__block directive, a simple explanation
Published 12:04 Apr 07, 2014 by @ezra.
#Programming# Nowadays, if you pass a variable inside a block and try to assign a new value to it, you will encoun...
Mar
21
Python : tree
Published 12:03 Mar 21, 2014 by @ezra.
#Programming# 用 Python 实现一个 tree 指令的模拟,后面有时间再做优化:
import os
def main():
while True:
path = input('...
Mar
20
Python : Calculator
Published 12:03 Mar 20, 2014 by @ezra.
#Programming# 用 Python 实现一个 GUI 计算器的基本思路,后面有时间会添加更高级的计算功能:
from __future__ import division
import ui
shows_result ...
Mar
16
iOS: XCTest
Published 12:03 Mar 16, 2014 by @ezra.
#Programming# XCode自带的单元测试工具已经从OCUnit演变到了XCTest,但其本质还是差不多的,其好处在于XCode集成,简单方便在XCode5中新建一个工程的时候,会默认带一个用于单元测试的target,...
Mar
16
iOS: 测试 View Controllers
Published 12:03 Mar 16, 2014 by @ezra.
#Programming# 我们不是迷信测试,但它应该帮助我们加快开发进度,并且让事情变得更有趣。
让事情保持简单
测试简单的事情很简单,同样,测试复杂的事会很复杂。就像我们在其他文章中指出的那样,让事情保持简单小巧总是好的。除...
Mar
08
Git Workflow
Published 12:03 Mar 08, 2014 by @ezra.
#Technology# 1. 序
这篇指南以大家在 SVN 中已经广为熟悉使用的集中式工作流作为起点, 循序渐进地演进到其它高效的分布式工作流, 还介绍了如何配合使用便利的 Pull Request 功能, 系统地讲解了各种...
Mar
03
Optimizing NSPredicates
Published 12:03 Mar 03, 2014 by @ezra.
#Programming# This week I'm gonna throw three strategies you can use to improve the performance of your NSPredicat...
Feb
17
Game of Life Cellular Automata
Published 12:02 Feb 17, 2014 by @ezra.
#Programming# For this week I want to share a concept and an example repository of something called Cellular Autom...