Skip to content

Instantly share code, notes, and snippets.

. ~/bin/z/z.sh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# Set CLICOLOR if you want Ansi Colors in iTerm2
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# Set colors to match iTerm2 Terminal Colors
### assets
<link href="http://g.assets.daily.taobao.net/ju/h5plat/1.0.0/cssCombo.css" rel="stylesheet">
<script src="http://g.assets.daily.taobao.net/ju/h5plat/1.0.0/jsCombo.js"></script>
### TMS区块
http://act.ju.taobao.com/go/rgn/juhuasuan/h5plat/saintaudioplay.php
/*
* grunt-init-jquery
* https://gruntjs.com/
*
* Copyright (c) 2013 "Cowboy" Ben Alman, contributors
* Licensed under the MIT license.
*/
// Basic template description.
exports.description = 'Create Wap RC';
<h3>任务简介:</h3>
<h4>目标:</h4>
<div class="ct">1. 6 小时内召齐 7 位好友,即可开启任务。如果 6 小时内召集的人数不足,任务就得关闭咯。</br>2. 这是一场两天不间断的友谊赛,靠团体协作的力量达成 <em class="J_TaskTarget"></em> 分钟的总 bong 时,平均每人每天要贡献半个小时噢。</div>
<h4>任务报酬:</h4>
<div class="ct">
1. 成功完成这两天的挑战,团队里每个成员都能获得 1 个活跃点。</br>
2. 出力最多的伙伴可以再获得 1 个活跃点,感谢你对团队的付出。
</div>
<script type="text/javascript" src="http://g.tbcdn.cn/mtb/??lib-mtop/0.5.12/mtop.debug.js,lib-share/0.1.1/share.debug.js,zepto/1.0.4/zepto.debug.js,lib-windvane/1.2.3/bridge.debug.js,lib-windvane/1.2.3/api.debug.js"></script>

WindVane Bridge API (v1.2.2)

提供与客户端通讯的机制。支持WindVane SDK v2.2 以上版本。

WindVane 独有UA

windvane 在客户端中,会将原始UA后面跟上 WindVane/WindVaneSDK的版本号,你可以通过判断UA的方式来检查环境 其中,淘宝主客户端1212版本(IOS 3.4.5 ANDROID 3.9.5)后格式为

@sandywu
sandywu / simple-storage.js
Created November 27, 2013 06:18
通用storage
/**
* 本地存储
* @author etai
*/
Ju.add("sys.simpleStorage", function(J) {
var simpleStorage = function() {
var oStorage,
inited = false,
EMPTY_FUNC = function() {},
_setItem = EMPTY_FUNC,
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="GBK"/>
<title>聚宝盆</title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
<meta content="yes" name="apple-mobile-web-app-capable"/>
<meta content="black" name="apple-mobile-web-app-status-bar-style"/>
<meta name="format-detection" content="telephone=no"/>
<link href="http://g.tbcdn.cn/ju/wap/1.0.2/icon/icon144.png" rel="apple-touch-icon-precomposed">
html, body {
height:100%;
}
.wrapper {
background:#e6e6e6
height:100%;
}
<div class="wap-blank">
<div class="blank-logo"></div>
<h5 class="blank-status">活动已过期...</h5>
</div>