This file contains 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 AV = require('avoscloud-sdk').AV; | |
AV.Query.prototype.findAll = function () { | |
var self = this, | |
data = []; | |
self._limit = 1000; | |
self._order = 'createdAt'; | |
return loop(avpromise(0), function (skip) { | |
self._skip = skip; |
This file contains 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 parseString = require('xml2js').parseString; | |
var fs = require('fs'); | |
var _ = require('underscore'); | |
require.extensions['.xml'] = function (module, filename) { | |
module.exports = fs.readFileSync(filename, 'utf8'); | |
}; | |
var zh = require("./LocList-zh.xml"); | |
var en = require("./LocList-en.xml"); |
This file contains 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
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"arrowFunctions": false, // enable arrow functions | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"classes": false, // enable classes | |
"defaultParams": false, // enable default function parameters | |
"destructuring": false, // enable destructuring |
This file contains 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
// development error handler | |
// will print stacktrace | |
if (app.get('env') === 'development') { | |
app.use(function(err, req, res, next) { | |
res.status(err.status || 500); | |
function err2JSON (err) { | |
var obj = JSON.parse( | |
JSON.stringify(err, Object.getOwnPropertyNames(err)) |
This file contains 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
table { | |
table-layout: fixed; | |
} | |
td { | |
overflow:hidden; text-overflow: ellipsis; | |
} |
This file contains 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
set "previousMatchPattern ((?!last)(prev(ious)?|newer|back|«|less|<|‹|上一页| )+)" | |
set "nextMatchPattern ((?!first)(next|older|more|>|›|»|forward|下一页| )+)" |
This file contains 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
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background and the font Inconsolata. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# | |
# http://ysmood.org/wp/2013/03/my-ys-terminal-theme/ | |
# Mar 2013 ys | |
# this custom theme add node version | |
# Sep 2016 dontaire |
This file contains 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
_.mixin({ | |
'duplicate': (array) => _.filter(array, function (value, index, iteratee) { | |
return _.includes(iteratee, value, index + 1) | |
} | |
}); |
OlderNewer