代码片段
文章平均质量分 50
mrbrecht
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
shell
#!/bin/bash##for get the value of the command free #for get the value of the command free with no parafunction forFreeValueOfFreeWithNothing (){ freeString=`free` freeStringLen原创 2018-01-01 16:32:03 · 201 阅读 · 0 评论 -
ffmpeg ,切割视频
都他妈瞎写,我也瞎写,谁不会啊: ffmpeg -ss 0:1:30 -t 0:0:20 -i C:\Users\Administrator\Desktop\work\data\huaxuyin.mp4 -vcodec copy -acodec copy C:\Users\Administrator\Desktop\work\data\result\huaxuyin.mp4, ...原创 2018-12-13 13:13:15 · 781 阅读 · 1 评论 -
Parser
conveter.py#!/usr/bin/python-# -*- coding: UTF-8 -*-class Converter(object): # to make the respond value can be analyze in hex def toHexStr(self,s): strv="" for x原创 2018-02-01 14:35:43 · 2396 阅读 · 0 评论 -
tcp/ip三次握手与四次握手
转载 2018-01-08 16:31:54 · 193 阅读 · 0 评论 -
Convert
#!/usr/bin/python-# -*- coding: UTF-8 -*-class Convert(object): def toInt(self,s): sValue=0 for x in range(0,len(s)): if ord(s[len(s)-x-1])==48:原创 2018-01-05 18:16:39 · 274 阅读 · 0 评论 -
python 数据库导出excle 分sheet
#!/usr/bin/python# -*- coding: UTF-8 -*-import sysreload(sys)sys.setdefaultencoding('utf8')import xlwtimport MySQLdbdef export(host,user,password,dbname,table_name,outputpath): conn原创 2017-12-19 16:12:25 · 1617 阅读 · 0 评论 -
view
var lineGroups = []; var linesMaterial=null; function getLeafNodes (model, dbIds) { const instanceTree = model.getData().instanceTree; dbIds = dbIds || inst原创 2018-01-02 18:32:21 · 205 阅读 · 0 评论 -
guid()
function guid () { var d = new Date().getTime(); var guid = 'xxxx-xxxx-xxxx-xxxx'.replace( /[xy]/g, function (c) { var r = (d + Math.random() * 16) % 16 | 0;原创 2018-01-02 17:29:20 · 1129 阅读 · 0 评论
分享