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
zh-cn: | |
errors: | |
messages: | |
not_found: "没有找到" | |
already_confirmed: "已经确认" | |
not_locked: "没有锁定" | |
devise: | |
failure: | |
unauthenticated: '继续操作前请注册或者登录.' | |
unconfirmed: '请先激活您的帐号' |
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
'[10,10,"asdf\\"a,s\\"df","的位图要求asdf",10,10]'.match(/(\d+(?=,?))|(('|")(.+?[^\\]\3)(?=,?))/g); |
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
<script src="jquery.js"></script> | |
<script src="modernizr.js"></script> | |
<script> | |
$(document).ready(function(){ | |
if(!Modernizr.input.placeholder){ | |
$('[placeholder]').focus(function() { | |
var input = $(this); |
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
Using Thin and starting on port 6000 instead of 9393 (default): | |
shotgun --server=thin --port=6000 config.ru |
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
豆瓣API key | |
你的豆瓣 API key: | |
074048b0e693229415c0da12b3b967bc | |
API key 的详细信息 · · · · · · | |
私钥:f9d8832f4b383bce -请保护好你的私钥 | |
应用名称:Test | |
应用url:http://localhost | |
创建时间: 2012-03-04 |
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
ni hao a |
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
wrapError = (onError, model, options) -> | |
(resp) -> | |
if onError? | |
onError(model, resp, options); | |
else | |
model.trigger('error', model, resp, options) | |
apply: (name = null, options = {}) -> | |
name ||= @get('name') | |
success = options.success |
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
wrapError = (onError, model, options) -> | |
(resp) -> | |
if onError? | |
onError(model, resp, options); | |
else | |
model.trigger('error', model, resp, options) | |
apply: (name = null, options = {}) -> | |
name ||= @get('name') | |
success = options.success |
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
export POW_TIMEOUT=10000 | |
export POW_WORKERS=3 |
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
export POW_TIMEOUT=10000 | |
export POW_WORKERS=3 |
OlderNewer