码迷,mamicode.com
首页 >  
搜索关键字:other    ( 5856个结果)
[JS] 屏蔽右键
if (window.Event) document.captureEvents(Event.MOUSEUP); function nocontextmenu() { event.cancelBubble = true event.returnValue = false; return false;... ...
分类:Web程序   时间:2017-07-06 20:41:03    阅读次数:239
19.Merge Two Binary Trees
题目描述 Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others ...
分类:其他好文   时间:2017-07-06 20:36:32    阅读次数:109
linux之shell编程select和case用法
shell里的select用法:语法:#i/bin/bash select变量in列表 do 要执行的语句 done举例:#!/bin/bash echo"WhatisyourfavouriteOS?" selectvarin"windows""Linux""GnuHurd""FreeBSD""Other"; do echo"Youhaveselected$var" done执行结果:shell里的case用法:语法:#!/..
分类:系统相关   时间:2017-07-06 18:59:02    阅读次数:215
Groovy入门(2-2)Groovy的eclipse插件安装
1、安装eclipse插件 启动eclipse,点击help -> Install New Software... 在弹出的窗口中点击:Add... Groovy插件的地址:http://dist.springsource.org/release/GRECLIPSE/e4.4/ 其他eclipse版 ...
分类:系统相关   时间:2017-07-06 12:12:43    阅读次数:193
《STL源代码剖析》---stl_deque.h阅读笔记(2)
看完,《STL源代码剖析》 stl_deque.h阅读笔记(1)后。再看代码: G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_deque.h 完整列表 /* * * Copyright (c) 1994 * Hewlett-Packard Company ...
分类:其他好文   时间:2017-07-06 11:18:41    阅读次数:157
209. Minimum Size Subarray Sum
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:其他好文   时间:2017-07-06 10:03:34    阅读次数:137
简单说struts2框架运行流程
(1)提交请求客户端通过HttpServletRequest向servlet容器(即tomcat)提交一个请求。请求经过一系列的过滤器,例如图中的ActionContextCleanUp和Other filter(SlterMesh,etc)等,最后被struts的核心过滤器FilterDispat ...
分类:其他好文   时间:2017-07-05 22:03:34    阅读次数:214
Hadoop序列化与Writable接口(一)
Hadoop序列化与Writable接口(一) 序列化 序列化(serialization)是指将结构化的对象转化为字节流,以便在网络上传输或者写入到硬盘进行永久存储;相对的反序列化(deserialization)是指将字节流转回到结构化对象的过程。 在分布式系统中进程将对象序列化为字节流,通过网 ...
分类:其他好文   时间:2017-07-05 20:05:51    阅读次数:214
C#实现执行数据库事务案例
我是实际项目来拆出来做的案例,场景是比如我们在做电商网站时,在创建订单时的一系列操作,通常在创建订单时我们需要数据表的操作有:订单的表头(主表)、订单的详细、清空购物车、甚至是修改优惠劵的状态(在使用了优惠劵的时候),下面直接把执行事务的主方法直接贴出来: 接下来贴出两个个详细的方法作参考: ...
分类:数据库   时间:2017-07-04 18:14:53    阅读次数:206
【bzoj2780】[Spoj]8093 Sevenk Love Oimaster 广义后缀自动机
题目描述 Oimaster and sevenk love each other. 输入 输出 样例输入 3 3 abcabcabc aaa aafe abc a ca 样例输出 1 3 1 题目大意 给出n个字符串和q个询问,每次询问给定的字符串在多少个字符串中出现过(为多少个字符串的子串)。 题 ...
分类:其他好文   时间:2017-07-04 09:57:22    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!