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

代码片段 8064

#Groovy
哦,妹子图,高清大图流量爆棚-Groovy

@Grab(group='org.ccil.cowan.tagsoup', module='tagsoup', version='1.2' ) def tagsoupParser …

2015-12-14 578

#Groovy
Groovy @Vetoable 的用法

import java.beans.* import groovy.beans.Vetoable class Trumpetist { @Vetoable String name …

2015-12-14 722

#Groovy
grails中配置ehcache

在DataSource中配置hibernate二级缓存,采用ehcache dataSource{ .... ... } //hibernate配置 hibernate { cac…

2015-12-14 615

#Groovy
以 groovy 的方式实现接口

//如果接口只有一个方法,可以通过闭包,用下面的方式来实现: // a readable puts chars into a CharBuffer and returns the …

2015-12-14 1,009

#Groovy
使用 StreamingMarkupBuilder 创建 XML

def comment = "<![CDATA[<!-- address is new to this release -->]]>" def builde…

2015-12-14 187

#Java
java获取年份的第一天和最后一天

package com.dada.test; import java.text.SimpleDateFormat; import java.util.Calendar; impor…

2015-12-14 336

#Lua
skynet的ssdb驱动

local skynet = require "skynet" local socket = require "socket" local socketchannel = requ…

lua
2015-12-14 113

#Lua
Lua调用C,C++函数案例

#include <iostream> #include <vector> #include <lua.hpp> #include "type.…

lua
2015-12-14 541

#Perl
批量下载书籍,慎用

use utf8; binmode(STDIN, ':encoding(utf8)'); binmode(STDOUT, ':encoding(utf8)'); binmode(S…

2015-12-14 258

#Perl
simple http proxy

#!env perl use AnyEvent::Socket; use AnyEvent::Handle; use Data::Dumper; use LWP; my $cv =…

2015-12-14 308

#Perl
perl爬虫收集当前页面所以链接地址,不需要用HTML::LinkExtor模块

use LWP::Simple; use URI::URL; my @collect_url=(); my $url = "http://pngu.mgh.harvard.edu/…

2015-12-14 188

#Perl
使用perl socket 在WINDOWS DHCP服务上 实现ip绑定

#!/usr/bin/perl #server.pl #use strict; use Socket; use constant IPADDR => '192.168.1.2…

2015-12-14 996
1 78 79 80 81 82 672