这种方法不算新,可是很少人用,也很少人能想得到。data:类似于javascript.:,在很大程度上,可以完成javascript的工作.举一个例子:进行XSS测试时,发现javascript与script等关键字都被过滤了(现在一般有点XSS意识的管理员都懂得过滤这两个关键字)。可用下面的语句:...
分类:
其他好文 时间:
2014-10-10 17:00:34
阅读次数:
174
写Scheme代码时,经常要判断表的长度。长度为0时一个操作,长度为1时,另一个操作,长度为2时,第三种操作 ...。最容易想到的方法是(define (length=? m l) (= m (length l)))但这个 length=? 很低效。它要先计算表的长度n。length 的复杂度是O....
分类:
其他好文 时间:
2014-10-10 16:26:40
阅读次数:
175
Mit-Scheme不支持syntax-case, 只能用它的er-macro-transformer来编写。Mit-Scheme的宏系统比较低级,不支持模式匹配和literal。使用pmatch能得到一个可用的模式匹配,为了简洁这里使用了pmatch,没有pmatch也可以编写同样的宏,但啰嗦一点...
分类:
其他好文 时间:
2014-10-09 23:10:47
阅读次数:
223
有三个辅助关键字in, from和to能够 break和continue语法有三种(for n in '(1 2 3 4 5 6 7 8 9 10) (if (> n 8) (break #f)) (if (even? n) (continue #f)) (display n) (displ...
分类:
其他好文 时间:
2014-10-09 22:10:47
阅读次数:
216
就Android平台而言,URI主要分三个部分:scheme, authority and path。其中authority又分为host和port。格式如下:scheme://host:port/path举个实际的例子:content://com.example.project:200/folde...
分类:
移动开发 时间:
2014-10-08 17:24:05
阅读次数:
226
ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionThe columnar encryption scheme scrambles the letters in a message (or plaintext) using a ...
分类:
其他好文 时间:
2014-10-05 18:01:18
阅读次数:
245
#lang scheme
( define li '( 1 2 3 4 ) )
( define-syntax set-car!
( syntax-rules ()
( ( set-car! li elem )
( set! li ( cons elem ( cdr li ) ) ) ) ) )
( set-car! li '( a b ) )
#...
分类:
其他好文 时间:
2014-10-05 17:27:48
阅读次数:
189
1036. Crypto ColumnsConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionThe columnar encryption scheme scrambles the letters in a message (or...
分类:
其他好文 时间:
2014-10-03 19:15:05
阅读次数:
250
引入 This paper presents a simple but effective coding scheme called Locality-constrained Linear Coding (LLC) in place of the VQ coding in traditional S...
分类:
其他好文 时间:
2014-10-03 17:30:14
阅读次数:
599
VS代码生成工具ReSharper提供了丰富的快捷键,可以极大地提高你的开发效率。安装ReSharper后首次启动Visual Studio时,会出现一个名为ReSharper Keyboard Scheme的对话框,如下图所示:选择对话框提供的三个选项之一后的任何时候,您可以配置单独的键盘快捷键。...
分类:
其他好文 时间:
2014-09-28 14:00:52
阅读次数:
334