首页 > 其他
EF UoC
The Repository Pattern with EF Code First & Dependency Injection in ASP.NET MVC3 Ray_Liang, 5 Jul 2011 GPL3 156.8K 8.1K 156 4.65 (58 votes) 12 3 4 54....
分类:其他   时间:2015-08-21 00:05:26    收藏:0  评论:0  赞:0  阅读:438
Lambda表达式学习(2)
在. net3. 5里面 , 委托的定义和实现被大大的简化了!使用关键字Func或Action就可以定义一个委托 , 使用拉姆达表达式就可以实现一个具体的委托.Func关键字是用来定义一个有返回值的委托 , 它一共有五个重载 , 我们介绍其中的三个1 public delegate TResult ...
分类:其他   时间:2015-08-21 00:05:07    收藏:0  评论:0  赞:0  阅读:291
YII2.0 Activeform表单组件的使用方法
Activeform文本框:textInput();密码框:passwordInput();单选框:radio(),radioList();复选框:checkbox(),checkboxList();下拉框:dropDownList();隐藏域:hiddenInput();文本域:textarea(...
分类:其他   时间:2015-08-21 00:04:07    收藏:0  评论:0  赞:0  阅读:222
虚析构函数
#include using namespace std;class A{public: A() { cout << "A create" << endl; } virtual ~A() { cout << "A delete" << end...
分类:其他   时间:2015-08-21 00:03:46    收藏:0  评论:0  赞:0  阅读:256
CRB and His Birthday 01背包 + 多重背包
CRB and His Birthday题目抽象:背包问题,这里x个物品的价值是a * x + b (x > 0) or 0 (x = 0).分析:将物品按购买数量分类 1. 1件, 2 多件(>1). 对于一件的情况是01背包。 ...
分类:其他   时间:2015-08-21 00:03:16    收藏:0  评论:0  赞:0  阅读:244
Qt中设置widget背景颜色/图片的注意事项(使用样式表 setStyleSheet())
在Qt中设置widget背景颜色或者图片方法很多种:重写paintEvent() , 调色板QPalette , 样式表setStyleSheet等等。 但是各种方法都有其注意事项,如果不注意则很容易陷入麻烦中。1:setStyleSheet() 这个函数我一直很喜欢使用,因为只要写一句就可以实现效...
分类:其他   时间:2015-08-21 00:03:06    收藏:0  评论:0  赞:0  阅读:324
HackerRank Ice Cream Parlor
传送门Ice Cream ParlorAuthored bydheerajonMar 21 2013Problem StatementSunny and Johnny together haveMdollars they want to spend on ice cream. The parlor ...
分类:其他   时间:2015-08-21 00:02:46    收藏:0  评论:0  赞:0  阅读:290
HashMap
HashMap的put() 尊重:hashCode(); ==; equals()HashMap的remove() 尊重:hashCode(); == ; equals()HashMap的containsKey() 尊重:hashCode() ;== ;equals()HashMap的get() 尊...
分类:其他   时间:2015-08-21 00:01:36    收藏:0  评论:0  赞:0  阅读:275
UVA 10817 - Headmaster's Headache
题目:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1758状态压缩的DP,dp[i][st]表示状态为st考虑后面i个人所有人最...
分类:其他   时间:2015-08-21 00:01:17    收藏:0  评论:0  赞:0  阅读:232
HDU 4035Maze(树状+概率dp,绝对经典)
题意:给你n个节点的树,从1节点开始走,到每个节点都有三种情况,被杀死回到1节点,找到隐藏的出口出去,沿着当前节点相邻的边走到下一个节点,给出每个节点三种情况发生的概率分别为ki,ei,1-ki-ei,求找到出口时已经过的边数的期望。分析:用树状dp考虑问题。当节点是叶子节点时它只是向父节点走,非叶...
分类:其他   时间:2015-08-21 00:00:56    收藏:0  评论:0  赞:0  阅读:225
HDU 5023 A Corrupt Mayor's Performance Art 线段树区间更新+状态压缩
Link: http://acm.hdu.edu.cn/showproblem.php?pid=5023 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 usi...
分类:其他   时间:2015-08-21 00:00:36    收藏:0  评论:0  赞:0  阅读:278
七夕许愿
回首已忘来处,前眺不知归途,生命已入初夏,心沉入寂静之路,年年的春秋冬夏依然绚丽芬芳,美丽如初,纵使短暂。自然的美啊,心愿同一起去了。更爱七夕的传说,所有爱着和被爱的人都会受到仙女的祝福。
分类:其他   时间:2015-08-20 23:59:26    收藏:0  评论:0  赞:0  阅读:362
逆元模板
// 扩展欧几里得做法; 1 #include 2 #include 3 #include 4 #include 5 #define ll long long 6 using namespace std; 7 8 ll ex_gcd(ll a,ll b,ll &x,ll &y)//扩展欧几里得(扩....
分类:其他   时间:2015-08-20 23:59:16    收藏:0  评论:0  赞:0  阅读:353
QT的父子Widget之间消息的传递(如果子类没有accept或ignore该事件,则该事件会被传递给其父亲)
以前我一直以为:在父widget上摆一个子widget后,当click子widget时:只会进入到子widget的相关事件处理函数中,比如进入到mousePressEvent()中, 而不会进入到父widget的对应事件处理函数中。毕竟:click的是子widget,其遮挡住了父widget,从而父...
分类:其他   时间:2015-08-20 23:59:06    收藏:0  评论:0  赞:0  阅读:319
hdu4812 D Tree
树上的点分治。首先为了避免超时预处理逆元,对于x( 2 #include 3 #include 4 #pragma comment(linker,"/STACK:102400000,102400000") 5 6 using namespace std; 7 typedef __i...
分类:其他   时间:2015-08-20 23:58:56    收藏:0  评论:0  赞:0  阅读:344
grunt之easy demo
首先安装grunt-clicnpm install -g grunt-cli接下来创建package.json,内容如下 { "name": "demo", "file": "zepto", "version": "0.1.0", "description": "demo", "licen...
分类:其他   时间:2015-08-20 23:58:46    收藏:0  评论:0  赞:0  阅读:339
poj1988 Cube Stacking(并查集
题目地址:http://poj.org/problem?id=1988题意:共n个数,p个操作。输入p。有两个操作M和C。M x y表示把x所在的栈放到y所在的栈上(比如M 2 6:[2 4]放到[1 6]上为[2 4 1 6]),C x为输出x下面有几个数。思路:并查集每个集合以栈最下面的数为根,...
分类:其他   时间:2015-08-20 23:58:08    收藏:0  评论:0  赞:0  阅读:338
MR-Job提交流程
1.一个标准 MR-Job 的执行入口://参数 true 表示检查并打印 Job 和 Task 的运行状况System.exit(job.waitForCompletion(true) ? 0 : 1);2.job.waitForCompletion(true)方法的内部实现//job.waitF...
分类:其他   时间:2015-08-20 23:57:56    收藏:0  评论:0  赞:0  阅读:520
页面跳转问题
常用http 请求状态码今天遇到一个页面跳转问题。a标签跳转时不能正常访问,但当页面回车刷新或者https时访问正常,查看request Header请求发现前者多了Referer信息。页面做了Referer验证,只有指定域名才能访问。跳转方案:1、php方式创建一个域名可以验证通过的中间跳转页,做...
分类:其他   时间:2015-08-20 23:57:37    收藏:0  评论:0  赞:0  阅读:481
threading模块
threading — Higher-level threading interface¶Source code: Lib/threading.pyThis module constructs higher-level threading interfaces on top of the lower...
分类:其他   时间:2015-08-20 23:57:17    收藏:0  评论:0  赞:0  阅读:257
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!