码迷,mamicode.com
首页 > 其他好文
你们还好意思再骂慈禧太后吗?
转载自 http://blog.sina.com.cn/s/blog_9b12a6df0102v5te.html媒体报道,据河北省纪检机关透露,在秦皇岛市一个贪腐的科级干部家中搜出现金1.2亿,黄金37公斤,房产手续68套。虽然如此规模的贪腐案件已经司空见惯,社会已经习以为常,但是职务如此之低的蝼....
分类:其他好文   时间:2014-12-11 23:55:00    阅读次数:385
spark1.1.0源码阅读-executor
1. launchTask1 def launchTask(2 context: ExecutorBackend, taskId: Long, taskName: String, serializedTask: ByteBuffer) {3 val tr = new Task...
分类:其他好文   时间:2014-12-11 23:54:50    阅读次数:228
OpenCV官方文档学习记录(11)
制作自己的filter,主要使用filter2D函数:先上代码: 1 #include "opencv2/opencv.hpp" 2 #include 3 #include 4 5 using namespace std; 6 using namespace cv; 7 8 int main(v.....
分类:其他好文   时间:2014-12-11 23:51:49    阅读次数:397
一统服务器桌面:安全狗新增杀毒功能
原本该360干的活,他也干了,作为安装量第一的服务器安全软件,安全狗的朋友跟我说他们的软件又增加了杀毒功能,从此以后,服务器的安全防护与病毒查杀一个软件就能搞定!这是占服务器客户端的节奏啊。360主机卫士上次跟我说要发力呢,到现在还没动静。主动查杀+静态扫描双重服务。和传统杀毒软件应用,有快速、全盘...
分类:其他好文   时间:2014-12-11 23:53:07    阅读次数:297
23种设计模式----------建造者模式
建造者模式:像是模板方法模式的升级。也叫生成器模式。将一个复杂对象的构造与它的表示分离,使得同样的构建过程可以创建不同的表示。其实就是创建一大类的东西, 但是具体又有些差异。在建造者模式中,一般有四个角色:1,Product产品类。 该类一般实现了模板方法模式。2,Builder抽象的建造者。 .....
分类:其他好文   时间:2014-12-11 23:52:18    阅读次数:260
贪心/CoderForces 228c Fox and Box Accumulation
1 #include 2 #include 3 #include 4 using namespace std; 5 int a[110]; 6 int main() 7 { 8 int n; 9 scanf("%d",&n);10 for (int i=1;i0)15 ...
分类:其他好文   时间:2014-12-11 23:53:35    阅读次数:184
MVVM下 利用反射动态创建ViewModel 实现单例
在MVVM一般情况下都会希望ViewModel 在整个应用程序中只有一份实例 传统的做法是用单例模式去实现 :public class ViewModelTest { private ViewModelTest() { ...
分类:其他好文   时间:2014-12-11 23:51:24    阅读次数:186
添加字体到项目当中
添加字体到项目当中最终显示字体的效果:步骤如下:1. 安装字体2. 修改plist文件 (UIAppFonts 复制粘贴)3. 引用字体4. 效果图源码://// ViewController.m// UIFont//// Created by YouXianMing on 14/12/11....
分类:其他好文   时间:2014-12-11 23:52:52    阅读次数:302
hasLayout属性
hasLayout是IE特有的一个属性,很多的ie下的css bug都与其息息相关。haslayout在ie8的标准模式下已经被废弃了,但是在ie7的兼容版本以及以下的版本是仍然存在的。当一个元素的hasLayout属性值为true时,它负责对自己和可能的子孙元素进行尺寸计算和定位。虽然这意味着这个...
分类:其他好文   时间:2014-12-11 23:52:21    阅读次数:294
贪心/poj 1328 Radar Installation
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 struct node 7 { 8 double right,left; 9 };10 node a[1010];11 int ans,n,d;12 b...
分类:其他好文   时间:2014-12-11 23:50:25    阅读次数:238
贪心/poj 1456 Supermarket
1 #include 2 #include 3 #include 4 using namespace std; 5 struct node 6 { 7 int value; 8 int ddl; 9 };10 node a[10010];11 bool day[10010];12 ...
分类:其他好文   时间:2014-12-11 23:50:56    阅读次数:244
3、字符编码
原文地址:http://www.admin10000.com/document/5643.html#rd?sukey=89ec730162696fd884fd95184c561ff07557a3b0ec4b6c8050e0c88356788823df5aef583239cd3a35d88d44d70...
分类:其他好文   时间:2014-12-11 23:51:17    阅读次数:270
WAMPSERVER2.2 无法启动的解决!
转:PHP版本:5.3.10XDEBG插件:php_xdebug-2.1.2-5.3-vc9.dllWAMPServer2.2用的是VC9编译的,并且需要VC9运行库支持。此问题解决方法:下载VC9运行时库,下载地址:http://www.xiazaiba.com/html/515.html Vi....
分类:其他好文   时间:2014-12-11 23:48:31    阅读次数:183
STM32 4x4矩阵键盘
可同时识别两个键值,并分别显示,用了自己的12864显示,有些注释的地方有乱码请忽略。基于STM32f103vct6.主函数:#include "Rect_key.h"#include "12864.h"int main(){ u16 keynum=0; delay_init(); ...
分类:其他好文   时间:2014-12-11 23:48:55    阅读次数:323
1334: 好老师
http://acm.csu.edu.cn/OnlineJudge/problem.php?id=13341334: 好老师Time Limit:1 SecMemory Limit:128 MB Submit:336Solved:160 [Submit][Status][Web Board]Desc...
分类:其他好文   时间:2014-12-11 23:49:13    阅读次数:259
贪心/poj 1042 Gone Fishing
1 #include 2 #include 3 using namespace std; 4 struct node 5 { 6 int d; 7 int fish; 8 int ans; 9 };10 node a[30],b[30];11 int t[30];12 in...
分类:其他好文   时间:2014-12-11 23:48:09    阅读次数:180
LeetCode Linked List Cycle
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?解题思路:突发奇想,脑洞大开。回路,自然是走到已经走过的地方,如何知道这个地方已经走...
分类:其他好文   时间:2014-12-11 23:48:27    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!