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

代码片段 8064

#HTML
基于 James3.0 的临时/匿名邮箱

oschina Git : http://git.oschina.net/youshusoft/ysmailclient.git

2014-11-21 922

#Shell
响铃提示命令

#!/bin/bash ring_bell() { freq=$1; tick=$2 # 通过频率freq算周期circ circ=$(echo "scale=3; 60/$fre…

2014-11-21 860

#HTML
用HTML5 Canvas为Web图形创建特效

<!DOCTYPE html> <html> <head> <script type="text/javascript"> //Gl…

2014-11-21 186

#Shell
SVN服务器启动、重启、停止等操作脚本

#!/bin/bash case "$1" in start)         svnserve -d -r /svndata         svnport=`netstat -…

2014-11-21 117

#Shell
Powershell的Base64编解码

function ConvertTo-Base64($string) { $bytes = [System.Text.Encoding]::UTF8.GetBytes($strin…

2014-11-21 301

#APS/Basic
asp 清除html的函数

'清除HTML代码 function clearhtml(content) content=replacehtml("&#[^>]*;","",content) co…

2014-11-20 692

#Ruby
ruby四种魔法写法

def i(a='') print a end def love(a='') "Hello " + a end def you "world! \n" end i love you…

2014-11-20 949

#Ruby
Ruby菜鸟解决"易语言难题”

require 'set' p (123..329).map { |i| [i, i<<1, i*3] if Set.new("#{i}#{i<<1}#{i…

2014-11-20 183

#HTML
纯css实现 上下左右居中

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <…

2014-11-20 982

#Objective-C
关于AppDelegate里面的那些函数方法

//启动基本完成程序准备开始运行. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithO…

2014-11-19 687

#SQL
SQL取正数的小数

select 99.99-floor(99.99)

sql
2014-11-19 712