Skip to content

Instantly share code, notes, and snippets.

View czy88840616's full-sized avatar
🎯
Focusing

Harry Chen czy88840616

🎯
Focusing
  • Taobao.com
  • Hangzhou, Zhejiang, China
View GitHub Profile
/*ucool filePath=http://10.249.196.92:80/apps/auctionplatform/20111110/channel/pub/tiantian/tiantian.js?env=daily*/
/**
* @fileoverview 拍卖计时器
* @author 易敛<yilian.wj@taobao.com>
* @date 12-1-8
*/
KISSY.add('Countdown', function(S, DOM, Switch) {
var api = 'http://paimai.taobao.com/json/get_legacy_auction.htm?';
function Countdown(container, config) {
@czy88840616
czy88840616 / request.json
Created August 9, 2012 13:24
服务平台 demo json
from:unity
m:changeaddress //还有可能是changeamount、changebundle、changefare、changeservice
ordersData:
{
"divisionCode": "330106",
"oid": "b_13926520622", //changeservice时变化的订单
@czy88840616
czy88840616 / gist:4108658
Created November 19, 2012 02:28
b_c proxy
API: http://cart.taobao.com/proxy.do
data: {
B:{xxx,type:'delete'},
C:{xxx,type:'delete'}
}
return
{
@czy88840616
czy88840616 / error.txt
Created January 16, 2013 09:05
OOM log
Exception in thread "UnicornRebuild" Exception in thread "http-bio-8000-exec-3" java.lang.OutOfMemoryError: Java heap space
at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:334)
at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:392)
at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:403)
at org.apache.velocity.runtime.parser.Parser.<init>(Parser.java:70)
at org.apache.velocity.runtime.RuntimeInstance.createNewParser(RuntimeInstance.java:1130)
at org.apache.velocity.runtime.ParserPoolImpl.initialize(ParserPoolImpl.java:50)
at org.apache.velocity.runtime.RuntimeInstance.initializeParserPool(RuntimeInstance.java:1103)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:266)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:646)
@czy88840616
czy88840616 / 一些vm转json的例子.md
Last active December 11, 2015 20:18
一些vm变成json的例子

##简单变量##

{
#if($errorMsg)
    status:false,
	errorMsg:$errorMsg
#else
    status:true,
	userNick:$!userNick
#end
@czy88840616
czy88840616 / if.json
Last active December 14, 2015 13:49
velocityjs template sets
{
"result":{
"isMemberCart":"$result.isMemberCart()",
"shopId":"$result.shopId"
}
}
@czy88840616
czy88840616 / moutxt
Last active December 14, 2015 18:09
# Mou
![Mou icon](http://mouapp.com/Mou_128.png)
## Overview
**Mou**, the missing Markdown editor for *web developers*.
### Syntax
@czy88840616
czy88840616 / prd.md
Last active December 15, 2015 17:49
assets代理需求描述

需求调查

用于在前段开发阶段或者调试阶段进行快速处理assets的工具

基本的功能为:

  • 代理本地Assets
  • 代理URL资源

其他可能会用到的额外辅助功能:

@czy88840616
czy88840616 / test1.vm
Last active December 15, 2015 23:58
问题:从模板中推导出正确的json结构
#set($orderList = $!{result.orderList})
#foreach($order in $!orderList)
#set($shop = $!{order.shop})
$!{shop.singleItemId}
#end

时间:2013.4.13

####行程1

  • 目的地:萧山湘湖
  • 活动内容:桌游,羽毛球,环湖徒步,爬山,烧烤等
  • 出发集合地:创业1F/武林广场地铁口/湘湖地铁站
  • 出发时间:9点(创业1F)
  • 其他:午饭待定(聚餐 or 烧烤 or 自带)