写篇小文来聊聊在Mac上如何使用Visual Studio Code编译和调试C#代码,最后匹夫也会尝试把Visual Studio Code嵌入Unity3D中,作为一个准“IDE”使用。
具体算法可见[红黑树 - 维基百科,自由的百科全书](http://zh.wikipedia.org/zh/%E7%BA%A2%E9%BB%91%E6%A0%91)最总完成代码见[algorithm/RBTree.h at master · liu946/algorithm](https://git...
分类:
其他好文 时间:
2015-05-09 08:47:28
阅读次数:
101
问题背景:画带坐标的图,例如 画里面那条曲线的时候,希望将绘图区域局限在坐标范围内,范围外的就自动屏蔽掉。 两个方案,一是用CPaintDC的SelectClipRgn函数,感觉略麻烦。另一个函数,就是标题里的IntersectClipRect,感觉更好用些,就一个简单的输入参数rect,搞定。
分类:
其他好文 时间:
2015-05-09 08:47:24
阅读次数:
91
EightTime Limit:1000MSMemory Limit:65536KTotal Submissions:26261Accepted:11490Special JudgeDescriptionThe 15-puzzle has been around for over 100 years...
分类:
其他好文 时间:
2015-05-09 08:47:18
阅读次数:
141
背景: 因最近试安装Linux下的jira,有一个中文插件安装后,一旦设置开机启动后,它是英文,而在终端再重新启动一次后呢,似乎插件生效,它又恢复为正常中文界面,我首先想这这涉及到一个环境变量的问题,因为在我设置开机启动的服务时用service jira start出现找不到一些变量,如:...
分类:
系统相关 时间:
2015-05-09 08:46:35
阅读次数:
596
css基础考核
分类:
Web程序 时间:
2015-05-09 08:46:17
阅读次数:
143
1、视图组件View android 绝大部分的UI组件都放在android.widget包以及其子包、android.view包以及其子包中,android应用所有组件都继承了View类 View有一个非常重要的类:ViewGroup,但ViewGroup通常作为其他组件的容器使用
分类:
移动开发 时间:
2015-05-09 08:45:13
阅读次数:
156
Implement Trie (Prefix Tree)
Total Accepted: 601
Total Submissions: 2396
Implement a trie with insert, search, and startsWith methods.
Note:
You may assume that all inputs are consist of...
分类:
其他好文 时间:
2015-05-09 07:43:51
阅读次数:
347
猫猫分享,必须精品
原创文章,欢迎转载。转载请注明:翟乃玉的博客
地址:http://blog.csdn.net/u013357243?viewmode=contents
效果:
代码:
很简单,不多说,就是把一堆动画放一起,看代码。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{...
分类:
移动开发 时间:
2015-05-09 07:44:02
阅读次数:
174
';print_r($result);function httpcopy($url,$file='',$timeout=60){ $file=empty($file)?pathinfo($url,PATHINFO_BASENAME):$file; $dir=pathinfo($file,...
分类:
Web程序 时间:
2015-05-09 07:42:24
阅读次数:
170
PIE stands for Progressive Internet Explorer. It is an IE attached behavior which, when applied to an element, allows IE to recognize and display a nu...
';echo '本周结束日期:',$now_end,'';echo '上周开始日期:',$last_start,'';echo '上周结束日期:',$last_end,''; 注意:由于国外的星期都是从周日开始,中国习惯从周一开始,所以直接使用strtotime("last monday") 就会....
分类:
Web程序 时间:
2015-05-09 07:41:58
阅读次数:
211
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2015-05-09 07:42:26
阅读次数:
124
Given an array of integers and a number k, the majority number is the number that occursmore than 1/kof the size of the array.Find it.ExampleGiven[3,1...
分类:
其他好文 时间:
2015-05-09 07:44:04
阅读次数:
143
题意:给定一个只含'(',')'的括号序列,有m个操作,改变某个位置的括号或者询问区间[L,R]内的括号进行配对后剩下的第K个括号的位置(配对的括号从原序列中删掉)。思路:首先对于一个括号序列,进行配对后剩下的括号序列必定是")))...)((...(("这种形式的,令(x,y)表示当前区间的剩下的...
分类:
其他好文 时间:
2015-05-09 07:44:02
阅读次数:
206
做一个project需要用PHP比较当前时间,发现php显示的当前时间与实际时间有较大的差异,于是查了资料进行修改—— 在php.ini配置文件里修改date.timezone的值就能成功设置php服务器的时区 其他参考值: (Asia/Chon...
分类:
Web程序 时间:
2015-05-09 06:42:28
阅读次数:
119
容易忘记的命令之route
route命令
route-show/
manipulatetheIProutingtable显示或修改路由表
显示路由表
route-n
这样的话命令执行的快一点,因为加上-n选项后,直接使用ip或者端口号,而不使用协议或主机名,少了一个解析的过程
liuliancao@liuliancao-K45VD:~$route-..
分类:
其他好文 时间:
2015-05-09 06:40:06
阅读次数:
115