码迷,mamicode.com
首页 > 其他好文
程序集加载与反射(二):实例篇
目录:上篇:程序集加载与反射(一):基础篇Demo:下载一、Demo下面这个Demo,使用了策略模式模仿了一下插件机制。我们举个一邮件发送的例子:1、一个策略类库:Strategy,里面定义了邮件需要实现的接口:IEmailStrategy.using System;using System.Col...
分类:其他好文   时间:2015-06-30 06:36:26    阅读次数:145
LeetCode "Roman to Integer"
class Solution {public: int romanToInt(string s) { std::unordered_map hm; hm['M'] = 1000; hm['D'] = 500; hm['C'] = ...
分类:其他好文   时间:2015-06-30 06:34:48    阅读次数:105
LeetCode "Integer to Roman"
char dict[] = {'I', 'V', 'X', 'L', 'C', 'D', 'M'};class Solution { public: string pattern(int v, int level) { int offset = int(log10(l...
分类:其他好文   时间:2015-06-30 06:34:47    阅读次数:121
BLOB二进制对象(blob.c/h)
BLOB二进制对象(blob.c/h)数据结构struct blob_attr { uint32_t id_len; /** 高1位为extend标志,高7位存储id, * 低24位存储data的内存大小 */ char data[...
分类:其他好文   时间:2015-06-30 06:37:05    阅读次数:433
Minimum Depth of Binary Tree
http://oj.leetcode.com/problems/minimum-depth-of-binary-tree/This question is pretty similar to the solution of Maximum Depth of Binary Tree, the only...
分类:其他好文   时间:2015-06-30 06:34:15    阅读次数:138
HackerRank - "The Coin Change Problem"
If coin order matters, that is, each sequence is unique, the DP function is simple enough to make it 1D DP. But key is that order DOESN'T matter, so w...
分类:其他好文   时间:2015-06-30 06:34:05    阅读次数:125
UML期末复习题——2.5:System Sequence Diagram & Post-condition
UML期末复习——系统顺序图和操作协议
分类:其他好文   时间:2015-06-30 06:34:01    阅读次数:1806
!!!!OpenWrt系列教程汇总
OpenWrt FAQhttps://dev.openwrt.org.cn/wiki/faqsOpenWrt编译教程完全新手教程:openwrt编译全过程(sse)直接编译出带中文的openwrt 固件 教程,适用luci 0.10下(by zjhzzyf)刷机教程) OpenWrt刷机教程--免拆...
分类:其他好文   时间:2015-06-30 06:35:19    阅读次数:363
CentOS 6.5配置nfs服务
CentOS 6.5配置nfs服务网络文件系统(Network File System,NFS),一种使用于分散式文件系统的协议,由升阳公司开发,于1984年向外公布。功能是通过网络让不同的机器、不同的操作系统能够彼此 分享个别的数据,让应用程序在客户端通过网络访问位于服务器磁盘中的数据,是在Uni...
分类:其他好文   时间:2015-06-30 06:32:40    阅读次数:135
使用 CGContextRef 进行简单内容绘制
摘要 : CGContextRef 功能强大,我们借助它可以画各种图形。这里所举例子只是简单内容绘制,冰山一角,对此感兴趣的朋友可以举一反三,实现各种酷炫效果。效果如下:KMDrawView.h1 #import 2 3 @interface KMDrawView : UIView4 5 @endK...
分类:其他好文   时间:2015-06-30 06:34:26    阅读次数:185
MapServer
MapServer 是一个用于在互联网上显示动态地图的非常流行的开源项目,它的主要特性包括: ?1,支持显示和查询数以百计的栅格(raster)、矢量、和数据库格式。 ?2,能够运行在各种操作系统(Windows、LInux、Mac...
分类:其他好文   时间:2015-06-30 01:32:06    阅读次数:144
@SessionAttributes 注解
1.?SessionAttributes 的作用? ??? 一般而言ModelAndView中的属性作用域都是request级别,即本次请求结束,属性也随之销毁。 如果想要实现多个请求共享其某个属性,需将其保存至session @SessionAttr...
分类:其他好文   时间:2015-06-30 01:32:44    阅读次数:346
Flex开发实战(二)--Flash Builder 4.7下载和安装及破解方法
摘要:开发Flex我们需要使用Flash Builder等IDE,但是Flash Builder又不是开源的。目前Flash Builder开发工具最新的版本是4.14.1,本文章主要是讲述Flash Builder 4.7下载,Flash Builder 4.7安装,以及Flash Builder 4.7破解的方法(破解方案都是通用的),帮助一些想更好地学习Flex开发的朋友快速入门。...
分类:其他好文   时间:2015-06-30 01:31:01    阅读次数:1189
在EasyUI的DataGrid中嵌入Combobox
当选择了Combobox中的值时,只需要把将要执行的操作写在onAfterEdit(index, row, changes)函数中即可,index为编辑的行号,默认从0开始;row为被编辑单元格所在的整个行,row.列名可以获得此行此列的数据,如row.IsShow可以获得被编辑单元格所在行的IsShow列的数据。...
分类:其他好文   时间:2015-06-30 01:32:09    阅读次数:223
敏捷开发实战(二)--你真的了解Scrum吗?
随着敏捷开发越来越流行,人人都在谈敏捷,人人也都在学习scrum等敏捷开发方法。。。...
分类:其他好文   时间:2015-06-30 01:31:58    阅读次数:171
【HDOJ】1695 GCD
莫比乌斯反演简单题目。 1 /* 1695 */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #inc...
分类:其他好文   时间:2015-06-30 01:27:08    阅读次数:217
[LintCode] 最长单词
1 class Solution { 2 public: 3 /** 4 * @param dictionary: a vector of strings 5 * @return: a vector of strings 6 */ 7 vector l...
分类:其他好文   时间:2015-06-30 01:25:36    阅读次数:857
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!