Commit 45fdca6a authored by l2m2's avatar l2m2

upload.

parent 9c6766a4
exports.foo = function(a, b) {
return a + b;
}
var _ = require("lodash");
module.exports = exports;
\ No newline at end of file
var options = [{ "icon": "", "name": "4STD / 4STD", "rmk": "", "text": "4STD / 4STD" }, { "icon": "", "name": "1-2-1 / 4CL", "rmk": "", "text": "1-2-1 / 4CL" }, { "icon": "", "name": "2+2 / 4CT", "rmk": "", "text": "2+2 / 4CT" }, { "icon": "", "name": "4L / 4L", "rmk": "", "text": "4L / 4L" }, { "icon": "", "name": "1+2+1 / 4CT", "rmk": "", "text": "1+2+1 / 4CT" }, { "icon": "", "name": "6STD / 6STD", "rmk": "", "text": "6STD / 6STD" }, { "icon": "", "name": "6L / 6L", "rmk": "", "text": "6L / 6L" }, { "icon": "", "name": "1-4-1 / 6CL", "rmk": "", "text": "1-4-1 / 6CL" }, { "icon": "", "name": "1-2+2-1 / 6CL", "rmk": "", "text": "1-2+2-1 / 6CL" }, { "icon": "", "name": "1-1-2-1-1 / 6CL", "rmk": "", "text": "1-1-2-1-1 / 6CL" }, { "icon": "", "name": "1-2-2-1 / 6CL", "rmk": "", "text": "1-2-2-1 / 6CL" }, { "icon": "", "name": "1-2+2-1 / 6CL", "rmk": "", "text": "1-2+2-1 / 6CL" }, { "icon": "", "name": "1+2+2+1/ 6CT", "rmk": "", "text": "1+2+2+1/ 6CT" }, { "icon": "", "name": "2+2+2 / 6CT", "rmk": "", "text": "2+2+2 / 6CT" }, { "icon": "", "name": "3+3 / 6CT", "rmk": "", "text": "3+3 / 6CT" }, { "icon": "", "name": "1-1-2-1-1 / 6L", "rmk": "", "text": "1-1-2-1-1 / 6L" }, { "icon": "", "name": "8STD / 8STD", "rmk": "", "text": "8STD / 8STD" }, { "icon": "", "name": "8L / 8L", "rmk": "", "text": "8L / 8L" }, { "icon": "", "name": "2+2+2+2 / 8CT", "rmk": "", "text": "2+2+2+2 / 8CT" }, { "icon": "", "name": "1-6-1 / 8CL", "rmk": "", "text": "1-6-1 / 8CL" }, { "icon": "", "name": "1-1-4-1-1 / 8CL", "rmk": "", "text": "1-1-4-1-1 / 8CL" }, { "icon": "", "name": "1-3+3-1 / 8CL", "rmk": "", "text": "1-3+3-1 / 8CL" }, { "icon": "", "name": "1-3-3-1 / 8CL", "rmk": "", "text": "1-3-3-1 / 8CL" }, { "icon": "", "name": "1-2+2+2-1 / 8CL", "rmk": "", "text": "1-2+2+2-1 / 8CL" }, { "icon": "", "name": "1-1-2+2-1-1 / 8CL", "rmk": "", "text": "1-1-2+2-1-1 / 8CL" }, { "icon": "", "name": "1-1-2-2-1-1 / 8CL", "rmk": "", "text": "1-1-2-2-1-1 / 8CL" }, { "icon": "", "name": "1-1-1-2-1-1-1 / 8CL", "rmk": "", "text": "1-1-1-2-1-1-1 / 8CL" }, { "icon": "", "name": "4+4 / 8CT", "rmk": "", "text": "4+4 / 8CT" }, { "icon": "", "name": "1+2+1+1+2+1 / 8CT", "rmk": "", "text": "1+2+1+1+2+1 / 8CT" }, { "icon": "", "name": "10STD / 10STD", "rmk": "", "text": "10STD / 10STD" }, { "icon": "", "name": "10L / 10L", "rmk": "", "text": "10L / 10L" }, { "icon": "", "name": "1-1-6-1-1 / 10CL", "rmk": "", "text": "1-1-6-1-1 / 10CL" }, { "icon": "", "name": "1-4+4-1 / 10CL", "rmk": "", "text": "1-4+4-1 / 10CL" }, { "icon": "", "name": "1-1-1-4-1-1-1 / 10CL", "rmk": "", "text": "1-1-1-4-1-1-1 / 10CL" }, { "icon": "", "name": "1-8-1 / 10CL", "rmk": "", "text": "1-8-1 / 10CL" }, { "icon": "", "name": "1-4-4-1 / 10CL", "rmk": "", "text": "1-4-4-1 / 10CL" }, { "icon": "", "name": "1-1-2-2-2-1-1 / 10CL", "rmk": "", "text": "1-1-2-2-2-1-1 / 10CL" }, { "icon": "", "name": "1-1-2+2+2-1-1 / 10CL", "rmk": "", "text": "1-1-2+2+2-1-1 / 10CL" }, { "icon": "", "name": "1-1-1-4-1-1-1 / 10CL", "rmk": "", "text": "1-1-1-4-1-1-1 / 10CL" }, { "icon": "", "name": "1-1-1-2+2-1-1-1 / 10CL", "rmk": "", "text": "1-1-1-2+2-1-1-1 / 10CL" }, { "icon": "", "name": "1-1-1-2-2-1-1-1 / 10CL", "rmk": "", "text": "1-1-1-2-2-1-1-1 / 10CL" }, { "icon": "", "name": "1-1-1-1-2-1-1-1-1 / 10CL", "rmk": "", "text": "1-1-1-1-2-1-1-1-1 / 10CL" }, { "icon": "", "name": "1-2+2+2+2-1 / 10CL", "rmk": "", "text": "1-2+2+2+2-1 / 10CL" }, { "icon": "", "name": "1-2-2-2-2-1 / 10CL", "rmk": "", "text": "1-2-2-2-2-1 / 10CL" }, { "icon": "", "name": "4+2+4 / 10CT", "rmk": "", "text": "4+2+4 / 10CT" }, { "icon": "", "name": "5+5 / 10CT", "rmk": "", "text": "5+5 / 10CT" }, { "icon": "", "name": "2+2+2+2+2 /10CT", "rmk": "", "text": "2+2+2+2+2 /10CT" }, { "icon": "", "name": "12STD / 12STD", "rmk": "", "text": "12STD / 12STD" }, { "icon": "", "name": "12L / 12L", "rmk": "", "text": "12L / 12L" }, { "icon": "", "name": "1-10-1 / 12CL", "rmk": "", "text": "1-10-1 / 12CL" }, { "icon": "", "name": "1-2+2+2+2+2-1 / 12CL", "rmk": "", "text": "1-2+2+2+2+2-1 / 12CL" }, { "icon": "", "name": "1-1-8-1-1 / 12CL", "rmk": "", "text": "1-1-8-1-1 / 12CL" }, { "icon": "", "name": "2-8-2 / 12CL", "rmk": "", "text": "2-8-2 / 12CL" }, { "icon": "", "name": "1-1-1-2-2-2-1-1-1 / 12CL", "rmk": "", "text": "1-1-1-2-2-2-1-1-1 / 12CL" }, { "icon": "", "name": "1-2+2+2+2+2-1 / 12CL", "rmk": "", "text": "1-2+2+2+2+2-1 / 12CL" }, { "icon": "", "name": "1-1-1-2+2+2-1-1-1 / 12CL", "rmk": "", "text": "1-1-1-2+2+2-1-1-1 / 12CL" }, { "icon": "", "name": "1-1-2-2-2-2-1-1 / 12CL", "rmk": "", "text": "1-1-2-2-2-2-1-1 / 12CL" }, { "icon": "", "name": "1-1-2+2+2+2-1-1 /12CL", "rmk": "", "text": "1-1-2+2+2+2-1-1 /12CL" }, { "icon": "", "name": "1-1-1-6-1-1-1 / 12CL", "rmk": "", "text": "1-1-1-6-1-1-1 / 12CL" }, { "icon": "", "name": "1-1-4+4-1-1 / 12CL", "rmk": "", "text": "1-1-4+4-1-1 / 12CL" }, { "icon": "", "name": "1-1-1-1-4-1-1-1-1 / 12CL", "rmk": "", "text": "1-1-1-1-4-1-1-1-1 / 12CL" }, { "icon": "", "name": "1-1-1-1-1-2-1-1-1-1-1 / 12CL", "rmk": "", "text": "1-1-1-1-1-2-1-1-1-1-1 / 12CL" }, { "icon": "", "name": "6+6 / 12CT", "rmk": "", "text": "6+6 / 12CT" }, { "icon": "", "name": "6+2+4 / 12CT", "rmk": "", "text": "6+2+4 / 12CT" }, { "icon": "", "name": "1-1-1-1-2+2-1-1-1-1 / 12CL", "rmk": "", "text": "1-1-1-1-2+2-1-1-1-1 / 12CL" }, { "icon": "", "name": "1-1-1-1-2-2-1-1-1-1 / 12CL", "rmk": "", "text": "1-1-1-1-2-2-1-1-1-1 / 12CL" }, { "icon": "", "name": "14STD / 14STD", "rmk": "", "text": "14STD / 14STD" }, { "icon": "", "name": "14L / 14L", "rmk": "", "text": "14L / 14L" }, { "icon": "", "name": "1-1-1-1-1-1-2-1-1-1-1-1-1 / 14CL", "rmk": "", "text": "1-1-1-1-1-1-2-1-1-1-1-1-1 / 14CL" }, { "icon": "", "name": "1-12-1 / 14CL", "rmk": "", "text": "1-12-1 / 14CL" }, { "icon": "", "name": "1-1-10-1-1 / 14CL", "rmk": "", "text": "1-1-10-1-1 / 14CL" }, { "icon": "", "name": "1-1-1-8-1-1-1 / 14CL", "rmk": "", "text": "1-1-1-8-1-1-1 / 14CL" }, { "icon": "", "name": "1-1-1-1-2+2+2-1-1-1-1 / 14CL", "rmk": "", "text": "1-1-1-1-2+2+2-1-1-1-1 / 14CL" }, { "icon": "", "name": "1-1-1-1-2-2-2-1-1-1-1 / 14CL", "rmk": "", "text": "1-1-1-1-2-2-2-1-1-1-1 / 14CL" }, { "icon": "", "name": "1-6-6-1 / 14CL", "rmk": "", "text": "1-6-6-1 / 14CL" }, { "icon": "", "name": "2-5+5-2 / 14CT", "rmk": "", "text": "2-5+5-2 / 14CT" }, { "icon": "", "name": "1-1-1-1-6-1-1-1-1 / 14CL", "rmk": "", "text": "1-1-1-1-6-1-1-1-1 / 14CL" }, { "icon": "", "name": "2+2+2+2+2+2+2+2 / 14CT", "rmk": "", "text": "2+2+2+2+2+2+2+2 / 14CT" }, { "icon": "", "name": "1-2-2-4-2-2-1 / 14CT", "rmk": "", "text": "1-2-2-4-2-2-1 / 14CT" }, { "icon": "", "name": "16STD / 16STD", "rmk": "", "text": "16STD / 16STD" }, { "icon": "", "name": "16L / 16L", "rmk": "", "text": "16L / 16L" }, { "icon": "", "name": "1-14-1 / 16CL", "rmk": "", "text": "1-14-1 / 16CL" }, { "icon": "", "name": "1-1-6-6-1-1 / 16CL", "rmk": "", "text": "1-1-6-6-1-1 / 16CL" }, { "icon": "", "name": "8+8 / 16CT", "rmk": "", "text": "8+8 / 16CT" }, { "icon": "", "name": "1-1-1-1-8-1-1-1-1 / 16CL", "rmk": "", "text": "1-1-1-1-8-1-1-1-1 / 16CL" }, { "icon": "", "name": "18STD / 18STD", "rmk": "", "text": "18STD / 18STD" }, { "icon": "", "name": "1-16-1 / 18CL", "rmk": "", "text": "1-16-1 / 18CL" }, { "icon": "", "name": "20STD / 20STD", "rmk": "", "text": "20STD / 20STD" }, { "icon": "", "name": "1SS / 1SS", "rmk": "", "text": "1SS / 1SS" }, { "icon": "", "name": "1SSIMS / 1SSIMS", "rmk": "", "text": "1SSIMS / 1SSIMS" }, { "icon": "", "name": "2NPTH / 2NPTH", "rmk": "", "text": "2NPTH / 2NPTH" }, { "icon": "", "name": "2PTH / 2PTH", "rmk": "", "text": "2PTH / 2PTH" }, { "icon": "", "name": "3STD / 3STD", "rmk": "", "text": "3STD / 3STD" }, { "icon": "", "name": "1-1-1-3-1-1-1 / 9CL", "rmk": "", "text": "1-1-1-3-1-1-1 / 9CL" }, { "icon": "", "name": "7STD / 7STD", "rmk": "", "text": "7STD / 7STD" }];
var structure = '1-1-1-1-2-1-1-1-1';
var r = _.result(_.find(options, function(item){ return _.startsWith(item.name, structure + ' ') }), 'name');
print(r);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment