This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Is there a coffeescript way of doing this? | |
(function($, exports){ | |
# doing random stuff here | |
})(jQuery, window); | |
# Other than this: | |
( ($, exports) -> | |
# doing random stuff here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by [email protected]. | |
* Date: 2012-06-04 | |
* Time: 13:40 | |
* Desc: 自动跟随 | |
*/ | |
KISSY.add('market/scrollFollow', function(S){ | |
var D = S.DOM; | |
var E = S.Event; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(S){ | |
var _use = S.use; | |
var _add = S.add; | |
var getMappedPath = S.__getMappedPath; | |
//url映射 | |
var maps = {}; | |
//依赖关系 | |
var requires = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* Created by [email protected] | |
* | |
* 使用方式,依赖于node | |
* 1. 下载node.js, http://nodejs.org/#download | |
* 2. 在命令行下执行: | |
* node proxy.js | |
* | |
* 静态文件代理工具,基于node实现,实现原理,把a.tbcdn.cn通过host设置,转到本地 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
/** | |
* 11 12 13 14 15 | |
* 21 22 23 24 25 | |
* 31 32 33 34 56 | |
* 41 42 43 44 45 | |
* 51 52 53 54 55 | |
*/ | |
//var maps = []; | |
var log = console && console.log; |
NewerOlder