添加一个点光源点击添加完成绿色的是Y轴 为高度红色的是x轴 为横向蓝色的是Z轴 为纵向再看看属性Local Rotation x =0 y = 3.18 z = 0 是坐标Local Scale x =1 y =1 z = 1是物体的大小Range 点光源专用 光源的大小上面设置为8下面设置为30 ...
分类:
编程语言 时间:
2014-12-27 15:10:05
阅读次数:
303
Given an array with positive and negative integers. Re-range it to interleaving with positive and negative integers.NoteYou are not necessary to keep ...
分类:
其他好文 时间:
2014-12-27 01:26:58
阅读次数:
421
偶然掉进了一个坑里。仔细分析了下原因。原来是变量作用域的问题。简单抽象如下:id=1#许多行代码[id for id in range(10)]#许多行代码if id!=1: #做一些事情 passelse: #做另外一些事情结果由于id在[id for id in range(1...
分类:
编程语言 时间:
2014-12-26 21:38:33
阅读次数:
244
(defn kj [x] (letfn [(f [x y] (format "%d*%d=%d" x y (* x y))) (g [c] (clojure.string/join " " (map #(f % (count c)) c))) (t [] (map #(range...
分类:
其他好文 时间:
2014-12-26 18:30:10
阅读次数:
182
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { NSCharacterSet*cs; cs.....
分类:
其他好文 时间:
2014-12-26 18:15:12
阅读次数:
212
一.ICP注意一下ICP的使用条件:只能用于二级索引(secondaryindex)。explain显示的执行计划中type值(join类型)为range、ref、eq_ref或者ref_or_null。且查询需要访问表的整行数据,即不能直接通过二级索引的元组数据获得查询结果(索引覆盖)。ICP可以用于MyISAM和InnnoDB存储引..
分类:
数据库 时间:
2014-12-26 14:52:59
阅读次数:
244
【iOS开发-98】文件分段下载模拟:@“HEAD“和[request setValue:range forHTTPHeaderField:@"Range"]...
分类:
移动开发 时间:
2014-12-26 14:43:11
阅读次数:
197
最近2天一直在弄一个滑动的刻度效果,由于项目是基于Web App开发的,于是考虑到 移动端和pc端的兼容性问题,考虑的比较多,尝试采用 Html5的Range 来做,目前已经兼容 pc端和移动端!实现成果如下:Html5 Range,缺点:------------------------------...
分类:
Web程序 时间:
2014-12-25 17:54:54
阅读次数:
230
Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.罗马数字有如下符号:基本字符IVXLCDM阿拉伯数字15...
分类:
其他好文 时间:
2014-12-25 00:03:39
阅读次数:
266
#!/usr/bin/env python import random # ‘abc..z‘ alphaStr = "".join(map(chr, range(97,123))) fp = open("word.txt", "w") maxIter = 100000 for i in range(maxIter): word = "" len =random.randint(1,5) fo...
分类:
编程语言 时间:
2014-12-23 22:45:42
阅读次数:
288