Handle onClick for our custom LinearLayout for Gallery-like HorizontalScrollViewThe post "Implement Gallery-like HorizontalScrollView" and "Implement ...
分类:
其他好文 时间:
2014-07-07 12:30:02
阅读次数:
282
题目:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not poss...
分类:
其他好文 时间:
2014-07-07 10:57:23
阅读次数:
175
栈是一种线性的结构,先进后出(FILO),我们只能在栈的一端对数据进行操作,数据的插入与删除只能在栈的一端进行。 在STL中的栈stack一共只有5中操作。 1.stack::empty() 2.stack::size() 3.stack::push(typename t) 4.sta...
分类:
其他好文 时间:
2014-07-06 14:24:34
阅读次数:
183
using System;using System.Collections;using System.Configuration;using System.Data;using System.Web;using System.Web.Security;using System.Web.UI;usin...
分类:
其他好文 时间:
2014-07-05 19:57:56
阅读次数:
126
下午在重新整理一份代码,中间遇到这么一个问题:要么出现内存访问冲突,要么出现“Stack around the variable XX was corrupted”错误。很是恼火!先出现的是“Stack around the variable XX was corrupted”错误,网上查到的第一种...
分类:
其他好文 时间:
2014-07-05 17:38:49
阅读次数:
399
ansible的Conditionals和loops和salt-stack比起来真的太强大了。salt-stack使用判断循环,好像,只能使用模板里面的判断和循环。而ansible本身自带了适用于各种场景的判断循环插件。。不但如此,像loops,我们还可以自己编写插件,满足我们的实际需求。先说说Conditionals吧Con..
分类:
其他好文 时间:
2014-07-04 06:30:22
阅读次数:
318
class Solution{public: vectorpreorderTraversal(TreeNode *root) { vectorpreOrder; Traversal(root,preOrder); return preOrder; } stack st;private: voi...
分类:
其他好文 时间:
2014-07-03 10:10:24
阅读次数:
165
usingSystem;usingSystem.Web;usingThoughtWorks.QRCode.Codec;usingThoughtWorks.QRCode.Codec.Data;usingThoughtWorks.QRCode.Codec.Util;usingSystem.IO;usin...
分类:
Web程序 时间:
2014-07-02 23:11:25
阅读次数:
320
最近准备跳槽的事情,于是把C++翻出来看,顺便做了一些练习,主要是数据结构方面的,就贴在这里做个系列,权当督促自己了。第一天,写了一个栈,调试了下没什么问题,内存泄露的问题也解决了。 1 #ifndef STACK_H 2 #define STACK_H 3 4 #include "std...
分类:
编程语言 时间:
2014-07-02 20:35:37
阅读次数:
216
说起变量,ansible中的变量,差不多等于salt-stack里面的pillar+grains吧ansible中的变量主要来源于,楼主总结了一下,大概有这么几个地方吧Inventory(hostvars,groupvars)playbook里面命令行roles里面来自于nodes上面的facts这些类型的变量,1-4一般来说都是咱们用户自己定义..
分类:
其他好文 时间:
2014-07-02 06:10:50
阅读次数:
283