码迷,mamicode.com
首页 > 其他好文
【leetcode】Symmetric Tree
Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric...
分类:其他好文   时间:2015-01-27 00:14:03    阅读次数:145
管道,消息队列,共享内存!
2015.1.26星期一,阴天linux中使用的较多的进程通信方式主要有一下几种:1.管道(Pipe):管道可用于具有亲缘关系进程间的通信,有名管道,除了具有管道所具有功能外,它 还允许无亲缘关系进程的通信2.信号(signal):信号是在软件层次上对中断机制的一种模拟,它是...
分类:其他好文   时间:2015-01-27 00:13:53    阅读次数:687
SharedPreferences和PreferencesActvity
软件参数设置,轻量级存储类文件放在/data/data//shared_prefs指定文件名不要带有后缀,默认以xml保存三种方式得到preference区别:1.public SharedPreference getPreferences(int mode) 通过Activity对象获取,获取的是...
分类:其他好文   时间:2015-01-27 00:11:32    阅读次数:256
[翻译] WPAttributedMarkup
WPAttributedMarkuphttps://github.com/nigelgrange/WPAttributedMarkupWPAttributedMarkup is a simple utility category that can be used to easily create a...
分类:其他好文   时间:2015-01-27 00:12:03    阅读次数:283
bower学习(转)
来源:http://www.ddhigh.com/2014/09/bower%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8/感谢作者分享~简介bower是twitter的又一个开源项目,使用nodejs开发,用于web包管理。如果越来越多得开源项目都托管在github上,b...
分类:其他好文   时间:2015-01-27 00:10:31    阅读次数:426
drupal7创始人root忘记密码的解决办法
在index.php中的drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);之后加入require_once 'includes/password.inc';echo user_hash_password('111111');die();运行,得到加密的密文,然后upda...
分类:其他好文   时间:2015-01-27 00:10:38    阅读次数:183
poj1050-To the Max
头疼,做道水题。。DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greate...
分类:其他好文   时间:2015-01-27 00:12:17    阅读次数:242
动态申请内存和释放
申请 new1 int *pint = new int(1024);//开辟一片内存空间,用来保存一个int类型的变量,该存储空间的初始值为1024(初始值可以不写),new返回该内存空间的地址并将该地址赋值给指针变量pint2 int *pia = new int[4]; //开辟一片内存空间.....
分类:其他好文   时间:2015-01-27 00:10:13    阅读次数:189
[leetcode] 01 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2015-01-27 00:10:41    阅读次数:257
ng-grid入手
简介ng-grid是基于AngularJS和JQuery的富表格控件,由AngularUI Team领衔开发,到目前为止已有2354次Commit,1076个Fork。AngualrUI:http://angular-ui.github.io/ng-grid: http://angular-ui.g...
分类:其他好文   时间:2015-01-27 00:10:52    阅读次数:606
【leetcode】Anagrams
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.Anagrams:即字母个数和字母都相同,但是字母顺序不相...
分类:其他好文   时间:2015-01-27 00:08:17    阅读次数:250
第四十二天:Tiny4412模块驱动开发
因为前面写裸板程序的时候,已经详细的叙述过LED灯的控制,按键的控制,以及watchdog的配置,这里就不赘述了,主要是说明模块如何控制底层硬件的。 第一个程序是模块程序控制LED灯全亮。 因为友善之臂将LED灯的驱动默认加载到内核中,编写模块驱动程序前就要先把原先的LED灯驱动裁剪掉。...
分类:其他好文   时间:2015-01-27 00:08:20    阅读次数:312
不管你是谁,有什么梦想,只要你看看你的时间花在哪了,就知道你是什么样的人,时间是没办法做假的。
选自warfalcon 作为参考,自勉之1、记录自己的时间花销这个习惯能让你明白一件事情,你的时间哪去了?培养这个习惯花了好几年时间,这个习惯是时间管理中一入门就要做的,刚开始时可以按小时来记录,当时你记录一段时间之后,才能真正认识到自己的时间到底哪去了,真实的反应出自己把时间都花在哪了。人会有一....
分类:其他好文   时间:2015-01-27 00:08:52    阅读次数:189
[LeetCode] String to Integer (atoi)
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:其他好文   时间:2015-01-27 00:09:13    阅读次数:217
定期运动——这个习惯坚持到死为止
这是每个人从小听到大的建议,但只是极少数的人能真正做到,一旦当你养成这个习惯之后,你会发现这些习惯会影响你的整个生活,让你的世界完全不一样。有运动习惯的人,整个人的精气神都会不一样,更不说当你身材比例合适的时候,穿什么衣服都好看。在这个习惯培养过程中,你会发现你必须要改变你的生活方式才行,比如睡眠、...
分类:其他好文   时间:2015-01-27 00:07:02    阅读次数:176
hdu_1023
// hdu 1023// number theory - catalan number// Jan.26 2015#include #include #include #define MAXN 60struct rev{ int num[MAXN]; int l; // when...
分类:其他好文   时间:2015-01-27 00:06:47    阅读次数:244
寻找妨碍你的习惯
By Henrik Edberg1、缺席。也许你曾经听过伍迪·艾伦所说的这句话:“百分之八十的成功来自于出席。”更多的出席——这是在生活中你可以保证更多成功所做的最大也是最简单的事情之一,无论是在你的社交生活中,你的事业上还是你的健康方面。如果你想要改善你的健康状况,一个最重要也是最有效的事情就是在...
分类:其他好文   时间:2015-01-27 00:07:20    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!