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('Inp...
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...
Feb
02
Easier debugging using breakpoints with actions
Published 12:02 Feb 02, 2014 by @ezra.
#Programming# If you debug solely through NSLog you are missing the better insight the debugger can provide you. A...
Feb
02
Scheme 字符串操作总结
Published 12:02 Feb 02, 2014 by @ezra.
#Programming# 字符串操作是任何一门编程语言中最常用的操作之一,Scheme 也提供了一系列 procudure 来操作字符串。
1、字符串的比较,分别有string=?、string>?、string<...
Jan
22
SBCL with CodeRunner
Published 12:01 Jan 22, 2014 by @ezra.
#Programming# Lisp 是继 FORTRAN 之后历史最悠久的高级语言,作为一名括号爱好者,我简单说明一下在 CodeRunner 中运行 Lisp 的方法,由于 Lisp 分支、实现、方言众多,我们选择其中一个 ...