Best JavaScript code snippet using argos
ports_map.js
Source:ports_map.js
1var ports_init=[2 {3 Name:"Sol"4 ,Sector:15 ,Class:16 ,OreProduction:07 ,OrgProduction:08 ,EquProduction:09 ,OreDeduction:010 ,OrgDeduction:011 ,EquDeduction:012 }13 ,{14 Name:"Alpha Centauri"15 ,Sector:316 ,Class:217 ,OreProduction:5018 ,OrgProduction:15019 ,EquProduction:2520 ,OreDeduction:-2521 ,OrgDeduction:2222 ,EquDeduction:-2123 }24 ,{25 Name:"Wolf 359"26 ,Sector:527 ,Class:328 ,OreProduction:20029 ,OrgProduction:7530 ,EquProduction:7531 ,OreDeduction:2032 ,OrgDeduction:-2333 ,EquDeduction:-2134 }35 ,{36 Name:"Sirius"37 ,Sector:738 ,Class:139 ,OreProduction:15040 ,OrgProduction:7541 ,EquProduction:10042 ,OreDeduction:-1543 ,OrgDeduction:-2344 ,EquDeduction:2645 }46 ,{47 Name:"Centaurus"48 ,Sector:1049 ,Class:250 ,OreProduction:2051 ,OrgProduction:4052 ,EquProduction:553 ,OreDeduction:-5054 ,OrgDeduction:5055 ,EquDeduction:-5056 }57 ,{58 Name:"Arcturus"59 ,Sector:1860 ,Class:261 ,OreProduction:3062 ,OrgProduction:1563 ,EquProduction:564 ,OreDeduction:-4865 ,OrgDeduction:5066 ,EquDeduction:-5067 }68 ,{69 Name:"Rigel"70 ,Sector:1971 ,Class:172 ,OreProduction:6073 ,OrgProduction:1074 ,EquProduction:8075 ,OreDeduction:-7276 ,OrgDeduction:-7577 ,EquDeduction:8078 }79 ,{80 Name:"T'xe"81 ,Sector:2182 ,Class:283 ,OreProduction:3084 ,OrgProduction:4085 ,EquProduction:686 ,OreDeduction:-6087 ,OrgDeduction:6088 ,EquDeduction:-6089 }90 ,{91 Name:"New Paris"92 ,Sector:2293 ,Class:294 ,OreProduction:3095 ,OrgProduction:4096 ,EquProduction:797 ,OreDeduction:-6398 ,OrgDeduction:8099 ,EquDeduction:-70100 }101 ,{102 Name:"Palmer's World"103 ,Sector:23104 ,Class:2105 ,OreProduction:30106 ,OrgProduction:20107 ,EquProduction:5108 ,OreDeduction:-45109 ,OrgDeduction:40110 ,EquDeduction:-43111 }112 ,{113 Name:"NGC-33"114 ,Sector:35115 ,Class:3116 ,OreProduction:40117 ,OrgProduction:20118 ,EquProduction:10119 ,OreDeduction:40120 ,OrgDeduction:-30121 ,EquDeduction:-29122 }123 ,{124 Name:"Bourne's Star"125 ,Sector:37126 ,Class:2127 ,OreProduction:50128 ,OrgProduction:30129 ,EquProduction:10130 ,OreDeduction:-55131 ,OrgDeduction:60132 ,EquDeduction:-57133 }134 ,{135 Name:"Aldebaran"136 ,Sector:38137 ,Class:2138 ,OreProduction:40139 ,OrgProduction:35140 ,EquProduction:8141 ,OreDeduction:-80142 ,OrgDeduction:52143 ,EquDeduction:-69144 }145 ,{146 Name:"LNC Nebulae"147 ,Sector:39148 ,Class:2149 ,OreProduction:40150 ,OrgProduction:50151 ,EquProduction:40152 ,OreDeduction:-40153 ,OrgDeduction:40154 ,EquDeduction:-50155 }156 ,{157 Name:"Second Home"158 ,Sector:41159 ,Class:2160 ,OreProduction:30161 ,OrgProduction:30162 ,EquProduction:10163 ,OreDeduction:-51164 ,OrgDeduction:49165 ,EquDeduction:-50166 }167 ,{168 Name:"Daleth"169 ,Sector:43170 ,Class:3171 ,OreProduction:50172 ,OrgProduction:20173 ,EquProduction:10174 ,OreDeduction:75175 ,OrgDeduction:-50176 ,EquDeduction:-54177 }178 ,{179 Name:"Bettelgeuse"180 ,Sector:45181 ,Class:3182 ,OreProduction:60183 ,OrgProduction:20184 ,EquProduction:15185 ,OreDeduction:48186 ,OrgDeduction:-50187 ,EquDeduction:-51188 }189 ,{190 Name:"Koph System"191 ,Sector:46192 ,Class:1193 ,OreProduction:70194 ,OrgProduction:10195 ,EquProduction:100196 ,OreDeduction:-70197 ,OrgDeduction:-85198 ,EquDeduction:66199 }200 ,{201 Name:"Lonely Hole"202 ,Sector:48203 ,Class:3204 ,OreProduction:20205 ,OrgProduction:15206 ,EquProduction:12207 ,OreDeduction:48208 ,OrgDeduction:-30209 ,EquDeduction:-34210 }211 ,{212 Name:"NGC-78"213 ,Sector:51214 ,Class:3215 ,OreProduction:30216 ,OrgProduction:15217 ,EquProduction:10218 ,OreDeduction:30219 ,OrgDeduction:-38220 ,EquDeduction:-34221 }222 ,{223 Name:"NGC-4151"224 ,Sector:53225 ,Class:3226 ,OreProduction:40227 ,OrgProduction:20228 ,EquProduction:15229 ,OreDeduction:52230 ,OrgDeduction:-60231 ,EquDeduction:-47232 }233 ,{234 Name:"Outpost 7"235 ,Sector:57236 ,Class:3237 ,OreProduction:30238 ,OrgProduction:25239 ,EquProduction:12240 ,OreDeduction:60241 ,OrgDeduction:-25242 ,EquDeduction:-48243 }244 ,{245 Name:"Youlose"246 ,Sector:58247 ,Class:3248 ,OreProduction:50249 ,OrgProduction:35250 ,EquProduction:15251 ,OreDeduction:50252 ,OrgDeduction:-70253 ,EquDeduction:-86254 }255 ,{256 Name:"Last Hope"257 ,Sector:60258 ,Class:3259 ,OreProduction:30260 ,OrgProduction:40261 ,EquProduction:10262 ,OreDeduction:36263 ,OrgDeduction:-60264 ,EquDeduction:-54265 }266 ,{267 Name:"Epsilon Erandi"268 ,Sector:62269 ,Class:2270 ,OreProduction:30271 ,OrgProduction:50272 ,EquProduction:50273 ,OreDeduction:-50274 ,OrgDeduction:70275 ,EquDeduction:-50276 }277 ,{278 Name:"Fort Dallas"279 ,Sector:66280 ,Class:2281 ,OreProduction:50282 ,OrgProduction:60283 ,EquProduction:50284 ,OreDeduction:-70285 ,OrgDeduction:80286 ,EquDeduction:-70287 }288 ,{289 Name:"Antares"290 ,Sector:69291 ,Class:2292 ,OreProduction:20293 ,OrgProduction:40294 ,EquProduction:30295 ,OreDeduction:-70296 ,OrgDeduction:40297 ,EquDeduction:-70298 }299 ,{300 Name:"Gateway"301 ,Sector:71302 ,Class:2303 ,OreProduction:40304 ,OrgProduction:20305 ,EquProduction:40306 ,OreDeduction:-75307 ,OrgDeduction:84308 ,EquDeduction:-75309 }310 ,{311 Name:"Sirus II"312 ,Sector:73313 ,Class:1314 ,OreProduction:70315 ,OrgProduction:40316 ,EquProduction:50317 ,OreDeduction:-70318 ,OrgDeduction:-70319 ,EquDeduction:60320 }321 ,{322 Name:"Czar'ak"323 ,Sector:77324 ,Class:1325 ,OreProduction:80326 ,OrgProduction:60327 ,EquProduction:70328 ,OreDeduction:-69329 ,OrgDeduction:-75330 ,EquDeduction:50331 }332 ,{333 Name:"Vega"334 ,Sector:88335 ,Class:2336 ,OreProduction:40337 ,OrgProduction:30338 ,EquProduction:40339 ,OreDeduction:-50340 ,OrgDeduction:30341 ,EquDeduction:-40342 }343 ,{344 Name:"Canopus"345 ,Sector:89346 ,Class:3347 ,OreProduction:20348 ,OrgProduction:30349 ,EquProduction:50350 ,OreDeduction:35351 ,OrgDeduction:-40352 ,EquDeduction:-80353 }354 ,{355 Name:"Ross 154"356 ,Sector:93357 ,Class:3358 ,OreProduction:30359 ,OrgProduction:40360 ,EquProduction:30361 ,OreDeduction:70362 ,OrgDeduction:-60363 ,EquDeduction:-60364 }365 ,{366 Name:"Luyten 789-6"367 ,Sector:94368 ,Class:3369 ,OreProduction:40370 ,OrgProduction:45371 ,EquProduction:50372 ,OreDeduction:40373 ,OrgDeduction:-30374 ,EquDeduction:-30375 }376 ,{377 Name:"Bozone"378 ,Sector:97379 ,Class:3380 ,OreProduction:30381 ,OrgProduction:30382 ,EquProduction:20383 ,OreDeduction:20384 ,OrgDeduction:-40385 ,EquDeduction:-25386 }387 ,{388 Name:"Insearch"389 ,Sector:101390 ,Class:1391 ,OreProduction:50392 ,OrgProduction:20393 ,EquProduction:75394 ,OreDeduction:-20395 ,OrgDeduction:-15396 ,EquDeduction:40397 }398 ,{399 Name:"Ptolemy"400 ,Sector:105401 ,Class:2402 ,OreProduction:30403 ,OrgProduction:30404 ,EquProduction:30405 ,OreDeduction:-40406 ,OrgDeduction:35407 ,EquDeduction:-45408 }409 ,{410 Name:"Frontier 3"411 ,Sector:107412 ,Class:3413 ,OreProduction:35414 ,OrgProduction:35415 ,EquProduction:20416 ,OreDeduction:51417 ,OrgDeduction:-30418 ,EquDeduction:-45419 }420 ,{421 Name:"Pleione"422 ,Sector:111423 ,Class:3424 ,OreProduction:40425 ,OrgProduction:10426 ,EquProduction:35427 ,OreDeduction:30428 ,OrgDeduction:-20429 ,EquDeduction:-20430 }431 ,{432 Name:"Orion"433 ,Sector:113434 ,Class:1435 ,OreProduction:30436 ,OrgProduction:40437 ,EquProduction:50438 ,OreDeduction:-10439 ,OrgDeduction:-30440 ,EquDeduction:45441 }442 ,{443 Name:"Triffid 4"444 ,Sector:116445 ,Class:1446 ,OreProduction:130447 ,OrgProduction:70448 ,EquProduction:85449 ,OreDeduction:-15450 ,OrgDeduction:-36451 ,EquDeduction:50452 }453 ,{454 Name:"Diamond"455 ,Sector:118456 ,Class:3457 ,OreProduction:30458 ,OrgProduction:30459 ,EquProduction:15460 ,OreDeduction:40461 ,OrgDeduction:-52462 ,EquDeduction:-30463 }464 ,{465 Name:"Last Chance"466 ,Sector:120467 ,Class:1468 ,OreProduction:110469 ,OrgProduction:15470 ,EquProduction:60471 ,OreDeduction:-10472 ,OrgDeduction:-75473 ,EquDeduction:32474 }475 ,{476 Name:"Polaris"477 ,Sector:122478 ,Class:3479 ,OreProduction:30480 ,OrgProduction:16481 ,EquProduction:26482 ,OreDeduction:80483 ,OrgDeduction:-30484 ,EquDeduction:-45485 }486 ,{487 Name:"Yaxa"488 ,Sector:124489 ,Class:2490 ,OreProduction:40491 ,OrgProduction:30492 ,EquProduction:20493 ,OreDeduction:-75494 ,OrgDeduction:10495 ,EquDeduction:-35496 }497 ,{498 Name:"Jorgasnovara"499 ,Sector:125500 ,Class:2501 ,OreProduction:30502 ,OrgProduction:40503 ,EquProduction:75504 ,OreDeduction:-40505 ,OrgDeduction:40506 ,EquDeduction:-40507 }508 ,{509 Name:"Quilst"510 ,Sector:130511 ,Class:1512 ,OreProduction:15513 ,OrgProduction:75514 ,EquProduction:100515 ,OreDeduction:-12516 ,OrgDeduction:-26517 ,EquDeduction:55518 }519 ,{520 Name:"Qeegiz"521 ,Sector:133522 ,Class:3523 ,OreProduction:86524 ,OrgProduction:45525 ,EquProduction:37526 ,OreDeduction:70527 ,OrgDeduction:-23528 ,EquDeduction:-12529 }530 ,{531 Name:"Zumerbalt"532 ,Sector:138533 ,Class:2534 ,OreProduction:20535 ,OrgProduction:30536 ,EquProduction:50537 ,OreDeduction:-85538 ,OrgDeduction:30539 ,EquDeduction:-10540 }541 ,{542 Name:"Felgercarb"543 ,Sector:139544 ,Class:1545 ,OreProduction:20546 ,OrgProduction:20547 ,EquProduction:20548 ,OreDeduction:-28549 ,OrgDeduction:-25550 ,EquDeduction:50551 }552 ,{553 Name:"Nodi"554 ,Sector:141555 ,Class:2556 ,OreProduction:30557 ,OrgProduction:25558 ,EquProduction:12559 ,OreDeduction:-23560 ,OrgDeduction:42561 ,EquDeduction:-36562 }563 ,{564 Name:"Dazzel"565 ,Sector:144566 ,Class:3567 ,OreProduction:40568 ,OrgProduction:25569 ,EquProduction:5570 ,OreDeduction:41571 ,OrgDeduction:-50572 ,EquDeduction:-43573 }574 ,{575 Name:"Yimx"576 ,Sector:145577 ,Class:3578 ,OreProduction:40579 ,OrgProduction:30580 ,EquProduction:10581 ,OreDeduction:12582 ,OrgDeduction:-36583 ,EquDeduction:-71584 }585 ,{586 Name:"Gedemondas"587 ,Sector:149588 ,Class:2589 ,OreProduction:17590 ,OrgProduction:27591 ,EquProduction:37592 ,OreDeduction:-85593 ,OrgDeduction:50594 ,EquDeduction:-40595 }596 ,{597 Name:"Crill"598 ,Sector:153599 ,Class:2600 ,OreProduction:10601 ,OrgProduction:15602 ,EquProduction:50603 ,OreDeduction:-41604 ,OrgDeduction:37605 ,EquDeduction:-18606 }607 ,{608 Name:"Samaara"609 ,Sector:155610 ,Class:2611 ,OreProduction:40612 ,OrgProduction:50613 ,EquProduction:90614 ,OreDeduction:-30615 ,OrgDeduction:30616 ,EquDeduction:-50617 }618 ,{619 Name:"Lofz"620 ,Sector:157621 ,Class:2622 ,OreProduction:20623 ,OrgProduction:30624 ,EquProduction:85625 ,OreDeduction:-20626 ,OrgDeduction:24627 ,EquDeduction:-73628 }629 ,{630 Name:"Tsunamis"631 ,Sector:161632 ,Class:3633 ,OreProduction:18634 ,OrgProduction:29635 ,EquProduction:46636 ,OreDeduction:36637 ,OrgDeduction:-50638 ,EquDeduction:-64639 }640 ,{641 Name:"Furiaz"642 ,Sector:165643 ,Class:1644 ,OreProduction:19645 ,OrgProduction:39646 ,EquProduction:44647 ,OreDeduction:-70648 ,OrgDeduction:-65649 ,EquDeduction:66650 }651 ,{652 Name:"ZTX 4"653 ,Sector:166654 ,Class:1655 ,OreProduction:70656 ,OrgProduction:40657 ,EquProduction:50658 ,OreDeduction:-84659 ,OrgDeduction:-40660 ,EquDeduction:35661 }662 ,{663 Name:"Ilik-69"664 ,Sector:169665 ,Class:3666 ,OreProduction:80667 ,OrgProduction:20668 ,EquProduction:60669 ,OreDeduction:45670 ,OrgDeduction:-40671 ,EquDeduction:-55672 }673 ,{674 Name:"Marsh System"675 ,Sector:171676 ,Class:1677 ,OreProduction:40678 ,OrgProduction:110679 ,EquProduction:70680 ,OreDeduction:-40681 ,OrgDeduction:-55682 ,EquDeduction:75683 }684 ,{685 Name:"Stargate"686 ,Sector:173687 ,Class:3688 ,OreProduction:50689 ,OrgProduction:30690 ,EquProduction:10691 ,OreDeduction:60692 ,OrgDeduction:-42693 ,EquDeduction:-43694 }695 ,{696 Name:"Ridiculous 1"697 ,Sector:176698 ,Class:2699 ,OreProduction:20700 ,OrgProduction:40701 ,EquProduction:30702 ,OreDeduction:-70703 ,OrgDeduction:50704 ,EquDeduction:-60705 }706 ,{707 Name:"Ceti-Alpha VI"708 ,Sector:182709 ,Class:2710 ,OreProduction:30711 ,OrgProduction:15712 ,EquProduction:30713 ,OreDeduction:-40714 ,OrgDeduction:40715 ,EquDeduction:-65716 }717 ,{718 Name:"Frontier 8"719 ,Sector:183720 ,Class:2721 ,OreProduction:20722 ,OrgProduction:30723 ,EquProduction:25724 ,OreDeduction:-63725 ,OrgDeduction:80726 ,EquDeduction:-70727 }728 ,{729 Name:"New America"730 ,Sector:186731 ,Class:3732 ,OreProduction:60733 ,OrgProduction:20734 ,EquProduction:15735 ,OreDeduction:40736 ,OrgDeduction:-40737 ,EquDeduction:-50738 }739 ,{740 Name:"Criton"741 ,Sector:190742 ,Class:1743 ,OreProduction:30744 ,OrgProduction:25745 ,EquProduction:20746 ,OreDeduction:-70747 ,OrgDeduction:-60748 ,EquDeduction:40749 }750 ,{751 Name:"Moskva"752 ,Sector:191753 ,Class:2754 ,OreProduction:200755 ,OrgProduction:10756 ,EquProduction:15757 ,OreDeduction:-75758 ,OrgDeduction:75759 ,EquDeduction:-45760 }761 ,{762 Name:"Ahzdar"763 ,Sector:192764 ,Class:1765 ,OreProduction:90766 ,OrgProduction:90767 ,EquProduction:90768 ,OreDeduction:-80769 ,OrgDeduction:-80770 ,EquDeduction:70771 }772 ,{773 Name:"Sukered-ya"774 ,Sector:194775 ,Class:3776 ,OreProduction:10777 ,OrgProduction:200778 ,EquProduction:99779 ,OreDeduction:49780 ,OrgDeduction:-50781 ,EquDeduction:-53782 }783 ,{784 Name:"Gamma 12"785 ,Sector:196786 ,Class:1787 ,OreProduction:42788 ,OrgProduction:16789 ,EquProduction:50790 ,OreDeduction:-70791 ,OrgDeduction:-70792 ,EquDeduction:60793 }794 ,{795 Name:"Sqeel"796 ,Sector:199797 ,Class:2798 ,OreProduction:70799 ,OrgProduction:69800 ,EquProduction:70801 ,OreDeduction:-75802 ,OrgDeduction:95803 ,EquDeduction:-65804 }805 ,{806 Name:"Darion"807 ,Sector:214808 ,Class:3809 ,OreProduction:75810 ,OrgProduction:45811 ,EquProduction:45812 ,OreDeduction:80813 ,OrgDeduction:-51814 ,EquDeduction:-53815 }816 ,{817 Name:"Caspan"818 ,Sector:218819 ,Class:2820 ,OreProduction:50821 ,OrgProduction:150822 ,EquProduction:25823 ,OreDeduction:-25824 ,OrgDeduction:22825 ,EquDeduction:-21826 }827 ,{828 Name:"Paegan"829 ,Sector:225830 ,Class:2831 ,OreProduction:80832 ,OrgProduction:100833 ,EquProduction:68834 ,OreDeduction:-50835 ,OrgDeduction:61836 ,EquDeduction:-40837 }838 ,{839 Name:"Mongo"840 ,Sector:236841 ,Class:3842 ,OreProduction:80843 ,OrgProduction:40844 ,EquProduction:45845 ,OreDeduction:85846 ,OrgDeduction:-50847 ,EquDeduction:-50848 }849 ,{850 Name:"Tori"851 ,Sector:242852 ,Class:1853 ,OreProduction:190854 ,OrgProduction:120855 ,EquProduction:190856 ,OreDeduction:-20857 ,OrgDeduction:-25858 ,EquDeduction:45859 }860 ,{861 Name:"Fomalhaut"862 ,Sector:247863 ,Class:2864 ,OreProduction:40865 ,OrgProduction:30866 ,EquProduction:20867 ,OreDeduction:-50868 ,OrgDeduction:50869 ,EquDeduction:-50870 }871 ,{872 Name:"Xanthii"873 ,Sector:248874 ,Class:2875 ,OreProduction:30876 ,OrgProduction:55877 ,EquProduction:50878 ,OreDeduction:-60879 ,OrgDeduction:75880 ,EquDeduction:-61881 }882 ,{883 Name:"Sinuiji"884 ,Sector:250885 ,Class:3886 ,OreProduction:70887 ,OrgProduction:30888 ,EquProduction:30889 ,OreDeduction:30890 ,OrgDeduction:-40891 ,EquDeduction:-35892 }893 ,{894 Name:"Sardar"895 ,Sector:254896 ,Class:3897 ,OreProduction:90898 ,OrgProduction:50899 ,EquProduction:40900 ,OreDeduction:50901 ,OrgDeduction:-52902 ,EquDeduction:-49903 }904 ,{905 Name:"Behr'ak"906 ,Sector:256907 ,Class:2908 ,OreProduction:40909 ,OrgProduction:60910 ,EquProduction:55911 ,OreDeduction:-50912 ,OrgDeduction:70913 ,EquDeduction:-50914 }915 ,{916 Name:"Bellatrix"917 ,Sector:259918 ,Class:3919 ,OreProduction:30920 ,OrgProduction:40921 ,EquProduction:15922 ,OreDeduction:35923 ,OrgDeduction:-70924 ,EquDeduction:-55925 }926 ,{927 Name:"Acrux"928 ,Sector:262929 ,Class:3930 ,OreProduction:100931 ,OrgProduction:60932 ,EquProduction:28933 ,OreDeduction:70934 ,OrgDeduction:-45935 ,EquDeduction:-50936 }937 ,{938 Name:"Horok"939 ,Sector:263940 ,Class:3941 ,OreProduction:80942 ,OrgProduction:30943 ,EquProduction:50944 ,OreDeduction:50945 ,OrgDeduction:-40946 ,EquDeduction:-45947 }948 ,{949 Name:"K'ushui"950 ,Sector:273951 ,Class:1952 ,OreProduction:80953 ,OrgProduction:120954 ,EquProduction:200955 ,OreDeduction:-72956 ,OrgDeduction:-80957 ,EquDeduction:90958 }959 ,{960 Name:"Mialplacidas"961 ,Sector:276962 ,Class:3963 ,OreProduction:110964 ,OrgProduction:80965 ,EquProduction:105966 ,OreDeduction:50967 ,OrgDeduction:-30968 ,EquDeduction:-35969 }970 ,{971 Name:"Rigil Kentaurus"972 ,Sector:280973 ,Class:2974 ,OreProduction:50975 ,OrgProduction:70976 ,EquProduction:50977 ,OreDeduction:-75978 ,OrgDeduction:85979 ,EquDeduction:-75980 }981 ,{982 Name:"Jassan"983 ,Sector:285984 ,Class:2985 ,OreProduction:155986 ,OrgProduction:200987 ,EquProduction:110988 ,OreDeduction:-45989 ,OrgDeduction:50990 ,EquDeduction:-45991 }992 ,{993 Name:"Oomaru"994 ,Sector:290995 ,Class:2996 ,OreProduction:45997 ,OrgProduction:70998 ,EquProduction:40999 ,OreDeduction:-401000 ,OrgDeduction:421001 ,EquDeduction:-501002 }1003 ,{1004 Name:"Eskiis"1005 ,Sector:2931006 ,Class:31007 ,OreProduction:901008 ,OrgProduction:501009 ,EquProduction:601010 ,OreDeduction:841011 ,OrgDeduction:-651012 ,EquDeduction:-351013 }1014 ,{1015 Name:"Taan"1016 ,Sector:2951017 ,Class:21018 ,OreProduction:801019 ,OrgProduction:901020 ,EquProduction:601021 ,OreDeduction:-601022 ,OrgDeduction:651023 ,EquDeduction:-601024 }1025 ,{1026 Name:"Saaula"1027 ,Sector:2981028 ,Class:31029 ,OreProduction:751030 ,OrgProduction:401031 ,EquProduction:451032 ,OreDeduction:751033 ,OrgDeduction:-401034 ,EquDeduction:-351035 }1036 ,{1037 Name:"Kep Salu"1038 ,Sector:3011039 ,Class:11040 ,OreProduction:801041 ,OrgProduction:1001042 ,EquProduction:1301043 ,OreDeduction:-401044 ,OrgDeduction:-401045 ,EquDeduction:501046 }1047 ,{1048 Name:"Alam'ak"1049 ,Sector:3041050 ,Class:21051 ,OreProduction:951052 ,OrgProduction:1501053 ,EquProduction:1001054 ,OreDeduction:-401055 ,OrgDeduction:501056 ,EquDeduction:-331057 }1058 ,{1059 Name:"Wezen"1060 ,Sector:3051061 ,Class:31062 ,OreProduction:701063 ,OrgProduction:251064 ,EquProduction:251065 ,OreDeduction:301066 ,OrgDeduction:-401067 ,EquDeduction:-251068 }1069 ,{1070 Name:"Ghondr"1071 ,Sector:3071072 ,Class:31073 ,OreProduction:1101074 ,OrgProduction:501075 ,EquProduction:501076 ,OreDeduction:601077 ,OrgDeduction:-401078 ,EquDeduction:-351079 }1080 ,{1081 Name:"K'hotan"1082 ,Sector:3111083 ,Class:31084 ,OreProduction:701085 ,OrgProduction:401086 ,EquProduction:301087 ,OreDeduction:511088 ,OrgDeduction:-301089 ,EquDeduction:-451090 }1091 ,{1092 Name:"Androcus"1093 ,Sector:3161094 ,Class:11095 ,OreProduction:1101096 ,OrgProduction:1201097 ,EquProduction:1801098 ,OreDeduction:-711099 ,OrgDeduction:-651100 ,EquDeduction:851101 }1102 ,{1103 Name:"Regulus"1104 ,Sector:3191105 ,Class:31106 ,OreProduction:501107 ,OrgProduction:351108 ,EquProduction:201109 ,OreDeduction:801110 ,OrgDeduction:-501111 ,EquDeduction:-301112 }1113 ,{1114 Name:"Proxima"1115 ,Sector:3291116 ,Class:21117 ,OreProduction:1251118 ,OrgProduction:1151119 ,EquProduction:1001120 ,OreDeduction:-451121 ,OrgDeduction:701122 ,EquDeduction:-601123 }1124 ,{1125 Name:"Achernar B"1126 ,Sector:3341127 ,Class:21128 ,OreProduction:301129 ,OrgProduction:901130 ,EquProduction:451131 ,OreDeduction:-501132 ,OrgDeduction:701133 ,EquDeduction:-551134 }1135 ,{1136 Name:"Ndele"1137 ,Sector:3371138 ,Class:31139 ,OreProduction:1901140 ,OrgProduction:901141 ,EquProduction:1001142 ,OreDeduction:251143 ,OrgDeduction:-251144 ,EquDeduction:-201145 }1146 ,{1147 Name:"Tali"1148 ,Sector:3411149 ,Class:21150 ,OreProduction:401151 ,OrgProduction:801152 ,EquProduction:401153 ,OreDeduction:-501154 ,OrgDeduction:301155 ,EquDeduction:-451156 }1157 ,{1158 Name:"Tutakai"1159 ,Sector:3421160 ,Class:31161 ,OreProduction:501162 ,OrgProduction:351163 ,EquProduction:201164 ,OreDeduction:601165 ,OrgDeduction:-801166 ,EquDeduction:-851167 }1168 ,{1169 Name:"Dubhe"1170 ,Sector:3441171 ,Class:11172 ,OreProduction:2001173 ,OrgProduction:1101174 ,EquProduction:1951175 ,OreDeduction:-251176 ,OrgDeduction:-201177 ,EquDeduction:381178 }1179 ,{1180 Name:"Annobon"1181 ,Sector:3481182 ,Class:21183 ,OreProduction:401184 ,OrgProduction:701185 ,EquProduction:651186 ,OreDeduction:-601187 ,OrgDeduction:801188 ,EquDeduction:-601189 }1190 ,{1191 Name:"Lux"1192 ,Sector:3501193 ,Class:31194 ,OreProduction:501195 ,OrgProduction:301196 ,EquProduction:201197 ,OreDeduction:531198 ,OrgDeduction:-621199 ,EquDeduction:-461200 }1201 ,{1202 Name:"Mirfak"1203 ,Sector:3561204 ,Class:21205 ,OreProduction:951206 ,OrgProduction:1151207 ,EquProduction:901208 ,OreDeduction:-631209 ,OrgDeduction:851210 ,EquDeduction:-701211 }1212 ,{1213 Name:"Zindar"1214 ,Sector:3601215 ,Class:21216 ,OreProduction:1001217 ,OrgProduction:1601218 ,EquProduction:451219 ,OreDeduction:-261220 ,OrgDeduction:271221 ,EquDeduction:-211222 }1223 ,{1224 Name:"Adao"1225 ,Sector:3621226 ,Class:31227 ,OreProduction:601228 ,OrgProduction:401229 ,EquProduction:301230 ,OreDeduction:301231 ,OrgDeduction:-401232 ,EquDeduction:-351233 }1234 ,{1235 Name:"Theseus 2"1236 ,Sector:3661237 ,Class:21238 ,OreProduction:801239 ,OrgProduction:601240 ,EquProduction:451241 ,OreDeduction:-551242 ,OrgDeduction:601243 ,EquDeduction:-501244 }1245 ,{1246 Name:"Azrael"1247 ,Sector:3691248 ,Class:31249 ,OreProduction:801250 ,OrgProduction:401251 ,EquProduction:401252 ,OreDeduction:501253 ,OrgDeduction:-401254 ,EquDeduction:-351255 }1256 ,{1257 Name:"Etzel"1258 ,Sector:3731259 ,Class:21260 ,OreProduction:801261 ,OrgProduction:1551262 ,EquProduction:851263 ,OreDeduction:-361264 ,OrgDeduction:501265 ,EquDeduction:-281266 }1267 ,{1268 Name:"Xerxes"1269 ,Sector:3791270 ,Class:21271 ,OreProduction:901272 ,OrgProduction:751273 ,EquProduction:501274 ,OreDeduction:-801275 ,OrgDeduction:521276 ,EquDeduction:-701277 }1278 ,{1279 Name:"Loki"1280 ,Sector:3831281 ,Class:21282 ,OreProduction:501283 ,OrgProduction:1601284 ,EquProduction:301285 ,OreDeduction:-281286 ,OrgDeduction:301287 ,EquDeduction:-201288 }1289 ,{1290 Name:"Hashishyun"1291 ,Sector:3841292 ,Class:31293 ,OreProduction:601294 ,OrgProduction:201295 ,EquProduction:251296 ,OreDeduction:701297 ,OrgDeduction:-301298 ,EquDeduction:-501299 }1300 ,{1301 Name:"Akbar"1302 ,Sector:3861303 ,Class:31304 ,OreProduction:1201305 ,OrgProduction:1001306 ,EquProduction:1101307 ,OreDeduction:501308 ,OrgDeduction:-301309 ,EquDeduction:-351310 }1311 ,{1312 Name:"Abu Bekr"1313 ,Sector:3871314 ,Class:31315 ,OreProduction:501316 ,OrgProduction:301317 ,EquProduction:201318 ,OreDeduction:401319 ,OrgDeduction:-271320 ,EquDeduction:-231321 }1322 ,{1323 Name:"Appollyon"1324 ,Sector:3891325 ,Class:11326 ,OreProduction:1101327 ,OrgProduction:601328 ,EquProduction:1501329 ,OreDeduction:-711330 ,OrgDeduction:-831331 ,EquDeduction:651332 }1333 ,{1334 Name:"Iblis"1335 ,Sector:3901336 ,Class:21337 ,OreProduction:1051338 ,OrgProduction:1151339 ,EquProduction:701340 ,OreDeduction:-611341 ,OrgDeduction:851342 ,EquDeduction:-751343 }1344 ,{1345 Name:"Siva"1346 ,Sector:3931347 ,Class:21348 ,OreProduction:301349 ,OrgProduction:601350 ,EquProduction:301351 ,OreDeduction:-401352 ,OrgDeduction:401353 ,EquDeduction:-451354 }1355 ,{1356 Name:"Tyr"1357 ,Sector:3941358 ,Class:11359 ,OreProduction:1101360 ,OrgProduction:1201361 ,EquProduction:1801362 ,OreDeduction:-781363 ,OrgDeduction:-691364 ,EquDeduction:811365 }1366 ,{1367 Name:"Alaric"1368 ,Sector:3951369 ,Class:21370 ,OreProduction:901371 ,OrgProduction:501372 ,EquProduction:451373 ,OreDeduction:-501374 ,OrgDeduction:651375 ,EquDeduction:-571376 }1377 ,{1378 Name:"Aeolus"1379 ,Sector:3971380 ,Class:21381 ,OreProduction:401382 ,OrgProduction:201383 ,EquProduction:401384 ,OreDeduction:-751385 ,OrgDeduction:851386 ,EquDeduction:-751387 }1388 ,{1389 Name:"Tonti"1390 ,Sector:4081391 ,Class:31392 ,OreProduction:401393 ,OrgProduction:301394 ,EquProduction:251395 ,OreDeduction:851396 ,OrgDeduction:-451397 ,EquDeduction:-501398 }1399 ,{1400 Name:"Canus Minor"1401 ,Sector:4181402 ,Class:21403 ,OreProduction:201404 ,OrgProduction:401405 ,EquProduction:351406 ,OreDeduction:-751407 ,OrgDeduction:751408 ,EquDeduction:-751409 }1410 ,{1411 Name:"Equulus"1412 ,Sector:4211413 ,Class:31414 ,OreProduction:601415 ,OrgProduction:401416 ,EquProduction:201417 ,OreDeduction:801418 ,OrgDeduction:-401419 ,EquDeduction:-501420 }1421 ,{1422 Name:"Monoceros"1423 ,Sector:4231424 ,Class:21425 ,OreProduction:301426 ,OrgProduction:501427 ,EquProduction:151428 ,OreDeduction:-401429 ,OrgDeduction:451430 ,EquDeduction:-801431 }1432 ,{1433 Name:"Corvus"1434 ,Sector:4261435 ,Class:21436 ,OreProduction:801437 ,OrgProduction:1101438 ,EquProduction:751439 ,OreDeduction:-601440 ,OrgDeduction:651441 ,EquDeduction:-751442 }1443 ,{1444 Name:"Phoenix"1445 ,Sector:4291446 ,Class:31447 ,OreProduction:861448 ,OrgProduction:601449 ,EquProduction:451450 ,OreDeduction:901451 ,OrgDeduction:-801452 ,EquDeduction:-601453 }1454 ,{1455 Name:"Tucana"1456 ,Sector:4351457 ,Class:11458 ,OreProduction:701459 ,OrgProduction:401460 ,EquProduction:851461 ,OreDeduction:-801462 ,OrgDeduction:-851463 ,EquDeduction:651464 }1465 ,{1466 Name:"Apian"1467 ,Sector:4381468 ,Class:31469 ,OreProduction:801470 ,OrgProduction:701471 ,EquProduction:651472 ,OreDeduction:651473 ,OrgDeduction:-651474 ,EquDeduction:-651475 }1476 ,{1477 Name:"Doppler"1478 ,Sector:4401479 ,Class:31480 ,OreProduction:861481 ,OrgProduction:451482 ,EquProduction:371483 ,OreDeduction:851484 ,OrgDeduction:-401485 ,EquDeduction:-781486 }1487 ,{1488 Name:"Palitzsch"1489 ,Sector:4431490 ,Class:21491 ,OreProduction:301492 ,OrgProduction:601493 ,EquProduction:401494 ,OreDeduction:-401495 ,OrgDeduction:651496 ,EquDeduction:-401497 }1498 ,{1499 Name:"Seagate"1500 ,Sector:4451501 ,Class:31502 ,OreProduction:451503 ,OrgProduction:151504 ,EquProduction:251505 ,OreDeduction:851506 ,OrgDeduction:-601507 ,EquDeduction:-401508 }1509 ,{1510 Name:"Chandrasekher"1511 ,Sector:4461512 ,Class:21513 ,OreProduction:801514 ,OrgProduction:1401515 ,EquProduction:901516 ,OreDeduction:-701517 ,OrgDeduction:551518 ,EquDeduction:-621519 }1520 ,{1521 Name:"Cratuer"1522 ,Sector:4521523 ,Class:11524 ,OreProduction:1301525 ,OrgProduction:401526 ,EquProduction:1801527 ,OreDeduction:-651528 ,OrgDeduction:-801529 ,EquDeduction:701530 }1531 ,{1532 Name:"Ibn Duad"1533 ,Sector:4591534 ,Class:21535 ,OreProduction:301536 ,OrgProduction:601537 ,EquProduction:501538 ,OreDeduction:-851539 ,OrgDeduction:851540 ,EquDeduction:-851541 }1542 ,{1543 Name:"Pilar"1544 ,Sector:4631545 ,Class:21546 ,OreProduction:401547 ,OrgProduction:801548 ,EquProduction:251549 ,OreDeduction:-751550 ,OrgDeduction:801551 ,EquDeduction:-401552 }1553 ,{1554 Name:"Ketoi"1555 ,Sector:4661556 ,Class:21557 ,OreProduction:301558 ,OrgProduction:601559 ,EquProduction:301560 ,OreDeduction:-401561 ,OrgDeduction:651562 ,EquDeduction:-651563 }1564 ,{1565 Name:"Tulan"1566 ,Sector:4681567 ,Class:31568 ,OreProduction:401569 ,OrgProduction:161570 ,EquProduction:301571 ,OreDeduction:751572 ,OrgDeduction:-251573 ,EquDeduction:-401574 }1575 ,{1576 Name:"Alvarado"1577 ,Sector:4691578 ,Class:21579 ,OreProduction:901580 ,OrgProduction:1201581 ,EquProduction:801582 ,OreDeduction:-601583 ,OrgDeduction:701584 ,EquDeduction:-351585 }1586 ,{1587 Name:"Hrok 1"1588 ,Sector:4711589 ,Class:11590 ,OreProduction:901591 ,OrgProduction:501592 ,EquProduction:1501593 ,OreDeduction:-451594 ,OrgDeduction:-751595 ,EquDeduction:751596 }1597 ,{1598 Name:"Ramusik"1599 ,Sector:4721600 ,Class:31601 ,OreProduction:501602 ,OrgProduction:301603 ,EquProduction:101604 ,OreDeduction:651605 ,OrgDeduction:-351606 ,EquDeduction:-351607 }1608 ,{1609 Name:"Canus Major"1610 ,Sector:4821611 ,Class:31612 ,OreProduction:701613 ,OrgProduction:351614 ,EquProduction:351615 ,OreDeduction:701616 ,OrgDeduction:-701617 ,EquDeduction:-651618 }1619 ,{1620 Name:"H12"1621 ,Sector:4831622 ,Class:21623 ,OreProduction:901624 ,OrgProduction:1801625 ,EquProduction:1001626 ,OreDeduction:-401627 ,OrgDeduction:501628 ,EquDeduction:-251629 }1630 ,{1631 Name:"Spica"1632 ,Sector:4891633 ,Class:21634 ,OreProduction:501635 ,OrgProduction:601636 ,EquProduction:401637 ,OreDeduction:-701638 ,OrgDeduction:591639 ,EquDeduction:-361640 }1641 ,{1642 Name:"Yugonislom"1643 ,Sector:4901644 ,Class:31645 ,OreProduction:461646 ,OrgProduction:291647 ,EquProduction:201648 ,OreDeduction:501649 ,OrgDeduction:-501650 ,EquDeduction:-451651 }1652/* Not in the real game...1653 ,{1654 Name:"Alfr"1655 ,Sector:4921656 ,Class:21657 ,OreProduction:201658 ,OrgProduction:851659 ,EquProduction:301660 ,OreDeduction:-201661 ,OrgDeduction:501662 ,EquDeduction:-351663 }1664 ,{1665 Name:"Tall Grass"1666 ,Sector:4941667 ,Class:31668 ,OreProduction:651669 ,OrgProduction:401670 ,EquProduction:301671 ,OreDeduction:601672 ,OrgDeduction:-601673 ,EquDeduction:-601674 }1675 ,{1676 Name:"H9"1677 ,Sector:4961678 ,Class:31679 ,OreProduction:1101680 ,OrgProduction:601681 ,EquProduction:501682 ,OreDeduction:801683 ,OrgDeduction:-401684 ,EquDeduction:-651685 } */...
Production.jsx
Source:Production.jsx
1import React from 'react';2import './Production.css';3import Engine from './Engine';4import twitchLogo from './twitchLogo.png';5import twitterLogo from './twitterLogo.png';6import {productionDisplay} from '../../package.json';7export default class Production extends React.Component {8 render() {9 return (10 <div className="production">11 <Engine />12 <div className="game-metadata">13 <h1>{productionDisplay.displayName}</h1>14 {productionDisplay.authorName && (15 <h3>16 by17 <br />18 {productionDisplay.authorURL ? (19 <a href={productionDisplay.authorURL}>{productionDisplay.authorName}</a>20 ) : (21 productionDisplay.authorName22 )}23 <br />24 {productionDisplay.authorTwitter && (25 <a href={`https://twitter.com/${productionDisplay.authorTwitter}`}>26 <img src={twitterLogo} alt={`@${productionDisplay.authorTwitter} on Twitter`} />27 </a>28 )}29 {productionDisplay.authorTwitch && (30 <a href={`https://twitch.tv/${productionDisplay.authorTwitch}`}>31 <img src={twitchLogo} alt={`${productionDisplay.authorTwitch} on Twitch`} />32 </a>33 )}34 </h3>35 )}36 <p>37 {productionDisplay.eventDescription && (38 <React.Fragment>39 {productionDisplay.eventDescription}40 <br />41 </React.Fragment>42 )}43 {productionDisplay.eventNamePre}44 {' '}45 <strong>{productionDisplay.eventNameBold}</strong>46 {' '}47 {productionDisplay.eventNamePost}48 </p>49 {productionDisplay.eventURL && (50 <p>51 <a href={productionDisplay.eventURL}>52 {productionDisplay.eventURL}53 </a>54 </p>55 )}56 <p>57 {productionDisplay.themeDescription && (58 <React.Fragment>59 {productionDisplay.themeDescription}60 <br />61 </React.Fragment>62 )}63 {productionDisplay.themePre}64 {' '}65 <em>{productionDisplay.themeItalic}</em>66 {' '}67 {productionDisplay.themePost}68 </p>69 {productionDisplay.repoURL && (70 <p>71 code at72 <br />73 <a className="url" href={productionDisplay.repoURL}>74 {productionDisplay.repoURL}75 </a>76 </p>77 )}78 </div>79 </div>80 );81 }...
SequelizeProductionsRepository.js
Source:SequelizeProductionsRepository.js
1const ProductionMapper = require('./SequelizeProductionMapper');2class SequelizeProductionsRepository {3 constructor({ ProductionModel }) {4 this.ProductionModel = ProductionModel;5 }6 async getAll(...args) {7 const production = await this.ProductionModel.findAll(...args);8 return production.map(ProductionMapper.toEntity);9 }10 async getById(id) {11 const production = await this._getById(id);12 return ProductionMapper.toEntity(production);13 }14 async add(production) {15 const { valid, errors } = production.validate();16 if(!valid) {17 const error = new Error('ValidationError');18 error.details = errors;19 throw error;20 }21 const newProduction = await this.ProductionModel.create(ProductionMapper.toDatabase(production));22 return ProductionMapper.toEntity(newProduction);23 }24 async remove(id) {25 const production = await this._getById(id);26 await production.destroy();27 return;28 }29 async update(id, newData) {30 const production = await this._getById(id);31 const transaction = await this.ProductionModel.sequelize.transaction();32 try {33 const updatedProduction = await production.update(newData, { transaction });34 const productionEntity = ProductionMapper.toEntity(updatedProduction);35 const { valid, errors } = productionEntity.validate();36 if(!valid) {37 const error = new Error('ValidationError');38 error.details = errors;39 throw error;40 }41 await transaction.commit();42 return productionEntity;43 } catch(error) {44 await transaction.rollback();45 throw error;46 }47 }48 async count() {49 return await this.ProductionModel.count();50 }51 // Private52 async _getById(id) {53 try {54 return await this.ProductionModel.findById(id, { rejectOnEmpty: true });55 } catch(error) {56 if(error.name === 'SequelizeEmptyResultError') {57 const notFoundError = new Error('NotFoundError');58 notFoundError.details = `User with id ${id} can't be found.`;59 throw notFoundError;60 }61 throw error;62 }63 }64}...
Using AI Code Generation
1var argosy = require('argosy')2var argosyPattern = require('argosy-pattern')3var argosyRpc = require('argosy-rpc')4var argosyService = require('argosy-service')5var argosyServiceProxy = require('argosy-service-proxy')6var argosyServiceRegistry = require('argosy-service-registry')7var argosyServiceRegistryProxy = require('argosy-service-registry-proxy')8var argosyServiceRegistryPeer = require('argosy-service-registry-peer')9var argosyServiceRegistryPeerProxy = require('argosy-service-registry-peer-proxy')10var argosyServiceRegistryPeerProxy = require('argosy-service-registry-peer-proxy')11var argosyServiceRegistryPeerProxy = require('argosy-service-registry-peer-proxy')12var argosy = require('argosy/lib/argosy')13var argosyPattern = require('argosy-pattern/lib/argosy-pattern')14var argosyRpc = require('argosy-rpc/lib/argosy-rpc')15var argosyService = require('argosy-service/lib/argosy-service')16var argosyServiceProxy = require('argosy-service-proxy/lib/argosy-service-proxy')17var argosyServiceRegistry = require('argosy-service-registry/lib/argosy-service-registry')18var argosyServiceRegistryProxy = require('argosy-service-registry-proxy/lib/argosy-service-registry-proxy')19var argosyServiceRegistryPeer = require('argosy-service-registry-peer/lib/argosy-service-registry-peer')20var argosyServiceRegistryPeerProxy = require('argosy-service-registry-peer-proxy/lib/argosy-service-registry-peer-proxy')21var argosyServiceRegistryPeerProxy = require('argosy-service-registry-peer-proxy/lib/argosy-service-registry-peer-proxy')22var argosyServiceRegistryPeerProxy = require('argosy-service-registry-peer-proxy/lib/argosy-service-registry-peer-proxy')23var argosy = require('argosy')24var argosyPattern = require('argosy-pattern')25var argosyRpc = require('
Using AI Code Generation
1var argosy = require('argosy')()2var argosyPattern = require('argosy-pattern')3var argosyRpc = require('argosy-rpc')4var argosyHttp = require('argosy-http')5var argosyPipeline = require('argosy-pipeline')6var argosyService = require('argosy-service')7var argosy = require('argosy')()8var argosyPattern = require('argosy-pattern')9var argosyRpc = require('argosy-rpc')10var argosyHttp = require('argosy-http')11var argosyPipeline = require('argosy-pipeline')12var argosyService = require('argosy-service')13var argosy = require('argosy')()14var argosyPattern = require('argosy-pattern')15var argosyRpc = require('argosy-rpc')16var argosyHttp = require('argosy-http')17var argosyPipeline = require('argosy-pipeline')18var argosyService = require('argosy-service')19var argosy = require('argosy')()20var argosyPattern = require('argosy-pattern')21var argosyRpc = require('argosy-rpc')22var argosyHttp = require('argosy-http')23var argosyPipeline = require('argosy-pipeline')24var argosyService = require('argosy-service')25var argosy = require('argosy')()26var argosyPattern = require('argosy-pattern')27var argosyRpc = require('argosy-rpc')28var argosyHttp = require('argosy-http')29var argosyPipeline = require('argosy-pipeline')30var argosyService = require('argosy-service')31var argosy = require('argosy')()32var argosyPattern = require('argosy-pattern')33var argosyRpc = require('argosy-rpc')34var argosyHttp = require('
Using AI Code Generation
1var argosy = require('argosy')()2var argosyPattern = require('argosy-pattern')3var argosyService = require('argosy-service')4var argosyServiceRegistry = require('argosy-service-registry')5var argosyServiceLocator = require('argosy-service-locator')6var argosyServiceDiscovery = require('argosy-service-discovery')7var argosyServiceRequest = require('argosy-service-request')8var argosyServiceResponse = require('argosy-service-response')9var argosyServiceProxy = require('argosy-service-proxy')10var argosyServiceBroker = require('argosy-service-broker')11var argosyServiceRegistry = require('argosy-service-registry')12var argosyServiceRegistry = require('argosy-service-registry')13var argosyServiceRegistry = require('argosy-service-registry')14argosy.use(argosyPattern())15argosy.use(argosyService())16argosy.use(argosyServiceRegistry())17argosy.use(argosyServiceLocator())18argosy.use(argosyServiceDiscovery())19argosy.use(argosyServiceRequest())20argosy.use(argosyServiceResponse())21argosy.use(argosyServiceProxy())22argosy.use(argosyServiceBroker())23argosy.use(argosyServiceRegistry())24argosy.use(argosyServiceRegistry())25argosy.accept({role: 'test', cmd: 'hello'}, function (message, callback) {26 callback(null, {hello: message.name})27})28argosy.listen({role: 'test', cmd: 'hello'})29argosy.accept({role: 'test', cmd: 'hello'}, function (message, callback) {30 callback(null, {hello: message.name})31})32argosy.listen({role: 'test', cmd: 'hello'})33argosy.accept({role: 'test', cmd: 'hello'}, function (message, callback) {34 callback(null, {hello: message.name})35})36argosy.listen({role: 'test', cmd: 'hello'})37argosy.accept({role: 'test', cmd: 'hello'}, function (message, callback) {38 callback(null, {hello: message.name})39})40argosy.listen({role: 'test', cmd: 'hello'})
Using AI Code Generation
1var argos = require('argos');2var argos = new argos('production');3var argos = require('argos');4var argos = new argos('sandbox');5var argos = require('argos');6var argos = new argos('custom', {7});8### .login(username, password, callback)9argos.login('username', 'password', function(err, data) {10});11### .logout(callback)12argos.logout(function(err, data) {13});14### .getDevices(callback)15argos.getDevices(function(err, data) {16});17### .getDevice(deviceId, callback)18argos.getDevice('deviceId', function(err, data) {19});20### .getDeviceCommands(deviceId, callback)21argos.getDeviceCommands('deviceId', function(err, data) {22});23### .getDeviceCommand(deviceId, commandId, callback)24argos.getDeviceCommand('deviceId', 'commandId', function(err, data) {25});26### .executeDeviceCommand(deviceId, commandId, callback)27argos.executeDeviceCommand('deviceId', 'commandId', function(err, data) {28});29### .getDeviceData(deviceId, callback)30argos.getDeviceData('deviceId', function(err, data) {31});32### .getDeviceDataItem(deviceId, dataId, callback)33argos.getDeviceDataItem('deviceId', 'dataId', function(err, data) {34});35### .getDeviceDataItemHistory(deviceId, dataId,
Using AI Code Generation
1var argosy = require('argosy')2var argosyService = argosy()3argosyService.pipe(argosyService)4var pattern = require('argosy-pattern')5var argosyService = argosy()6argosyService.pipe(argosyService)7var argosy = require('argosy')8var argosyService = argosy()9argosyService.pipe(argosyService)10var pattern = require('argosy-pattern')11var argosyService = argosy()12argosyService.pipe(argosyService)13var argosy = require('argosy')14var argosyService = argosy()15argosyService.pipe(argosyService)16var pattern = require('argosy-pattern')17var argosyService = argosy()18argosyService.pipe(argosyService)19var argosy = require('argosy')20var argosyService = argosy()21argosyService.pipe(argosyService)22var pattern = require('argosy-pattern')23var argosyService = argosy()24argosyService.pipe(argosyService)25var argosy = require('argosy')26var argosyService = argosy()27argosyService.pipe(argosyService)28var pattern = require('argosy-pattern')29var argosyService = argosy()30argosyService.pipe(argosyService)31var argosy = require('argosy')32var argosyService = argosy()33argosyService.pipe(argosyService)
Using AI Code Generation
1var argosy = require('argosy')()2var argosyPattern = require('argosy-pattern')3var argosyService = require('argosy-service')4var argosyServiceTest = require('argosy-service-test')5var argosyServiceTestHarness = require('argosy-service-test-harness')6var argosy = require('argosy')()7var argosyPattern = require('argosy-pattern')8var argosyService = require('argosy-service')9var argosyServiceTest = require('argosy-service-test')10var argosyServiceTestHarness = require('argosy-service-test-harness')11 .use(argosyServiceTestHarness({12 }))13 .use(function (request, reply) {14 if (request.test) {15 request.test(function (err, result) {16 if (err) return reply(err)17 reply(null, result)18 })19 }20 })21 .listen(8000)22var argosy = require('argosy')()23var argosyPattern = require('argosy-pattern')24var argosyService = require('argosy-service')25var argosyServiceTest = require('argosy-service-test')26var argosyServiceTestHarness = require('argosy-service-test-harness')27var argosy = require('argosy')()28var argosyPattern = require('argosy-pattern')29var argosyService = require('argosy-service')30var argosyServiceTest = require('argosy-service-test')31var argosyServiceTestHarness = require('argosy-service-test-harness')32 .use(argosyServiceTestHarness({33 }))34 .use(function (request, reply) {35 if (request.test) {36 request.test(function (err, result) {37 if (err) return reply(err)
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!