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

代码片段 8064

#CSS
用css制作无图片三角形

.arrow { display:block; width:0; height:0; font-size:0; border-width:5px; border-style:sol…

css
2015-12-14 734

#Groovy
grails 发送邮件

首先在buildConfig中的plugins { compile ":mail:1.0.1" } 然后再config中配置 grails.mail.default.from = …

2015-12-14 689

#Groovy
groovy加水印

// cf. http://kyle-in-jp.blogspot.com/2008/08/java2d.html // cf. http://d.hatena.ne.jp/tos…

2015-12-14 232

#Groovy
Groovy 构建和解析 XML

<langs type="current"> <language>Java</language> <language>Groovy&…

2015-12-14 694

#Groovy
Groovy 监控 HttpClient 上传进度

/** * A utility that contains all of the client functionality needed to perform the upload…

2015-12-14 932

#Groovy
groovy使用SwingBuilder构建swing

import groovy.swing.SwingBuilder import javax.swing.* def swingBuilder = new SwingBuilder(…

2015-12-14 141

#Java
JAVA实现精确的加减乘除代码

package lc.util; import java.math.BigDecimal; public class MathHelper { private static fin…

2015-12-14 180

#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 611

#Perl
perl正则典型应用

#!/usr/bin/perl use strict; use warnings; my $sql="select name,age from user where id=1"; …

2015-12-14 470
1 52 53 54 55 56 672