/****判断图片是否构成滚动效果*/$(function(){ if($("#bar").find('img').size()*71=$("#bar").width()){ var scrollfn = function(direction,bar,callback){ b...
分类:
Web程序 时间:
2014-07-07 21:44:44
阅读次数:
422
1.统计ios开发代码,包括头文件的,终端命令进入项目目录下,命令如下find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs wc -l 列出每个文件的行数find . -name "*.m" -or -...
分类:
其他好文 时间:
2014-07-07 20:19:15
阅读次数:
254
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2014-07-07 17:30:29
阅读次数:
160
Write something like this to automatically mount system drive:/dev/sda1 /media/win-c ntfs-3gauto,rw,suid,exec,async,users,locale=zh_CN.UTF-8 0 0...
分类:
其他好文 时间:
2014-06-30 13:30:17
阅读次数:
276
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there...
分类:
其他好文 时间:
2014-06-30 13:21:00
阅读次数:
202
Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.Solution:public class Solution { public ...
分类:
其他好文 时间:
2014-06-30 12:18:25
阅读次数:
255
1、命令注入(Command Injection)PHP中可以使用下列5个函数来执行外部的应用程序或函数system、exec、passthru、shell_exec、“(单撇号,与shell_exec功能相同,如)例:提交http://www.sectop.com/ex1.php?dir=| ca...
分类:
Web程序 时间:
2014-06-30 12:10:17
阅读次数:
263
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-06-29 20:28:58
阅读次数:
183
def new # @foo = Foo.new @foos = Foo.find(:all,:conditions=>["project_id = #{@project.id}"]) @foolist = @foos.map do |f| { :id => f.id...
分类:
其他好文 时间:
2014-06-29 20:19:48
阅读次数:
437
#include#includechar *find_char(char const *source_str, char const *desc_str);int main(void){ char *source_str = "ABCDEF"; char *desc_str = "MMD...
分类:
其他好文 时间:
2014-06-29 19:32:34
阅读次数:
171