摘要: netsh interface portproxy add v4tov4 listenport=8765 listenaddress=0.0.0.0 connectaddress=172.19.24.78 connectport=1521 阅读全文
posted @ 2018-02-22 09:34 东子1573 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 必须要掌握的技术 盒子模型 定位模型 定位模型 css sprite(雪碧/css精灵)相关 css sprite 坐标定位为何为负以及定位方法 布局 圣杯布局小结 规范 BEM 常用前端规范 阅读全文
posted @ 2018-02-01 09:21 东子1573 阅读(126) 评论(0) 推荐(0) 编辑
摘要: javascript版format函数,方便实现复杂字串连接 String.prototype.format = function () { var args = arguments; console.log('args: ', args); if (typeof args[0] 'object') 阅读全文
posted @ 2018-01-31 12:09 东子1573 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 在spring boot 中有一段代码,使用的是java 1.8的语法: 在java 1.7下要如何使用呢? 阅读全文
posted @ 2017-08-18 15:57 东子1573 阅读(589) 评论(0) 推荐(0) 编辑
摘要: @echo off :: Stops commits that have empty log messages. @echo off setlocal rem Subversion sends through the path to the repository and transaction id set REPOS=%1 set TXN=%2... 阅读全文
posted @ 2017-02-09 22:05 东子1573 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 先将就着看吧。 通用单据分几种状态: 1.N——新增状态,在此状态下,可以进行修改、提交审核、作废操作 2.P——审核中,在此状态下,可以撤回审核及审核(审核有两种结果:审批通过、审批不通过。审批不属于单据操作,此处不展开) 3.Y——审核完成或已审核。此状态下,仅可取消审批 4.R——审核被驳回或审核失败。此时可以修改、提交审批、作废。 5.V——作废状态。此状态下什么也不能操作... 阅读全文
posted @ 2017-01-15 23:54 东子1573 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 其实经常需要生成一个guid,在各种场合使用。。。也简单写个小脚本实现吧。 实现下来发现速度比较慢... import uuid import sys def show_ver(): print 'guid generator v1.0, by hydonlee' def show_usage(): show_ver() print '''generate a ne... 阅读全文
posted @ 2016-05-09 17:18 东子1573 阅读(4849) 评论(0) 推荐(1) 编辑
摘要: 经常希望可以执行一个命令行N次。。。windows下没有现成的工具(有?推荐给我!) 用python写一个。。。 #!/usr/bin/evn python #coding: utf-8 """ times.py run a command line for n times """ import os import sys import string if __name__ == "_... 阅读全文
posted @ 2016-05-09 17:13 东子1573 阅读(4924) 评论(2) 推荐(0) 编辑
摘要: File1: sha1.py File2: sha1.bat ------------------ File1: sha1.py import hashlib import os,sys def CalcSha1(filepath): with open(filepath,'rb') as f: sha1obj = hashlib.sha1(); ... 阅读全文
posted @ 2016-05-07 14:35 东子1573 阅读(1873) 评论(3) 推荐(0) 编辑
摘要: 语言:PHP access_token一直要用,但每天取的数量有限制。反正2小时才过期。就想缓存一下。 File1: wx_access_token.php File2: file_cache.php --------------------------- File1: wx_access_token.php get($wx_access_token_cache_key); if... 阅读全文
posted @ 2016-04-21 22:12 东子1573 阅读(4846) 评论(1) 推荐(0) 编辑