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

代码片段 8064

#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

#Shell
将恶意登陆IP添加到防火墙

#!/bin/bash #auther: 51clocker #blog: http://www.51clocker.com #email: admin@51clocker.com…

2014-11-07 667

#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 使用 OpenGL 的例子

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

2014-11-06 512

#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

#Shell
linux 下 文件更新&回滚脚本

#!/bin/sh #by airzen 20130131 filename=$1 newfilename=$filename.new bakfilename=$filename.…

2014-11-05 863

#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