var img = $("#img_id"); // Get my img elemvar pic_real_width, pic_real_height;$("") // Make in memory copy of image to avoid css issues .attr("src"...
分类:
编程语言 时间:
2014-12-05 17:14:12
阅读次数:
188
题目大意:给出两个字符串,求出这两个字符串的最长公共序列。
思路:把两个字符串合成一个,然后跑一次后缀数组,求出rank数组和height数组,之后验证是否rank临近的两个后缀在不同的串里,如果是的话就更新答案。
CODE:
#include
#include
#include
#include
#define MAX 2000100
using namespa...
分类:
编程语言 时间:
2014-12-05 15:31:09
阅读次数:
185
1、请修改alps/packages/apps/Launcher2/res/values/dimens.xml中的hotseat_cell_height值,例如修改为100;
2、请修改alps/packages/apps/Launcher2/src/com/android/launcher2/HotSeat.java中的resetLayout()方法,对主菜单图标添加title,例如:添加al...
分类:
移动开发 时间:
2014-12-05 14:19:27
阅读次数:
231
//取最小值
#define SCREEN_WIDTH MIN(CGRectGetWidth([[UIScreen mainScreen] bounds]),CGRectGetHeight([[UIScreen mainScreen] bounds]))
//取最大值
#define SCREEN_HEIGHT MAX(CGRectGetWidth([[UIScreen...
分类:
移动开发 时间:
2014-12-05 14:18:24
阅读次数:
198
问题描述:
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
基本思想:
二分法构建二差排序树。
代码:
TreeNode *subsortedArrayToBST(vector & num,int begin, int end) /...
分类:
其他好文 时间:
2014-12-04 23:18:01
阅读次数:
189
1、打开弹出窗口时把 window 作为第二个参数传入。var result = window.showModalDialog(url, window, "dialogWidth=" + width + "px;dialogHeight=" + height + "px;resizable:yes;...
分类:
其他好文 时间:
2014-12-04 23:06:05
阅读次数:
199
自定义浮动弹出框使用说明1. jquery.alert.js源代码如下:(function($){ var defaults = { width : 350, //浮动弹出框宽度 height : 200, //浮动弹出框高度 minWidth : 3...
分类:
Web程序 时间:
2014-12-04 21:20:55
阅读次数:
268
$(function () { dialog = $("#dialog-form").dialog({ autoOpen: false, height: 450, width: 500, ...
最近很受打击啊,一小伙子上门来求(拿)面(内)试(裤),说关注开源中国5年了, 问社区id,“没注册!”,关注5年未注册,我泪奔了。 我不死心继续问,你总参加过咱们的线下活动吧(因为参加线下活动,报名是要...
分类:
其他好文 时间:
2014-12-04 16:03:35
阅读次数:
176
Fixed固定位置的悬浮
* { font-size:12px; font-family:Verdana,宋体; }
html, body { margin:0px; padding:0px; overflow:hidden; }
.b { margin:0px; padding:0px; overflow:auto; }
.line0 { line-height:20px; back...
分类:
Web程序 时间:
2014-12-04 15:37:40
阅读次数:
190