`
wxinyu
  • 浏览: 7000 次
文章分类
社区版块
存档分类
最新评论
文章列表
1. 项目管理的能力 给一个产品经理的构想文档 , 让他规划开发工期   2. 文字表达的能力 看他的博客 , 或者, 让他写某项东西的文档   3. 快速学习的能力 给一段没有文档, 只有example的代码库, 让他使用   4. 理解产品的能力 让其观察一个产品, 让他列出存在的问题(和解决方案) , 以及可以去做的事情  
现要求能在浏览器上直接拖放一个文件夹实现批量上传   Html5规范还不支持但是目前chrome >= 21 浏览器支持   现在文件的拖放上传采用的是jquery-filedrop.jshttps://github.com/weixiyen/jquery-filedrop这个不支持文件夹 我把这个做了改进,可以支持文件夹。   原先代码: function drop(e) { if( opts.drop.call(this, e) === false ) return false; files = e.dataTransfer.fil ...
      .all IE{property:value\9;} .gte IE 8{property:value\0;} .lte IE 7{*property:value;} .IE 8/9{property:value\0;} .IE 9{property:value\9\0;} .IE 7{+property:value;} .IE 6{_property:value;} .not IE{property//:value;} IE 5 以上版本识别:<!--[if IE]> … <![endif]--> 仅某一版本 IE 可以识别 ...
最近在做一个贴图字段,要求是直接在浏览器上粘贴图片,显示并上传到服务器。 以下是几个比较好的demo大家可以看看 http://snag.gy http://pasteboard.co http://clipi.ca 显示粘贴的图片可以参考这个实现: http://joelb.me/blog/2011/code-snippet-accessing-clipboard-images-with-javascript   如果要实现上传其实也很简单,把图片的base64编码传到服务器,在转换成图片。 这个是用python写的base64编码转图片  import base ...
# -*- encoding:utf-8 -*- import re def get_pattern(query): items = [] for pstr in re.split('\s+', query): sub_pstr = re.sub('^[\*\?\+]', '', pstr) if sub_pstr: items.append(sub_pstr) return '(?i)%s' % '|'.join(items) def highlight(text, query): query = ...
# -*- encoding:utf-8 -*- #================================== # 当前文件所在文件夹下所有以JC打头的文件 #================================== import os if __name__ == '__main__' : # 为所有文件第一行加上 # -*- encoding:gbk -*- folder_path = os.path.dirname(__file__) files = os.listdir(folder_path) fo ...
  # 把datetime转成字符串 def datetime_toString(dt): return dt.strftime("%Y-%m-%d-%H") # 把字符串转成datetime def string_toDatetime(string): return datetime.strptime(string, "%Y-%m-%d-%H") # 把字符串转成时间戳形式 def string_toTimestamp(strTime): return time.mktime ...
Redis提供了丰富的命令(command)对数据库和各种数据类型进行操作,这些command可以在Linux终端使用。 官网命令列表:http://redis.io/commands (英文) 1、连接操作相关的命令 quit:关闭连接(connection) auth:简单密码认证 2、对va ...
Global site tag (gtag.js) - Google Analytics