Blocks are Objective-C objects, which means they can be added to collections like NSArray or NSDictionary. Block语法——无参数版本 定义(Block的值) ^{ NSLog(@"This is a block"); } 声明 void (^simpleBlock)(void); 类似int i; 赋值 simpleBlock = ^{ NSLog(@"This is…
苹果官方文档:不稳定的传送门 读书笔记共有以下几篇,其他的知识点不重要或者已经熟悉不需记录 <Programming with Objective-C>第三章 Working with Objects <Programming with Objective-C>第四章 Encapsulating Data <Programming with Objective-C>第五章 Customizing Existing Classes <Programming with…
Automake是用来根据Makefile.am生成Makefile.in的工具 标准Makefile目标 'make all' Build programs, libraries, documentation, etc. (same as 'make'). 'make install' Install what needs to be installed, copying the files from the package's tree to system-wide directories.…
Oleg Sych - » Pros and Cons of T4 in Visual Studio 2008 Pros and Cons of T4 in Visual Studio 2008 Posted by Oleg Sych January 1, 2009 T4 is a fully-featured, template-based code generation engine built into Visual Studio 2008. It offers rich function…
Oleg Sych - » Pros and Cons of T4 in Visual Studio 2008 Pros and Cons of T4 in Visual Studio 2008 Posted by Oleg Sych January 1, 2009 T4 is a fully-featured, template-based code generation engine built into Visual Studio 2008. It offers rich function…
An interface for low power, high bandwidth communications between units in a device in provided herein. The interface comprises a USB 3.0 system interface and a SuperSpeed inter-chip (SSIC) protocol adaptor configured to facilitate communications bet…
原文:Introduction to 3D Game Programming with DirectX 12 学习笔记之 --- 第八章:光照 代码工程地址: https://github.com/jiabaodan/Direct12BookReadingNotes 学习目标 理解基本的材质和光照之间交互方式: 熟悉局部光照和全局光照之间的不同: 学习如何用数学的方式描述平面上一个点的方向,以便于计算入射光和平面之间的夹角: 学习如何准确的变换法向量: 区分环境光,漫反射和高光: 学习如何实现点…
The Swift Programming Language --lkvt 本人在2014年6月3日(北京时间)凌晨起来通过网络观看2014年WWDC 苹果公司的发布会有iOS8以及OS X 10.10顿时感到各种激动,今年很有料啊!但是当看到苹果公司要发布新的编程语言Swift出来的时候,瞬间傻眼了,我们苦逼的程序员们又要学习新编程语言了.牛逼的公司就是敢破坏新的条条框框啊,非要把已经使用了20多年的Objective C给替代掉,我们这种程序员还必须跟随人间的脚步,必须从新学习,这篇文章来自…
2015年计划透析10本英文原著,最开始选定的第一本英文书是<Who Moved my Cheese>,可是这本书实在是太短.太简单了,总体的意思就是要顺应变化,要跳出自己的舒适区,全文不认识的单词也不多,所以很快读完后就开始找第其它的适合我的英文书. 根据<把你的英语用起来>作者的推荐,从zyea要到了<Daughter of Deceit>的文本,发送到Kindle上阅读试试.这书对于我来说果然还是有难度的,前面一堆人物的出场,让我实在搞不清楚他们之间的关系.看了不…
Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of stones piles[i]. The objective of the game is to end with the most stones. The total number of stones…
1 Which Programs can be Solved? This package lets you solve convex quadratic programs of the general form in n real variables x=(x0,…,xn−1). Here, A is an m×n matrix (the constraint matrix), b is an m-dimensional vector (the right-hand side), ⋛ is…
iOS Programming NSUserDefaults When you start an app for the first time, it uses its factory settings. As you use it, a good app learns your preferences. Where are your preferences stored? Inside each app bundle there is a plist that holds the user'…
Objective -C Categories The dynamic runtime dispatch mechanism employed by Objective-C lets you add methods to existing classes. 被Objective -C 采纳的动态运行分配机制让你可以在已有的类中添加方法. 1.1 Creating a Category 创建一个Category A category is a way to add new methods to…
Objective -C Memory Management 内存管理 第一部分 Memory management is part of a more general problem in programming called resource management. 内存管理是资源管理的一部分. Every computer system has finite resources for your program to use. These include memory, open fi…
A Pattern Language for Parallel Application Programming Berna L. Massingill, Timothy G. Mattson, Beverly A. Sanders Abstract Parallel computing has failed to attract significant numbers of programmers outside the specialized world of supercomputing.…
原文:Introduction to 3D Game Programming with DirectX 12 学习笔记之 --- Direct12优化 第一章:向量代数 1.向量计算的时候,使用XMVECTOR(可以利用SIMD优点):类成员变量使用XMFLOAT2 (2D),XMFLOAT3 (3D),和XMFLOAT4 (4D) . 2.向函数传递参数的时候(XMVECTOR可以直接传递到SSE/SSE2)前三个参数类型要定义为FXMVECTOR: 第四个要定义为GXMVECTOR: 第五个…
Go所提供的面向对象功能十分简洁,但却兼具了类型检查和鸭子类型两者的有点,这是何等优秀的设计啊! Duck typing in computer programming is an application of the duck test 鸭子测试 鸭子类型 指示编译器将类的类型检查安排在运行时而不是编译时 type checking can be specified to occur at run time rather than compile time. <代码的未来> https:…