首页 软件开发 代码片段 ( Page 660 )

代码片段 8064

#Python
Python3 读取文本文件插入到Mysql数据库

# -*- coding:utf8 -*- #读取冰箱数据并插入到数据库 import time,os,glob,mysql.connector def formatTime(mi…

2014-11-07 857

#Python
解析jquery param

# -*- coding: utf-8 -*- ''' orgin from https://bitbucket.org/k_bx/jquery-unparam now more …

2014-11-07 277

#Ruby
Ruby 一个简单的 SSH 客户端

require 'rubygems' require 'net/ssh' Net::SSH.start('example.com', :username=>'userName…

2014-11-07 693

#Ruby
ruby decryption

#author linxu #decrypt the message of cipher.txt module RubyTrain SPLIT_KEY = ":" class De…

2014-11-07 746

#Ruby
Ruby 使用 OpenGL 的例子

require "opengl" require "glut" $light_diffuse = [1.0, 0.7, 0.7, 1.0] $light_position = [1…

2014-11-06 512

#SQL
Oracle的定时器使用示例

--Oracle定时job --数据库执行此脚本时时,请确保只执行一次,否则会引发错误! declare job_id number; begin dbms_job.submit(…

sql
2014-11-06 963

#Python
PyQt progress bar

#!/usr/bin/env python # --*--codig: utf8 --*-- from PyQt4 import QtGui from PyQt4 import Q…

2014-11-06 329

#Ruby
Ruby 使用 FTP 上传文件

require 'net/ftp' ftp = Net::FTP.new('ftp.domain.com') ftp.passive = true ftp.login ftp.ch…

2014-11-05 929

#Shell
利用开源工具处理nginx日志并定期生成html报告查看

#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export…

2014-11-05 538

#Shell
PDM注解的生成

'****************************************************************************** '* File: c…

2014-11-05 872

#Shell
bat文件直接进入某个盘符目录

@echo off cd\ e: cd Python33 dir CMD

2014-11-05 245

#APS/Basic
用VBScript实现Zip压缩目录中的所有文件

On Error Resume Next Dim objFSO,sourcepath,targetpath,targetfile Function GetSourceFile(pa…

2014-11-05 512