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; |
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
(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
/** | |
* 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
# 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
/* 后端数据 */ | |
var data = { | |
"10;20;30": { | |
price: 5, | |
count: 1 | |
}, | |
"10;20;31": { | |
price: 10, | |
count: 2 | |
}, |
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
{ | |
"status": false, | |
"message": "错误提示" | |
} |
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
velocity.js joycss plum peersay kissy-gallery |
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 --harmony | |
var fs = require('fs') | |
var path = require('path') | |
var co = require('co') | |
var thunkify = require('thunkify') | |
var cwd = process.cwd() | |
var file = path.join(cwd, 'templates') | |
var dir = thunkify(fs.readdir) |
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
#!/bin/bash | |
FROM=gbk | |
TO=UTF-8 | |
ICONV="iconv -f $FROM -t $TO" | |
# Convert | |
find . -type f -name "*" | while read fn; do | |
cp ${fn} ${fn}.bak | |
$ICONV < ${fn}.bak > ${fn} | |
rm ${fn}.bak | |
done |
OlderNewer