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

代码片段 8064

#Shell
定时发送项目中错误日志邮件

################################################################################ # Copyrig…

2015-12-08 811

#Shell
Shell一键备份gitolite服务器

#!/bin/sh server=serv_addr root_dir=`pwd` echo "whill back in dir: ${root_dir}" ssh "git@$…

2015-12-08 985

#Ruby
费马素性检验

def fermat(num, iter) #num is the number to test, iter is the maximum number of iterations…

2015-12-08 786

#HTML
鼠标放在链接出现一个小框框的提示信息

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh…

2015-12-08 506

#C#
验证码C#实现代码

using System; using System.Data; using System.Configuration; using System.Web; using Syste…

c#
2015-12-08 472

#Objective-C
用单例来临时保存缓存数据

//进行缓存的步骤: //1.创建单例(返回自己或者id) static DYPDataCache *cache = nil; +(id)sharedInstance{ //保证线…

2015-12-08 651

#C#
C# 计算输入汉字的GBK编码,十六进制数输出

C# 计算输入汉字的GBK编码,十六进制数输出 using System; using System.Collections.Generic; using System.Linq;…

c#
2015-12-08 319

#Java
Android将图片保存至SD卡上

首先判断SD卡是否插入–> public String getSDPath(){ File SDdir=null; boolean sdCardExist= En…

2015-12-07 590

#Python
python 电话本管理例子

#!/usr/bin/env python #coding=utf-8 #电话本管理,可以进行添加,删除,修改,查询用户信息 import cPickle as p class T…

#APS/Basic
Base64文件编码

Function ReadBinary(FileName) Const adTypeBinary = 1 Dim stream, xmldom, node Set xmldom =…

2015-12-07 655

#Python
将100以内的质数挑选出来

""" 使用filter将100以内的质数挑选出来 """ # coding = utf-8 import math def func_get_prime(n): return f…

2015-12-07 435
1 84 85 86 87 88 672