首页 > 其他
Two Sum
Description:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices o...
分类:其他   时间:2015-06-14 13:42:20    收藏:0  评论:0  赞:0  阅读:171
侠客显示消息窗口
xEngine.Log.ShowConsole(); xEngine.Log.Title = "发布消息实时"; xEngine.Log.WriteLine("测试一下看看"); xEngine.Log.CloseC...
分类:其他   时间:2015-06-14 13:42:00    收藏:0  评论:0  赞:0  阅读:75
转载:jenkins解决jenkins内存溢出问题
在jenkins master-slave配置中,总是出现内存溢出问题,更换了机器设备仍然跑不起来: 问题如下:StatusCode:500Exception:org.apache.commons.jelly.JellyTagException:jar:file:/Users/alibaba/.je...
分类:其他   时间:2015-06-14 13:40:20    收藏:0  评论:0  赞:0  阅读:236
Filter FASTA files
Use a regular expression for filtering sequences by id from a FASTA file, e.g. just certain chromosomes from a genome. There are other toolsas part of...
分类:其他   时间:2015-06-14 13:39:11    收藏:0  评论:0  赞:0  阅读:191
Git4
1,在Git中每台机器的版本库其实都是一样的,没有主次之分2,建立远程版本库远程版本库的内容和你本地机器上的版本库相同,但是有了远程版本库你便可以和team中的成员一同工作了。 首先有一些准备工作首先在github中注册账号 我注册的账号的邮箱为mawenyuan0716@163.com然后...
分类:其他   时间:2015-06-14 13:39:00    收藏:0  评论:0  赞:0  阅读:204
Swiper简单入门
背景需求给业务部分在m站实现一个邀请函的h5页面,基本流程:1.会议主题,2邀请函内容,3会议安排,4会议网络资源二维码,5酒店安排技术分析将ppt搬到h5上,每一页要用帧显示(这个没有用过)、每一项用加载效果 淡入淡出等、增加音乐效果、增加翻页提示箭头图标Swiper官网 http://www.s...
分类:其他   时间:2015-06-14 13:38:20    收藏:0  评论:0  赞:0  阅读:229
callable与runnable
Callable与?Future?两功能是Java在后续版本中为了适应多并法才加入的,Callable是类似于Runnable的接口,实现Callable接口的类和实现Runnable的类都是可被其他线程执行的任务。 Callable的接口定义如下; ...
分类:其他   时间:2015-06-14 12:36:31    收藏:0  评论:0  赞:0  阅读:216
zookeeper 安装
南京今天的天气还是蛮热的? 看看dubbo 阿里的分布式框架吧。 在注册的时候用到了zookeeper 后来就到官网下载 然后直接zkServer.cmd运行 但是老是闪退。 看配置信息 然后总结出了一些结论 。下面就介绍一下zooke...
分类:其他   时间:2015-06-14 12:36:21    收藏:0  评论:0  赞:0  阅读:147
小菜学设计模式——状态模式
背景 ? ? 就算你重复做一件事情几十年,这件事情也未必每次都和上一次一样那么干净的结束。因为,状态会影响的你,不同的状态,所做出的事情自然也不一样。库里状态手感火热的时候,可以展示变态准;状态低迷时...
分类:其他   时间:2015-06-14 12:36:11    收藏:0  评论:0  赞:0  阅读:183
poj2406 Power Strings
Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti...
分类:其他   时间:2015-06-14 12:35:11    收藏:0  评论:0  赞:0  阅读:119
第十四周 项目一 小玩文件
【项目1 - 小玩文件】 (1)下面程序的功能是统计文本文件abc.txt中的字符个数,#include #include #include // //fstream提供了三个类,用来实现c++对文件的操作。(文件的创建,读写)。 // ifstream -- 从已有的文件读 // // ofstream -- 向文件写内容 // // fstre...
分类:其他   时间:2015-06-14 12:34:51    收藏:0  评论:0  赞:0  阅读:122
poj(2777)——Count Color(lazy思想,成段更新,区间统计)
题目的意思是: 现在我们有l个数,然后标记为1到n,他们的单位长度都是1,然后在每个单位长度的地方我们只能染上一种颜色。 现在有两种操作:  "C A B C"代表给A,B区间都染上C这种颜色。  "P A B" 相当于是询问,需要输出A,B这个区间不同颜色的数量是多少。 一开始我在想要怎么求不同颜色的数量,后来发现题目中说颜色的范围是30种颜色,所以在这里我们就可以进行暴力枚举...
分类:其他   时间:2015-06-14 12:34:41    收藏:0  评论:0  赞:0  阅读:277
poj2752 Seek the Name, Seek the Fame
Description The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-born babies. They seek the name, and at the sa...
分类:其他   时间:2015-06-14 12:34:31    收藏:0  评论:0  赞:0  阅读:196
AtomicInteger源码分析——基于CAS的乐观锁实现
乐观锁 悲观锁 CAS java AtomicInteger concurrent...
分类:其他   时间:2015-06-14 12:34:21    收藏:0  评论:0  赞:0  阅读:267
北大ACM1007——DNA Sorting
简单的题目,如题:找出字符串中的反转次数。按反转次数从小到大输出。 反转次数,就是字符串中的每一个跟它后面的每一个字符比较,比后面的大的,次数+1. 下面的是AC的代码: #include #include #include #include using namespace std; class data { public: char str[55]; int count; }...
分类:其他   时间:2015-06-14 12:34:06    收藏:0  评论:0  赞:0  阅读:256
【ActionScript】定时器,修改组件的透明度
如下图,设置一个影片剪辑,里面放置一个正方线,不断地变淡又变成清。 虽然以下的动画可以轻松通过插入关键帧补间来实现。但是,还是希望通过这个例子,还说明ActionScript3.0定时器的使用 一、基本布局 1、通过Ctrk+F8,或者插入->新建原件,新建一个名为square的影片剪辑 2、在影片剪辑中通过矩形工具,设置其没有笔触,否则一会儿用选择工具很难选取,在影片剪辑...
分类:其他   时间:2015-06-14 12:32:51    收藏:0  评论:0  赞:0  阅读:282
leetcode第38题-Count and Say
The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 is read off as ...
分类:其他   时间:2015-06-14 12:30:41    收藏:0  评论:0  赞:0  阅读:241
UVA11992:Fast Matrix Operations(线段树)
题意: 有一个初始状态全为0的矩阵,一共有三个操作 1 x1 y1 x2 y2 v:子矩阵(x1,y1,x2,y2)所有元素增加v 2 x1 y1 x2 y2 v:子矩阵(x1,y1,x2,y2)所有元素设为v 3 x1 y1 x2 y2 v:查询子矩阵(x1,y1,x2,y2)的元素和,最大值和最小值 思路: 因为总元素葛素不超过10^6,而且更新是对于连续的行进行更新,...
分类:其他   时间:2015-06-14 12:30:31    收藏:0  评论:0  赞:0  阅读:114
poj3080 Blue Jeans
Description The Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth w...
分类:其他   时间:2015-06-14 12:30:11    收藏:0  评论:0  赞:0  阅读:243
MapReduce之Partitioner组件
简述 Partitioner组件可以让Map对Key进行分区,从而可以根据不同的key来分发到不同的reduce中去处理;你可以自定义key的一个分发规则,如数据文件包含不同的大学,而输出的要求是每个大学输出一个文件;Partitioner组件提供了一个默认的HashPartitioner。package org.apache.hadoop.mapreduce.lib.partition; pub...
分类:其他   时间:2015-06-14 12:29:41    收藏:0  评论:0  赞:0  阅读:256
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!