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

代码片段 8064

#Groovy
页面循环分块显示

<g:each in="${subjectInstance.articles}" var='article' status="i"> <g:if test="${…

2015-12-14 166

#Groovy
在Groovy中调用Groovy脚本

package com.test println a b = a * 2 c = { -> println a * 3 }

2015-12-14 471

#Lua
模块依赖排序,保证依赖模块不会先于被依赖模块而注册,50行lua。

--[[ Date: 2014-8-1 Licence: MIT Author: <leoma@credosemi.com> <xfguo@credosemi.c…

lua
2015-12-14 350

#Lua
cocos2d-x中Lua类型强转问题

tolua.cast(object,”CCSprite”) ;

lua
2015-12-14 634

#Lua
几个函数

-- --常用公共函数库 -- local FUNC = {} --to int FUNC.int = function(sString) local iNum = tonumbe…

lua
2015-12-14 352

#Perl
blast结果的m7格式转换为m8格式

while (<>) { if (/Iteration_query-def/) { />(.*?)</; $out1=$1; } if (/Hit_def/…

2015-12-14 612

#Perl
Perl6 Bracket Match

#!/usr/bin/env perl6 my \stdin = $*IN; my $count = ~stdin.get(); my %table = 93 => 91, …

2015-12-14 879

#Perl
根据一个ID列表文件来从一个fasta文件里面挑取符合要求的序列

#!/usr/bin/perl -w if( @ARGV != 2 ) { print "Usage: we need two files\n"; exit 0; } my $ID…

2015-12-14 899

#Perl
通过Code2HTML将源代码文本转换成HTML

#转换整个文件 code2html -l java Test.java test.html #转换代码片段 code2html -p test.html #test.html &l…

2015-12-14 604

#Perl
文本生成表格

package Tools::Text::Format::FormTidy; use Exporter; our @ISA = qw(Exporter); our @EXPORT_…

2015-12-14 240

#Perl
magic square(幻方、宫格)解法实现(全)

#this is for solving the problem of magic square #!/usr/bin/perl -w use strict; #input a n…

2015-12-14 146

#Perl
perl实现端口扫描

#! /usr/bin/perl use threads; use IO::Socket::INET; use strict; my @openport; sub scan{ my…

2015-12-14 759
1 41 42 43 44 45 672