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

代码片段 8064

#CSS
CSS的div块各种边框

<div>方形框</div> <div class="rounded">圆角形框</div> <div class="asym…

css
2015-12-14 407

#CSS
css3小萌物弹跳跳效果

<div class="ball"></div>

css
2015-12-14 923

#CSS
div+css背景渐变色代码

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

css
2015-12-14 568

#Groovy
groovy实现的简易tree命令

path = "." as File if (args) { path = args[0] as File } printDir path,0 def printDir(File …

2015-12-14 655

#Groovy
用 Gretty 编写一个简单的 HTTP 服务器【Groovy版】

/* * Copyright 2009-2010 MBTE Sweden AB. * * Licensed under the Apache License, Version 2.…

2015-12-14 222

#Groovy
grails导出excel

/** * 构建excel * @param block 闭包,封装构建逻辑 */ def build(dataList,titleList,out,Closure block){…

2015-12-14 994

#Groovy
Top n 动态查询

def bjSectionInstance = BjSection.get(params.id) if (!bjSectionInstance) { flash.message =…

2015-12-14 742

#Groovy
在 Gwitter 中添加 File 菜单

import groovy.swing.SwingBuilder import javax.swing.* import java.awt.* class Gwitter{ sta…

2015-12-14 170

#Lua
[LUA]分布式计算中任务拓扑调度

local DAG = { vset = {} } function DAG.addVertex(G, v) assert(v ~= nil, "cannot add nil as…

lua
2015-12-14 149

#Lua
单例代码

Singleton = {}; local _instance; function Singleton.getInstance() if not _instance then _i…

lua
2015-12-14 578

#Lua
Web 开发例子

file = 'index.lua' if headers.uri ~= '/' then file = headers.uri end local fexists = file_…

lua
2015-12-14 612

#Perl
perl的ftp模块,远程操作linux服务器

use Win32::Internet; $I = new Win32::Internet(); $host = "服务器IP地址"; $user = "用户名"; $pass =…

2015-12-14 174
1 68 69 70 71 72 672