mac 一般使用bash作为默认shell
Mac系统的环境变量,加载顺序为:
/etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc
当然/etc/profile和/etc/paths是系统级别的,系统启动就会加载,后面几个是当前用户级的环境变量。后面3个按照从前往后的顺序读取,如...
分类:
系统相关 时间:
2014-11-10 23:24:17
阅读次数:
234
在require.js说明文档里有这么一段话有时候你想直接饮用一个script,而不是依照(conform)“baseUrl+paths"规则来找它。如果一个模块ID由以下之一的规则,这个ID就不会通过”baseUrl+paths"配置来加载script,而是像普通的script url属性来加载。...
分类:
其他好文 时间:
2014-11-10 19:40:49
阅读次数:
208
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);NSString *filePath = [[paths objectAtIndex:0] stringBy...
分类:
移动开发 时间:
2014-11-09 01:00:55
阅读次数:
219
#include #include #include #include using namespace std;vector* > paths;class Node {public: vector child; int weight; Node(int w = 0) : weigh...
分类:
其他好文 时间:
2014-11-08 13:25:50
阅读次数:
110
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum ...
分类:
其他好文 时间:
2014-11-08 13:24:56
阅读次数:
171
#pragma mark - Merge PDF- (void)mergePDF{ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString.....
分类:
移动开发 时间:
2014-11-08 10:22:52
阅读次数:
222
题目:和上一题类似,就是这个时候给定了矩阵包含0和1,1代表不能从这里走。我的想法其实很明确,还是用动态规划,只是碰到壁垒的时候要进行考虑。还有初始化很重要。因为1本来是要用来代表在这里出发到终点有一种可能的,所以壁垒的1要用其他代替,我用-1代表是壁垒。如果给定的数组第一个数就是1,那永远都出发不...
分类:
其他好文 时间:
2014-11-08 00:50:30
阅读次数:
259
题目:给定一个m*n的矩阵,从头开始,只能往右边和下边走,一次走一格,知道走到最后一个(右下角)为止。总共有多少种走法。典型的动态规划吧。其实从头走到尾部,和从尾部开始走到头是一样的次数。我们用一个矩阵记录到第一格子的次数,那么可以看到有如下的表:假设是3*4的矩阵,那么我们要返回的就是10了,每个...
分类:
其他好文 时间:
2014-11-07 23:22:48
阅读次数:
137
问题描述:
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and
0 respectively in ...
分类:
其他好文 时间:
2014-11-07 20:56:34
阅读次数:
272
Eclipse C++ 编译环境配置头文件(include) & 库路径(lib) 配置project(/ 工程右键点击) -> properties -> C/C++ General -> Paths and symbos -> GUN C/C++依赖库(libs) 配置Project(/ 工程....
分类:
编程语言 时间:
2014-11-07 12:34:16
阅读次数:
163