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

代码片段 8064

#CSS
LESS – 另类垂直居中混入类

.vertical-middle(@tag) { text-align: center!important; &:after { content: ''; display:…

css
2015-12-14 249

#Groovy
Groovy菜鸟来解决"易语言难题”

(123..329).each {if(((it+"${it*2}"+it*3).replaceAll('0','').toCharArray() as Set).size()==…

2015-12-14 409

#Groovy
给标准Java库的Math类的方法穿了件外衣

/** * */ @Typed package org.lucifer.util import static java.lang.Math.* /** * @author Luci…

2015-12-14 793

#Groovy
解决grails导出excel的中文件名乱码问题

class XlsController{ /** * 字符串编码 */ final def encode(String value,String charSet='UTF-8'){…

2015-12-14 902

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

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

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

lua
2015-12-14 351

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

tolua.cast(object,”CCSprite”) ;

lua
2015-12-14 635

#Lua
几个函数

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

lua
2015-12-14 353

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

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

2015-12-14 616

#Perl
Perl6 Bracket Match

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

2015-12-14 881

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

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

2015-12-14 900
1 56 57 58 59 60 672