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

代码片段 8064

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

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

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

2015-12-14 174

#Perl
Perl6 Net::FTP Sample

#!/usr/bin/env perl6 use Net::FTP; my @locals = ( "/update/", ); my @remotes = ( "/usbip/"…

2015-12-14 547

#Perl
在window平台下自动截屏

use Win32::Clipboard; use Win32::GuiTest qw/SendKeys/; while(1) { my @time = localtime(tim…

2015-12-14 262

#Perl
localtime

#!/usr/bin/perl -w #from 1970-1-1 to now, total seconds. my $time = time(); my $local_time…

2015-12-14 1,003

#Perl
格林高丽日期与普通日期的互相转换脚本

#!/usr/bin/perl #Caution: The following program doesnot provide ANY WARRANTY for commercia…

2015-12-14 829

#Perl
管理每台服务器的信任关系

#!/usr/bin/env perl -w #Description: This script is for looking up,adding,deleting user ce…

2015-12-14 249

#Perl
计算2个字符串的相似距离(采用Levenshtein distance)

# -------------------------------------------------------------------- # function: Return …

2015-12-14 396
1 67 68 69 70 71 672