码迷,mamicode.com
首页 > 其他好文
70.自定义异步任务
1.抽象异步任务类:public abstract class YTAsyncTask { private static final HandlerThread handlerThread = new HandlerThread(YTAsyncTask.class.getName(), 10); p...
分类:其他好文   时间:2015-12-26 11:38:59    阅读次数:134
ural 1250. Sea Burial
1250. Sea BurialTime limit: 1.0 secondMemory limit: 64 MBThere is Archipelago in the middle of a shoreless ocean. An ancient tribe of cannibals lives ...
分类:其他好文   时间:2015-12-26 11:36:59    阅读次数:210
jeecms内容显示条数
1、按照1、2、3、4、5顺序显示 [@cms_channel id='1'] ${tag_bean.name!} [@cms_content_list count=5 channelId=tag_bean.id channelOption=1] [#list tag_list as t] ...
分类:其他好文   时间:2015-12-26 11:39:02    阅读次数:150
cms的使用与总结
CMS是基于帝国CMS编写的,主要用于门户网站的实现,使用CMS可以快速的进行一个网站的编写,这篇文章主要讲我在用cms时的一些总结
分类:其他好文   时间:2015-12-26 11:35:41    阅读次数:181
Google Play笔记之上架
我最近负责Google Play上架的主要工作 ,现已进入开放测试阶段(随后就可全球首发~~)。接入工作已完成,这篇记录一下上架后期的笔记。 开放测试 开放测试是指对所有玩家进行开放式测试,玩家可以通过链接或其它方式,获得测试资格,并下载游戏进行测试。 分享 1、在google后台获取测试链接,把链...
分类:其他好文   时间:2015-12-26 11:37:59    阅读次数:207
删除txt文件每行第一(n)个空格前的方法
1. 把要处理的文本保存在a.txt文件中2. 在相同文件夹中新建一个xx.txt文件,输入下面代码,再把文件名改为xx.bat.@echo offset fn=a.txt(for /f "usebackq tokens=1*" %%i in ("%fn%")do ( echo;%%j>con&.....
分类:其他好文   时间:2015-12-26 11:36:09    阅读次数:206
iptables使用multiport 添加多个不连续端口 不指定
iptables使用multiport 添加多个不连续端口碟舞飞扬, 01:26 ,Linux技术,评论(0),引用(0),阅读(12214), Via 本站原创大|中|小使用multiport可以添加多个不连接的端口,最多可以添加15组。如下-A INPUT -p tcp -m multiport...
分类:其他好文   时间:2015-12-26 11:34:16    阅读次数:3895
[LeetCode] 73. Set Matrix Zeroes 解题思路
问题:给定一个矩阵,当矩阵一个元素为 0 ,将该元素的当前行,当前列都设为 0 。 我的方案满足补充内容的第二点,使用 O(m + n) 额外空间。
分类:其他好文   时间:2015-12-26 11:33:27    阅读次数:123
kafka命令
启动kafka:./kafka-server-start.sh ../config/server.properties &查看topic./kafka-topics.sh --zookeeper 192.168.8.56:2181,192.168.8.70:2181,192.168.8.147:21...
分类:其他好文   时间:2015-12-26 11:33:51    阅读次数:182
Leetcode: Move Zeroes
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, give...
分类:其他好文   时间:2015-12-26 11:33:44    阅读次数:128
四舍五入保留两位小数
function toDecimal(x) { var f = parseFloat(x); if (isNaN(f)) { return; } //isNaN判断传入的数字是否有效 f = Math.round(x*100)/100; 先执行Math.round(x*100) r...
分类:其他好文   时间:2015-12-26 11:34:48    阅读次数:173
CentOS 开放端口
项目使用CentOS7作为生产环境,而CentOS7使用firewalld替代了原来的iptables。 开启端口 firewall-cmd --zone=public --add-port=80/tcp --permanent命令含义:--zone #作用域--add-port=80/tcp #添...
分类:其他好文   时间:2015-12-26 11:34:05    阅读次数:136
十分钟看透MapReduce
我们已经知道了Hadoop的三大核心模块:HDFS、MapReduce、Yarn。MapReduce是什么? MapReduce是一种编程模型,用于大规模数据集的并行计算,其主要思想就是Map(映射)和Reduce(化简)。 MapReduce的创意和灵感来源于函数式编程,在函数式编程中,m...
分类:其他好文   时间:2015-12-26 11:33:43    阅读次数:362
LeetCode - Pow(x, n)
题目:Implement pow(x, n).思路:二分法package math;public class Pow { public double myPow(double x, int n) { if (n == 0) return 1; if (n == 1)...
分类:其他好文   时间:2015-12-26 11:32:23    阅读次数:126
ural 1146. Maximum Sum
1146. Maximum SumTime limit: 0.5 secondMemory limit: 64 MBGiven a 2-dimensional array of positive and negative integers, find the sub-rectangle with t...
分类:其他好文   时间:2015-12-26 11:32:22    阅读次数:210
疯狂扩张、收缩战线,校园O2O冰火两重天
在中国,庞大的大学生群体支撑着校园互联网经济的运转,而在互联网+的经济大潮下,各类校园O2O也不断涌现出来,他们或从物流切入,或从便利店切入,或从社交切入……大量的创业者和传统企业都在开始涌向校园O2O。 从今年的资本市场来看,资本对于校园经济也是表现出了很高的热度,今年有很多校园O2O平...
分类:其他好文   时间:2015-12-26 11:30:08    阅读次数:190
Gas Station
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost...
分类:其他好文   时间:2015-12-26 11:30:08    阅读次数:163
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!