| [ |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 391, |
| 232, |
| 1101, |
| 232, |
| 1101, |
| 1295, |
| 391, |
| 1295 |
| ], |
| "anno_id": 5, |
| "text": "```\nBeispiel:\np { font-family: Verdana,Arial,sans-serif;\n font-size: 9px;\n font-weight: bold;\n line-height: 1.5;\n text-indent: 20px;\n margin-bottom: 5px;\n color: green;\n background-color: #CCCCC;\n}\nimg { width: 200px;\n height: 150px;\n float: right;\n margin: 10px;\n}\ndiv { background-image: url(./images/bg.jpg);\n border: 1px solid black;\n padding: 5px;\n}\na { font-style: italic;\n font-decoration: none;\n}\nMerke:\nErläuterung der CSS-Eigenschaften\nfont-family =Wahl der Schriftart,\nfont-size =Schriftgröße\nfont-weight =Schriftstärke\nline-height =Zeilenabstand\ntext-indent =Erstzeileneinzug\nmargin-bottom =Abstand am unteren Rand (des Absatzes)\ncolor =Schriftfarbe\nbackground-color =Hintergrundfarbe\nwidth =Breite (hier: des Bildes)\nheight =Höhe\nfloat =Umfließen des Bildes mit Text (hier: Das Bild soll rechts stehen und links mit Text umflossen werden)\nmargin =Außenabstand (rings um das Bild)\nbackground-image =Hintergrundbild\nborder =Rahmen (hier: eine 1px breite, durchgezogene schwarze Linie)\npadding =Innenabstand (d. h. Abstand des im Rahmen stehenden Textes zum Rahmen selbst)\nfont-style =Schriftform\nfont-decoration =weitere Schriftauszeichnung (hier: keine Unterstreichung)\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "de" |
| }, |
| "image_path": "de_9c5867c66d2948d6083854441afc4e08_160_76.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 272, |
| 257, |
| 1009, |
| 257, |
| 1009, |
| 1401, |
| 272, |
| 1401 |
| ], |
| "anno_id": 0, |
| "text": "```\nDeskripsi\nwrite( \"Masukkan sebuah angka (maks 4 digit) \" );\nread ( angka );\n{ memisahkan digit angka dalam urutan d4 d3 d3 d1 }\nd4 ← angka \\ 1000;\nsisa ← angka % 1000;\nd3 ← sisa \\ 100;\nsisa ← sisa % 100;\nd2 ← sisa \\ 10;\nsisa ← sisa % 10;\nd1 ← sisa;\n{ menterjemahkan digit }\nif ( d4 > 1 )\nthen angka4 ← digit ( d4 ) + \"ribu\";\nelse if ( d4 = 1 )\nthen angka4 ←\"seribu\";\nelse angka4←' \";\nendif.\nendif.\n\nif ( d3 > 1 )\nthen angka3 ← digit ( d3 ) + \"ratus\";\nelse if ( d3 = 1 )\nthen angka3←\"seratus\";\nelse angka3←' ';\nendif.\nendif.\n\nif ( d2 > 1 )\nthen angka2 digit ( d2 ) + \"puluh\";\nif ( d1 = 0 )\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "id" |
| }, |
| "image_path": "id_44cb017c564d7e168b2686eccc201ce0_134_128.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 147, |
| 267, |
| 502, |
| 267, |
| 502, |
| 647, |
| 147, |
| 647 |
| ], |
| "anno_id": 1, |
| "text": "```\n #define LED BLUE_LED\n\n unsigned int compteur;\n unsigned int compteurR;\n unsigned int compteurV;\n unsigned int compteurB;\n \n void setup() {\n pinMode (LED, OUTPUT);\n }\n \n void loop() {\n digitalWrite (LED, HIGH);\n delay (200);\n digitalWrite (LED, LOW);\n delay (200);\n compteur++;\n compteurB++;\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 533, |
| 764, |
| 937, |
| 764, |
| 937, |
| 1046, |
| 533, |
| 1046 |
| ], |
| "anno_id": 9, |
| "text": "```\n #define LED RED_LED\n\n void setupRouge(){\n pinMode(LED, OUTPUT);\n }\n \n void loopRouge(){\n digitalWrite (LED, HIGH);\n delay(201);\n digitalWrite (LED, LOW);\n delay(201);\n compteur++;\n compteurR++;\n }\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "fr" |
| }, |
| "image_path": "fr_c8abe6a8a877f8b3382104690be09c77_100_9.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 854, |
| 255, |
| 1311, |
| 255, |
| 1311, |
| 481, |
| 854, |
| 481 |
| ], |
| "anno_id": 14, |
| "text": "```\n/* buffer.c */\n#include <stdio.h>\n#include <string.h>\nint main(int argc, char *argv[])\n{\n char buffer[5];\n if (argc < 2)\n {\n fprintf(stderr, \"ZASTOSOWANIE: %s string\\n\", argv[0]);\n return 1;\n }\n strcpy(buffer, argv[1]);\n return 0;\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 861, |
| 641, |
| 1414, |
| 641, |
| 1414, |
| 878, |
| 861, |
| 878 |
| ], |
| "anno_id": 18, |
| "text": "```\n/* Improved.c */\n#include <stdio.h>\n#include <string.h>\nint main(int argc, char *argv[])\n{\n char buffer[5];\n if (argc < 2)\n {\n fprintf(stderr, \"USAGE: %s string\\n\", argv[0]);\n return 1;\n }\n strcpy(buffer, argv[1], sizeof(buffer));\n buffer[sizeof(buffer) - 1] = '\\0'; /* kończmy łańcuch znakiem null */\n return 0;\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pl" |
| }, |
| "image_path": "pl_5d7b63e46f3024941e25dae7e3f2972a_120_78.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 53, |
| 167, |
| 832, |
| 167, |
| 832, |
| 570, |
| 53, |
| 570 |
| ], |
| "anno_id": 2, |
| "text": "```\n{\n\"filename\": \"NDA3Nzl5Mjkuemlw\",\n\"filename_decoded\": \"40772929.zip\",\n\"filesize\": 15768715,\n\"md5\": \"90496c4c4acbcb8fdf32ac0c323ef3f5\",\n\"header_md5\": \"34b75cbcedb3796423ee6f0b51a15fac\",\n\"sha1\": \"5d28148f9fb5666554f7a29b8773c4c0ccdaec6e\",\n\"sha256\": \"36fb59617ee2997aa15e1a64f972e6701c212bb3847c859cb4ccd28fb23c5b25\",\n\"crc32\": 3368094478,\n\"zip_password\":\"\",\n\"uncompressed_size\": 23465913,\n\"pdg_dir_name\":\"Vespro della Beata Vergine Bassus generalis_40772929\",\n\"pdg_main_pages_found\": 88,\n\"pdg_main_pages_max\": 88,\n\"total pages\": 90,\n\"total_pixels\": 978783288,\n\"pdf_generation_missing_pages\": false\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "it" |
| }, |
| "image_path": "it_aacid__duxiu_files__20240613T200727Z__k5h6bmcswjJTaAF4yyF2uZ_91_91.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 163, |
| 193, |
| 633, |
| 193, |
| 633, |
| 1462, |
| 163, |
| 1462 |
| ], |
| "anno_id": 1, |
| "text": "```\nif (!isStageSolved) {\n if (_isSelectionOutOfBounds(_index2)) {\n select(0, 1);\n resetIndexes();\n } else {\n select(_index1, _index2);\n }\n log(\"index1: $_index1 e index2 $_index2\");\n notifyListeners();\n }\n}\n\nvoid _unselect(int index1, int index2) {\n draggableList[index1] = SortableItem(\n title: draggableList[index1].title,\n color: Colors.white,\n key: draggableList[index1].key);\n draggableList[index2] = SortableItem(\n title: draggableList[index2].title,\n color: Colors.white,\n key: draggableList[index2].key);\n}\n\nvoid _incrementIndexes() {\n _index1++;\n _index2++;\n if (_isListFullyOrdered()) {\n isStageSolved = true;\n log('Stage solved!');\n notifyListeners();\n }\n}\n\nvoid select(int index1, int index2) {\n draggableList[index1] = SortableItem(\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pt" |
| }, |
| "image_path": "pt_f3a5482e30719a33a9c467191f1e2e90_180_85.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 242, |
| 1286, |
| 908, |
| 1286, |
| 908, |
| 1422, |
| 242, |
| 1422 |
| ], |
| "anno_id": 8, |
| "text": "```\nSQL> SELECT c.name \"Customer Name\", c.region_id \"Region_ID\",\n2> r.name \"Region Name\"\n3> FROM s_customer c, s_region r\n4> WHERE c.region_id = r.id;\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_1d3824a9d5d5602c9655fd96f3c5c88b_118_56.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 156, |
| 507, |
| 918, |
| 507, |
| 918, |
| 750, |
| 156, |
| 750 |
| ], |
| "anno_id": 4, |
| "text": "```\ndef make_response_files (source_files)\n source_files.inject([]) do |result, src|\n name = \"#{src}.#{Process.pid}.tmp\"\n File.open(name, 'w') { |file| file << \"cl -c -O2 #{src}\" }\n at_exit { File.delete name }\n\n result << name\n end\nend\n\nresponse_files = make_response_files([ 'hello.cpp', 'world.cpp' ])\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 156, |
| 977, |
| 804, |
| 977, |
| 804, |
| 1262, |
| 156, |
| 1262 |
| ], |
| "anno_id": 7, |
| "text": "```\nrequire 'fox16'\n\ninclude Fox\n\ntheApp = FXApp.new\n\ntheMainWindow = FXMainWindow.new(theApp, \"Hello\")\ntheButton = FXButton.new(theMainWindow, \"Hello, World!\")\ntheButton.connect(SEL_COMMAND) { exit }\n\ntheApp.create\ntheMainWindow.show\ntheApp.run\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_e38fb6eee20491d14bb0ba0a50f4cc82_62_43.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 262, |
| 172, |
| 951, |
| 172, |
| 951, |
| 891, |
| 262, |
| 891 |
| ], |
| "anno_id": 1, |
| "text": "```\nclass Bangun {\n double panjang;\n double lebar;\n\n // method dengan argumen\n void isiData(double p, double l) {\n panjang = p;\n lebar = l;\n }\n\n // method yang mengembalikan nilai\n double hitungLuas() {\n double luas = panjang * lebar;\n return luas;\n }\n}\n\nclass pakaiBangun {\n public static void main(String[] args) {\n Bangun b;\n\n // instansiasi obyek\n b = new Bangun();\n\n // memanggil method isiData dan mengisi argumennya\n b.isiData(6,8);\n\n // memanggil method hitungLuas() untuk objek b\n System.out.println(\"Luas b=\" + b.hitungLuas());\n }\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "id" |
| }, |
| "image_path": "id_1e973f4c3959be1d57893caa25f11e5d_183_81.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 158, |
| 151, |
| 882, |
| 151, |
| 882, |
| 693, |
| 158, |
| 693 |
| ], |
| "anno_id": 2, |
| "text": "```\n main()\n { \n int i;\n\n cout << \"Program wyswietla liczby całkowite od 1 do 20.\" << endl;\n \n for (i = 1; i <= 20; i++)\n {\n if (i < 20)\n {\n cout << i << \".\": \n } \n else\n {\n cout << i << \".\";\n }\n }\n \n getch() : // czeka na nacisniecie dowolnego klawisza\n }\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 185, |
| 814, |
| 884, |
| 814, |
| 884, |
| 890, |
| 185, |
| 890 |
| ], |
| "anno_id": 4, |
| "text": "```\nProgram wyswietla liczby całkowite od 1 do 20. \n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20.\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 164, |
| 1158, |
| 882, |
| 1158, |
| 882, |
| 1483, |
| 164, |
| 1483 |
| ], |
| "anno_id": 10, |
| "text": "```\n#include <iostream.h> // Zadanie 3.5\n#include <conio.h>\n\nmain()\n{\nint i=1;// ustalenie wartosci poczatkowej\n\ncout <<\"Program wyswietla liczby całkowite od 1 do 20.\" << endl;\n\ndo\n{\n if (i < 20)\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pl" |
| }, |
| "image_path": "pl_bf8637b6b2af50c43b2a3e463665f808_122_35.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 71, |
| 430, |
| 427, |
| 430, |
| 427, |
| 463, |
| 71, |
| 463 |
| ], |
| "anno_id": 6, |
| "text": "```\ncurl X GET http://10.210.1.24:8888/api/rtc H\nAPI KEY:078725375deee4f719049ad98f9b36a3\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 75, |
| 543, |
| 386, |
| 543, |
| 386, |
| 656, |
| 75, |
| 656 |
| ], |
| "anno_id": 8, |
| "text": "```\n{\n \"resultOfLastCommand\":\"OK\",\n \"rtcB\":\"19111303113826\",\n \"rtc\":\"19112407172510\",\n \"rtcAtBoot\":\"Wed 2019-11-13 11:38:26\",\n \"rtcNow\":\"Sun 2019-11-24 17:25:10\"\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 568, |
| 344, |
| 777, |
| 344, |
| 777, |
| 410, |
| 568, |
| 410 |
| ], |
| "anno_id": 18, |
| "text": "```\n{\n\"resultOfLastCommand\":\"OK\",\n\"softwareVersion\":\"0.7.155\"\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_2d465782d595a445426f77f6bca01d3f_100_24.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 138, |
| 209, |
| 590, |
| 209, |
| 590, |
| 240, |
| 138, |
| 240 |
| ], |
| "anno_id": 1, |
| "text": "```\nhabitacion.add_pared(pared_izq)\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 135, |
| 291, |
| 898, |
| 291, |
| 898, |
| 544, |
| 135, |
| 544 |
| ], |
| "anno_id": 2, |
| "text": "```\nPHP:\n$habitacion = new Habitacion($piso, $cielo_raso);\n$habitacion->save();\n\n$pared_izq = new Pared();\n$pared_izq->habitacion = $habitacion->habitacion_id;\n$pared_izq->save();\n\n$habitacion->add_pared($pared_izq);\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 136, |
| 1101, |
| 771, |
| 1101, |
| 771, |
| 1325, |
| 136, |
| 1325 |
| ], |
| "anno_id": 5, |
| "text": "```\nPython:\nlaja = Laja()\nlaja.color = 'beige'\nlaja.save()\n\npared = Pared()\npared.habitacion = habitacion.habitacion_id\npared.save()\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "es" |
| }, |
| "image_path": "es_c91f0f9335c859c4acc76e8ba5730852_163_117.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 144, |
| 195, |
| 984, |
| 195, |
| 984, |
| 754, |
| 144, |
| 754 |
| ], |
| "anno_id": 1, |
| "text": "```\n 6 public class UserStorage{\n 7\n 8 public UserStorage(){\n 9 data = new Hashtable<AuthorizeInfo, UserInfo>();\n10 data.put(new AuthorizeInfo(\"1\", \"11\"),\n11 new UserInfo(\"Novak E.A.\", \"novak@serv.com\", \"Stavropol\"));\n12 data.put(new AuthorizeInfo(\"2\", \"22\"),\n13 new UserInfo(\"Storzev E.P.\", \"storzev@serv.com\", \"Moskow\"));\n14 data.put(new AuthorizeInfo(\"3\", \"33\"),\n15 new UserInfo(\"Gumin T.S.\", \"gumin@serv.com\", \"New York\"));\n16 data.put(new AuthorizeInfo(\"4\", \"44\"),\n17 new UserInfo(\"Shildin F.A.\", \"shildin@serv.com\", \"Paris\"));\n18 data.put(new AuthorizeInfo(\"5\", \"55\"),\n19 new UserInfo(\"Skripin T.T.\", \"skripin@serv.com\", \"Krasnodar\"));\n20 data.put(new AuthorizeInfo(\"6\", \"66\"),\n21 new UserInfo(\"Gunin F.F.\", \"gunin@serv.com\", \"Georgievsk\"));\n22 }\n23\n24 private Hashtable<AuthorizeInfo, UserInfo> data;\n25\n26 public UserInfo getUser(AuthorizeInfo ob){\n27 if(data.containsKey(ob))\n28 return data.get(ob);\n29 else return null;\n30 }\n31 }\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 207, |
| 938, |
| 953, |
| 938, |
| 953, |
| 1405, |
| 207, |
| 1405 |
| ], |
| "anno_id": 4, |
| "text": "```\n 5 public class LogoExample {\n 6\n 7 public static void main(String[] args) {\n 8 UserStorage task = new UserStorage();\n 9 Scanner sc = new Scanner (System.in);\n10 System.out.print(\"Введите логин > \");\n11 String login = sc.next();\n12 System.out.print(\"Введите пароль > \");\n13 String pwd = sc.next();\n14 UserInfo user = task.getUser(new AuthorizeInfo(login, pwd));\n15 if(user != null)\n16 {\n17 System.out.println(user.fio);\n18 System.out.println(user.city);\n19 System.out.println(user.mail);\n20 }\n21 else\n22 System.out.println(\"нет такого пользователя!\");\n23\n24 }\n25 }\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_26387f6f44d4ad6a550dbbb23aff9e0b_183_112.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 222, |
| 151, |
| 963, |
| 151, |
| 963, |
| 184, |
| 222, |
| 184 |
| ], |
| "anno_id": 0, |
| "text": "```\nCall MPI_COMM_RANK(MPI_COMM_WORLD, Rank, Ierr)\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 159, |
| 215, |
| 952, |
| 215, |
| 952, |
| 1363, |
| 159, |
| 1363 |
| ], |
| "anno_id": 1, |
| "text": "```\nC «0»-процесс засекает время\n If (Rank.eq.0) time1 = MPI_WTime()\n\nC Каждый процесс определяет свои пределы интегрирования\nC и число интервалов разбиения\n Al = A+(B-A)*Rank/Size\n Bl = Al+(B-A)/Size\n N = 1000000\n\nC Каждый процесс определяет свою частичную сумму ...\n Sum = 0\n Do I = 1,N\n X = AI+(BI-A)*(I-0.5d0)/N\n Sum = Sum + F(X)\n End Do\n\nC «0»-процесс получает частичные суммы и определяет\nC результат\n If (Rank.eq.0) Then\n GSum = Sum\n Do I=1,Size-1\n Call MPI_RECV(ISum, 1, MPI_DOUBLE_PRECISION,\n $ i, 0, MPI_COMM_WORLD, Status, Ierr)\n GSum = GSum + ISum\n End Do\n\n time2 = MPI_WTime()\n GSum = GSum/(N*Size)\n Write (6,\\*) 'Result=',GSum,'Error=',1-GSum,\n $ 'Time=',time2 - time1\n else\n Call MPI_SEND(Sum, 1, MPI_DOUBLE_PRECISION, 0,\n $ 0, MPI_COMM_WORLD, Ierr)\n End If\n Call MPI_FINALIZE(Ierr)\n Stop\n End\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_de6f448d41597a55a68e961501b7e4c2_198_60.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 182, |
| 202, |
| 1002, |
| 202, |
| 1002, |
| 561, |
| 182, |
| 561 |
| ], |
| "anno_id": 1, |
| "text": "```\nvar p:^integer;\n a:string;\nbegin\n...\np^:=p^*2; //обращение к значению, на которое ссылается\n //указатель (разыменовывание)\nif p=nil then... //использование адреса\np:=nil; //использование адреса\n...\nend.\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_43529919083f93e8a6343c7699484373_154_7.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 320, |
| 708, |
| 706, |
| 708, |
| 706, |
| 925, |
| 320, |
| 925 |
| ], |
| "anno_id": 7, |
| "text": "```\n===================== RESTART: C:/\ninserire la base:10\ninserire l'altezza:5\nIl rettangolo con:\n- la base : 10\n- l'altezza: 5\n-> la misura dell'area : 50\n-> il perimetro misura : 30\n>>>| \n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "it" |
| }, |
| "image_path": "it_552cd0778f1df65f4e5a9075a5403e30_114_33.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 82, |
| 154, |
| 788, |
| 154, |
| 788, |
| 565, |
| 82, |
| 565 |
| ], |
| "anno_id": 1, |
| "text": "```\n<script language=\"javascript\">\nreponse=prompt(\"Javascript est un langage: A.non typé B.Faiblement\ntypé C.Typé\", \"Saisissez ici la lettre correspondant à votre réponse\");\nswitch (reponse)\n{\ncase \"A\":\nalert(\"Pas tout-à-fait, ré-essayez\");\nbreak;\ncase \"B\":\nalert(\"Bravo! C'est exact\");\nbreak;\ncase \"C\":\nalert(\"Pas tout-à-fait, ré-essayez\");\nbreak;\ndefault:\nalert(\"Votre réponse ne correspond pas aux propositions\");\nbreak;\n}\n</script>\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "fr" |
| }, |
| "image_path": "fr_955b62e7b2e3eab0cac60bf2050eec87_189_49.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 153, |
| 191, |
| 894, |
| 191, |
| 894, |
| 665, |
| 153, |
| 665 |
| ], |
| "anno_id": 1, |
| "text": "```\nprogram znaki;\nvar\n c : char;\n\nbegin\n write ('Podaj znak: ');\n readln (c);\n if c = ' '\n then writeln ('Spacja')\n else if (c >= '0') and (c <= '9')\n then writeln ('Cyfra')\n else if ((c >= 'A') and (c <= 'Z')) or ((c >= 'a')\n and (c <= 'z'))\n then writeln ('Litera')\n else if ord (c) < 32\n then writeln ('Znak sterujacy')\n else writeln ('Symbol');\nend.\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 153, |
| 831, |
| 825, |
| 831, |
| 825, |
| 1306, |
| 153, |
| 1306 |
| ], |
| "anno_id": 4, |
| "text": "```\nprogram wykres1;\nvar\n liczby : array [1..10] of real;\n licznik, gwiazdki : integer;\n\nbegin\n for licznik := 1 to 10 do\n begin\n write ('Podaj liczbę ', licznik, ' ');\n read (liczby[licznik]);\n end;\n for licznik := 1 to 10 do\n begin\n for gwiazdki := 1 to round (liczby[licznik]) do\n write ('*');\n writeln (' ', liczby[licznik]:0:2);\n end;\nend.\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pl" |
| }, |
| "image_path": "pl_d60773f20f145720b1736faef421dfe8_195_169.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 115, |
| 118, |
| 474, |
| 118, |
| 474, |
| 349, |
| 115, |
| 349 |
| ], |
| "anno_id": 0, |
| "text": "```\n cp \"$1\" default/\nfi\n\nif [ \"$?\" = \"0\" ]\nthen\n echo \"Skopiowano\"\nelse\n echo \"Nie skopiowano\"\nfi\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 115, |
| 1027, |
| 661, |
| 1027, |
| 661, |
| 1408, |
| 115, |
| 1408 |
| ], |
| "anno_id": 4, |
| "text": "```\n#!/bin/bash\n\nilosc_arg=\"$#\"\n\nif [ $ilosc_arg = \"0\" ]\nthen \n echo \"Nie podales argumentow\"\nelif [ $ilosc_arg = \"1\" ]\nthen \n echo \"Podales jeden argument: $1\"\nelif [ $ilosc_arg = \"2\" ]\nthen \n echo \"Podales dwa argumenty: $1 $2\"\nelif [ $ilosc_arg = \"3\" ]\nthen\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pl" |
| }, |
| "image_path": "pl_27b73e67762c46a7421b56797d82dab6_71_24.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 218, |
| 159, |
| 887, |
| 159, |
| 887, |
| 609, |
| 218, |
| 609 |
| ], |
| "anno_id": 2, |
| "text": "```\n pValueStream);\n wprintf(L\"callback() cbStreamSize: %ul\\n \",\n cbStreamSize);\n if (BluetoothSdpGetElementData(pValueStream,\n cbStreamSize,\n &sdpElementData)\n != ERROR_SUCCESS) {\n //...\n return FALSE;\n }\n else {\n //...\n return TRUE;\n }\n}\n//------------------------------------------------\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 219, |
| 1057, |
| 779, |
| 1057, |
| 779, |
| 1228, |
| 219, |
| 1228 |
| ], |
| "anno_id": 8, |
| "text": "```\n DWORD BluetoothSdpGetAttributeValue( \n __in LPBYTE pRecordStream, \n __in ULONG cbRecordLength, \n __in USHORT usAttributeId, \n __out PSDP_ELEMENT_DATA pAttributeData \n);\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pl" |
| }, |
| "image_path": "pl_359037ddc256584fde4d7d8300b1000e_156_65.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 198, |
| 198, |
| 578, |
| 198, |
| 578, |
| 687, |
| 198, |
| 687 |
| ], |
| "anno_id": 1, |
| "text": "```\nint i, *pEntero;\n/* Llenamos el vector con los números 1, 2, 3, 4 y 5 */\nfor(i=0;i<5;i++)\n{\n vector[i]=i+1;\n}\n/* Hacemos que el puntero apunte al array */\npEntero = vector;\nprintf(\"%i\\n\", *pEntero);\npEntero++; /* Equivale a pEntero = pEntero +1 */\n printf(\"%i\\n\", *pEntero);\npEntero++;\nprintf(\"%i\\n\", *pEntero);\npEntero++;\nprintf(\"%i n\", *pEntero);\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 202, |
| 1213, |
| 591, |
| 1213, |
| 591, |
| 1430, |
| 202, |
| 1430 |
| ], |
| "anno_id": 6, |
| "text": "```\n/*\n * Programa: ej03b.c\n *\n * Descripción:\n * Muestra el uso de los operadores incremento y decremento\n * con un puntero, así como las peculiaridades de cada tipo\n * de puntero.\n *\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 622, |
| 196, |
| 1020, |
| 196, |
| 1020, |
| 1449, |
| 622, |
| 1449 |
| ], |
| "anno_id": 8, |
| "text": "```\n * Compilación:\n * gcc ej03b.c -o ej03b\n *\n */\n#include<stdio.h>\nmain()\n{\n /* Declaramos las variables necesarias */\n int vectorE[5];\n int i, *pEntero;\n char vectorC[5], *pCaracter;\n float vectorR[5], *pReal;\n /* Llenamos los vectores con datos*/\n for(i=0;i<5;i++)\n {\n vectorE[i]=i+1;\n vectorC[i]=i+40;\n vectorR[i]=(float)i*0.1;\n }\n /*Hacemos que el puntero apunte al array*/\n pEntero = vectorE;\n pCaracter = vectorC;\n pReal = vectorR;\n printf(\"\\n Los puntero se incrementaran es:\");\n printf(\"\\n pEntero: %i bytes\", sizeof(int));\n printf(\"\\n pCaracter: %i bytes\", sizeof(char));\n printf(\"\\n pReal: %i bytes\", sizeof(float));\n printf(\"\\n Cada vez que pongamos pountero+\\n\");\n printf(\"%i,%c,%f\\n\", *pEntero, *pCaracter, *pReal);\n pEntero++; /* Equivale a pEntero=pEntero+1*/\n pCaracter++; /* Equivale a pCaracter-pCaracter+I*/\n pReal++; /* Equivale a pReal=pReal+I*/\n printf(\"%i, %c, %f\\n\", *pEntero, *pCaracter, *pReal);\n pEntero++;\n pCaracter++;\n pReal++;\n printf(\"%i, %c, %f\\n\", *pEntero, *pCaracter, *pReal);\n pEntero++;\n pCaracter++;\n pReal++;\n printf(\"%i, %c, %f\\n\", *pEntero, *pCaracter, *pReal);\n pEntero++;\n pCaracter++;\n pReal++;\n printf(\"%i, %c, %f\\n\", *pEntero, *pCaracter, *pReal);\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "es" |
| }, |
| "image_path": "es_4a62197621b2275999bcbd4d900ecd99_68_24.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 86, |
| 160, |
| 389, |
| 160, |
| 389, |
| 729, |
| 86, |
| 729 |
| ], |
| "anno_id": 2, |
| "text": "```\n height: 80%;\n float: left;\n background-color: darkgray;\n}\n#tresc {\n width: 60%;\n height: 80%;\n float: left;\n background-color: silver;\n}\n#menuprawe {\n width: 20%;\n height: 80%;\n float: right;\n background-color: darkgray;\n}\n#stopka {\n background-color: gray;\n clear: both;\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pl" |
| }, |
| "image_path": "pl_bd256b6111e2773662c376c5f21df105_140_81.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 175, |
| 152, |
| 697, |
| 152, |
| 697, |
| 1430, |
| 175, |
| 1430 |
| ], |
| "anno_id": 0, |
| "text": "```\n var bytes = convertToByteArray(strArray[i]);\n \n // アンマネージドメモリーへのコピー\n var strPtr = Marshal.AllocHGlobal(bytes.Length);\n Marshal.Copy(bytes, 0, strPtr, bytes.Length);\n\n ptrs[i] = strPtr;\n}\n\n//関数呼び出し.\nNativeMethods.sampleFunc(ptrs, ptrs.Length);\n\n//書き換えられた文字列を取得・復元.\nfor (int i=0;i<ptrs.Length;++i)\n{\n //バイト列から文字列への復元処理.\n var str = convertIntPtrToString(ptrs[i]);\n strArray[i]=str;\n\n //アンマネージドメモリーを解放.\n Marshal.FreeHGlobal(ptrs[i]);\n ptrs[i]= IntPtr.Zero;\n}\n\n//文字列からバイト配列化:convertToByteArray\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ja" |
| }, |
| "image_path": "ja_e516301e8ccfbf8a23e4e902b79c9c66_166_112.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 247, |
| 156, |
| 980, |
| 156, |
| 980, |
| 642, |
| 247, |
| 642 |
| ], |
| "anno_id": 2, |
| "text": "```\nif(isset($_POST['submit'])){\n $collection->updateOne(\n ['_id' => new MongoDB\\BSON\\ObjectID($_GET['id']))],\n ['$set' => [\n 'NIP' => $_POST['NIP'],\n 'Nama' => $_POST['Nama'],\n 'Phone' => $_POST['Phone'],\n 'Alamat' => $_POST['Alamat'],\n 'Bagian' => $_POST['Bagian'],\n 'Cabang' => $_POST['Cabang'],\n ]\n]\n);\n $_SESSION['success'] = \"Data Mahasiswa berhasil diubah\n header(\"Location: index.php\");\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 249, |
| 839, |
| 1075, |
| 839, |
| 1075, |
| 1029, |
| 249, |
| 1029 |
| ], |
| "anno_id": 6, |
| "text": "```\nif(isset($_POST['submit'])){\n require 'config.php';\n $collection->deleteOne(['_id' => new MongoDB\\BSON\\ObjectID($_)\n $_SESSION['success'] = \"Data Mahasiswa Berhasil dihapus\";\n header(\"Location:index.php\");\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "id" |
| }, |
| "image_path": "id_acf19ec2274103a15989b52104b3d70f_130_93.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 155, |
| 570, |
| 986, |
| 570, |
| 986, |
| 1478, |
| 155, |
| 1478 |
| ], |
| "anno_id": 3, |
| "text": "```\n#define SLA_MAX5821L 0b01110000\nvoid put_DAC_max5821 (unsigned int value, char ch) {\n i2c_start();\n i2c_SLA_W(SLA_MAX5821L);\n i2c_write((value>>6) | (ch<<4));\n i2c_write(value<<2);\n i2c_stop();\n} //************************\nint main() {\n static unsigned int val;\n DDRB = 0xff; DDRC = 0xff; DDRD = 0xff;\n ADMUX=(1<<REFS0);//AVCC+c(AREF), channel=0\n ADCSRA=(1<<ADEN)|(1<<ADPS2)|(1<<ADPS1);//fadc=fclk/64=125KГц, 8*14=112\n init_i2c_Master();\n i2c_start();\n i2c_SLA_W(SLA_MAX5821L);\n i2c_write(0xf0);\n i2c_write(0x0c);\n i2c_stop();\n while (1) {\n val = read_adc(1);//>=112us\n put_DAC_max5821(val, 0);//=87us\n };\n} //***************************\n<i2c.c>\n#include <avr/io.h>\n#include \"i2c.h\"\n\nvoid error_i2c(void) { PORTC |= (1<<6); }\n//-----------------------------------------------------\nvoid init_i2c_Master(void){// 2 Wire Bus initialization\n //PORTC |=((1<<0)|(1<<1));//Pull-Up\n TWCR=(1<<TWEN);//TWEA-Enable ACKn\n TWBR=TWBR_SET;\n//-----------------------------------------------------\nvoid i2c_start(void) {\n TWCR=(1<<TWINT)|(1<<TWSTA)|(1<<TWEN);//Send START condition\n while (!(TWCR & (1<<TWINT)));//Wa it for TWINT flag set\n if((TWSR & 0xF8)!= START) error_i2c();\n}//----------------------------------------------------\nvoid i2c_stop(void) {\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_faaf58a59f64e9c42c3976265dcaa01c_193_160.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 161, |
| 679, |
| 846, |
| 679, |
| 846, |
| 1190, |
| 161, |
| 1190 |
| ], |
| "anno_id": 5, |
| "text": "```\n MODULE;\n SYSTEM;\n OVERFLOW : UEBL ;/* UEBL UND ENDF */\n EOF : ENDF; /* SEIEN SYSTEMNAMEN */\n ...\n PROBLEM;\n SPC (OVERFLOW, EOF) SIGNAL;\n ...\n MODEND;\n \nDie allgemeine Form der Spezifikation von Signalen lautet:\n Signal-Spezifikation ::=\n {SPECIFY | SPC} Bezeichner-Angabe [()] SIGNAL\n [Global-Attribut];\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "de" |
| }, |
| "image_path": "de_f6d649a5bb5ba5f91e1b99492f14c539_197_160.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 53, |
| 60, |
| 837, |
| 60, |
| 837, |
| 1378, |
| 53, |
| 1378 |
| ], |
| "anno_id": 0, |
| "text": "```\n * - формирует усредненную картинку меньшего разрешения\n * с буферизацией растровых строк\n *\n * После вывода очередной картинки ждет нажатия любой клавиши\n *\n * Виды масок:\n * 0:1 1 1: 1 1 1 2: 1 1 1 3: 1 2 1\n * 1 1 1 1 1 1 2 1 2 4 2\n * 1 1 1 1 1 1 1 1 1\n *\n * 4: 1 1 1 1 5: 1 2 3 4 3 2 1\n * 1 1 1 1 2 4 6 8 6 4 2\n * 1 1 1 1 3 6 9 12 9 6 5\n * 1 1 1 1 4 8 12 16 12 8 4\n * 3 6 9 12 9 6 5\n * 2 4 6 8 6 4 2\n * 1 2 3 4 3 2 1\n */\n\n#include \"V_VECTOR.C\"\n#include \"VGA_256.C\"\n#include \"V_FILTR.C\"\n\n#include <conio.h>\n#include <graphics.h>\n#include <stdio.h>\n\n#define VECTOR 0 /* 0/1 - фикс вектор/ввод координат */\n\n/*------------------------------------------------------------- Grid\n * Строит сетку 10*10\n */\n\nvoid Grid (void)\n{ int Xn,Yn,Xk,Yk;\n setcolor (170);\n Xn= 0; Xk= getmaxx();\n Yn= 0; Yk= getmaxy();\n while (Xn <= Xk) {line (Xn,Yn,Xn,Yk); Xn+= 10;}\n Xn= 0;\n while (Yn <= Yk) {line (Xn,Yn,Xk,Yn); Yn+= 10;}\n} /* Grid */\n\n/*------------------------------------------ main Filtr */\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_7c442bb096918f2acccf3bd1b717ea84_197_131.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 185, |
| 114, |
| 798, |
| 114, |
| 798, |
| 1442, |
| 185, |
| 1442 |
| ], |
| "anno_id": 0, |
| "text": "```\nLEER) SIND ERLAUBT!\"\n 240 PRINT\n 250 FOR i=1 TO 16\n 260 INPUT (\"Zeile \";i);a$(i)\n 270 PRINT TAB 8; a$(i)\n 280 NEXT i\n 300 REM Zeichen definieren\n 310 FOR b=144 T0 159 STEP 4\n 320 FOR i=O TO 7\n 330 POKE USR CHR$ (b)+i,FN c(a$\n(i+1,TO 8))\n 340 POKE USR CHR$ (b+1)+i,FN c(\na&(i+1,9 TO ) )\n 350 POKE USR CHR$ (b+2)+i,FN c (\na&(i+9,TO 8))\n 360 POKE USR CHR$ (b+3)+i,FN c (\na&(i+9,9 TO ) )\n 370 NEXT i\n 380 REM Zeichen drehen\n 390 FOR i=1 TO 16\n 400 FOR j=1 TO 16\n 410 LET b$(i,j)=a$(j,17-i)\n 420 NEXT j\n 430 NEXT i\n 440 REM ins ursprvengliche Feld\n Uebernehmen\n 450 FOR i=1 TO 16\n 460 LET a$(i)=b(i)\n 470 NEXT i\n 480 NEXT b\n 500 REM Zeichen ausgeben\n 510 PRINT \"Sie koennen anfangen\n\"\n 520 BEEP ,5,2:CLS\n 530 LET ro=10:LET co=15\n 540 PRINT AT ro,co;CHR$ 144;CHR\n$ 145\n 550 PRINT AT ro+1,co;CHR$ 146;\nHR$ 147\n 560 LET t$=INKEY$\n 570 LET rj=10*(t$=\"5\")+20+(t$=\"\n6\")+30*([t$=\"7\")+40+(t$=\"8\")\n 580 IF rj=0 THEN GO TO 560\n 590 GO SUB 690+rj\n 600 PRINT AT ro,co;CHR$ ch;CHR$\n (ch+1)\n 610 PRINT AT ro+1,co;CHR$(ch+2\n);CHR$ (ch+3)\n 620 GO TO 560\n 700 LET ch=148: LET co=co-2+(co\n>2): RETURN\n 710 LET ch=152: LET ro=ro+2+(ro\n<19): RETURN\n 720 LET ch=144: LET ro=ro-2+(ro\n>2): RETURN\n 730 LET ch=156: LET co=co+2+(co\n<29): RETURN\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "de" |
| }, |
| "image_path": "de_b3d2a919673cac8c8ba828ba5dd9a6aa_123_52.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 156, |
| 553, |
| 949, |
| 553, |
| 949, |
| 1189, |
| 156, |
| 1189 |
| ], |
| "anno_id": 2, |
| "text": "```\n#include \"stdafx.h\"\n#include <iostream>\n#include <stdlib.h>\nusing namespace std;\n\nint main (int argc, _TCHAR* argv[])\n{\n int i,size;\n printf(\"\\n Size=\");\n scanf(\"%d\",&size);\n int * pz=(int *) malloc(size * sizeof(int));\n for(i=0;i<size;i++){\n printf(\"pz[%d]=\",i);\n scanf(\"%d\",&pz[i]);\n }\n int sum=0;\n for(i=0;i<size;i++) sum+=pz[i];\n printf(\"summa=%d\\n\",sum);\n free (pz); // освобождаем память\n return 0;\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 158, |
| 1368, |
| 741, |
| 1368, |
| 741, |
| 1459, |
| 158, |
| 1459 |
| ], |
| "anno_id": 5, |
| "text": "```\n// Двумерный динамический массив n*m\ndouble **a;\nint n, m;\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_45cfa1e7c3e4c5d98d2055d05f09621d_142_76.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 131, |
| 1131, |
| 805, |
| 1131, |
| 805, |
| 1445, |
| 131, |
| 1445 |
| ], |
| "anno_id": 9, |
| "text": "```\nСоответствующая структура данных может выглядеть так:\n/* Описание структуры данных \"Студент\" */\nstruct\n{\n char Family[50]; // Фамилия\n char Imy[50]; // Имя\n char Otcestvo[50]; // Отчество\n char NGr[7];// Номер группы\n int GodR; // Год рождения\n float SrBall;// Средний балл\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_74f453272145c3c94afa083d324640e4_164_111.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 195, |
| 380, |
| 759, |
| 380, |
| 759, |
| 480, |
| 195, |
| 480 |
| ], |
| "anno_id": 4, |
| "text": "```\n1 grant {\n2 // zezwalamy na wszystko\n3 permission java . security . AllPermission ;\n4 };\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 156, |
| 551, |
| 837, |
| 551, |
| 837, |
| 716, |
| 156, |
| 716 |
| ], |
| "anno_id": 6, |
| "text": "```\n— dla serwera\n server$ javac *.java\n server$ java -Djava.security.policy=pol2 HelloServer\n— dla klienta\n klient$ javac *.java\n klient$ java HelloCli\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 166, |
| 898, |
| 963, |
| 898, |
| 963, |
| 1449, |
| 166, |
| 1449 |
| ], |
| "anno_id": 9, |
| "text": "```\n 1 public class HelloImpl implements Hello {\n2\n3 public HelloImpl() throws RemoteException {\n4 super();\n5 }\n6\n7 public String sayHello (String name)\n8 throws RemoteException {\n9 return name+\"_\"+(new Date ().toString ());\n10 }\n11\n12 }\n13\n14 public class HelloServer {\n15\n16 public static void main(String args[]){\n17\n18 if (System.getSecurityManager() == null) {\n19 System.setSecurityManager(new RMISecurityManager ())\n20 }\n21\n22 try {\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pl" |
| }, |
| "image_path": "pl_13449a10d6979a29795b713986d0825f_149_71.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 143, |
| 398, |
| 517, |
| 398, |
| 517, |
| 476, |
| 143, |
| 476 |
| ], |
| "anno_id": 3, |
| "text": "```\nboss = Sprite (\"./assets/boss.png\")\nmostrar_boss = False\nvida_boss = 40\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 145, |
| 829, |
| 892, |
| 829, |
| 892, |
| 1306, |
| 145, |
| 1306 |
| ], |
| "anno_id": 7, |
| "text": "```\ndef criar_inimigo (tempo):\n global tempo_inimigos, mostrar_boss\n tempo_ogara = pygame.time.get_ticks()\n if ((tempo_ogara - tempo) >= 2000 and total_inimigos[nivel-1]>0):\n tempo_inimigos = pygame.time.get_ticks()\n total_inimigos[nivel-1]==1\n aleatorio = random.randint(1,3)\n if (aleatorio == 1):\n inimigo = Sprite(\"./assets/enemy1.png\")\n elif (aleatorio ==2):\n inimigo = Sprite('./assets/enemy2.png')\n elif (aleatorio == 3):\n inimigo = Sprite ('./assets/enemy3.png')\n inimigo.set_position (random.randint(45,283), -50)\n inimigos.append ([inimigo,0,[]])\n if nivel == 3 and not mostrar_boss:\n mostrar_boss = True\n boss.set_position (random.randint(45,283),-50)\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pt" |
| }, |
| "image_path": "pt_6f0fa5f9ab797eb34079dc2f9ce5d457_142_127.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 189, |
| 573, |
| 657, |
| 573, |
| 657, |
| 1512, |
| 189, |
| 1512 |
| ], |
| "anno_id": 6, |
| "text": "```\nПример про pаммы на языке паскаль.\nvar a:array[1..60] of record\n name:string;\n sum:real;\n end;\n c:char;\n i, j, N, K:integer;\n m, s :real;\nbegin\n readln(N); {считано количество учеников}\n for i:=1 to N do\nbegin\n a[i].name:=\"\";\n repeat\n read(c);\n a[i].name:=a[i].name+c\n until c=' \"; {считана фамилия ученика}\n repeat\n read(c);\n a[i].name:=a[i].name+c\n until c=' \"; {считано имя ученика}\n a[i].sum:=0;\n for j:=1 to 2 do\n begin\n read(m);\n a[i].sum:=a[i].sum+m\n end; {подсчитана сумма баллов}\n readln;\nend;\n s:= a[1].sum;\nfor i:=2 to N do\n if a[i].sum > s then s:= a[i].sum;\nK := 0\nfor i:=1 to N do\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_b5a2fec9aa1ad7f92e4de3666b09a954_113_77.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 129, |
| 136, |
| 776, |
| 136, |
| 776, |
| 877, |
| 129, |
| 877 |
| ], |
| "anno_id": 0, |
| "text": "```\naddr.sin_addr.s_addr = INADDR_ANY;\nif(-1 == bind(ls, &addr, sizeof(addr))\n { /* ... ошибка ... */ }\nfor(;;) {\n socklen_t slen = sizeof(addr);\n int cls = accept(ls, &addr, &slen);\n if(fork() == 0) { /* дочерний процесс */\n close(ls);\n /* ...\n работает с клиентом через сокет cls\n Клиент пришел с адреса хранящегося\n теперь в структуре addr\n ...\n */\n exit(0);\n }\n /* родительский процесс */\n close(cls);\n /* проверить, не завершились ли какие-либо\n дочерние процессы (убрать зомби) */\n while(wait4(-1, NULL, WNOHANG,NULL)>0);\n /* тело цикла пустое */\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_8d1b4a390beb5bb187cf84577c63614c_193_136.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 150, |
| 654, |
| 656, |
| 654, |
| 656, |
| 941, |
| 150, |
| 941 |
| ], |
| "anno_id": 3, |
| "text": "```\npublic override bool Equals(Object obj)\n{\n if (obj is Curso)\n {\n Curso c = obj as Curso;\n return this.Nome.Equals(c.Nome);\n }\n return false;\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pt" |
| }, |
| "image_path": "pt_ce660d2706231b9b7609d772691e8e57_139_62.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 169, |
| 154, |
| 694, |
| 154, |
| 694, |
| 1316, |
| 169, |
| 1316 |
| ], |
| "anno_id": 0, |
| "text": "```\n n=n+1;\n xc = xa - (((xb-xa)/(fb-fa))*fa);\n fc = f(xc);\n if (fa*fc < 0.0)\n xb = xc;\n fb = fc;\n else\n xa = xc;\n fa = fc;\n end;\nfprintf('%i %f %f\\n',n,xc,fc);\nfprintf(fid,'%i %f %f\\n',n,xc,fc);\nend\nfclose(fid);\nload regula.txt;\nx=regula(:,1);\ny=regula(:,2);\nplot(x,y,'LineWidth',3.5)\nxlabel('i');\nylabel ('y');\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "id" |
| }, |
| "image_path": "id_9d4f122183d5d49311fe5f2ee70d2d67_148_100.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 132, |
| 301, |
| 586, |
| 301, |
| 586, |
| 494, |
| 132, |
| 494 |
| ], |
| "anno_id": 4, |
| "text": "```\nПример 4.1 ✤ c74-web-workers/index.html\n<html>\n <head>\n <title>Shared Memory Hello World</title>\n <script src=\"main.js\"></script>\n </head>\n</html>\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 129, |
| 603, |
| 752, |
| 603, |
| 752, |
| 1061, |
| 129, |
| 1061 |
| ], |
| "anno_id": 6, |
| "text": "```\nПример 4.2 ✤ ch4-web-workers/main.js\nif (!crossOriginIsolated) { ➊\n throw new Error('Невозможно использовать SharedArrayBuffer');\n}\n\nconst worker = new Worker('worker.js');\n\nconst buffer = new SharedArrayBuffer(1024); ➋\nconst view = new Uint8Array(buffer); ➌\n\nconsole.log('сейчас', view[0]);\n\nworker.postMessage(buffer);\n\nsetTimeout(() => {\n console.log('позже', view[0]);\n console.log('prop', buffer.foo); ➍\n}, 500);\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_d8c3cf01434b54f898ebc88665948408_190_84.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 121, |
| 129, |
| 902, |
| 129, |
| 902, |
| 529, |
| 121, |
| 529 |
| ], |
| "anno_id": 1, |
| "text": "```\n 0006 | andreastaulany | Andre Taulany | null | null\n\n(6 rows)\ncqlsh:db_selebriti> UPDATE tb_selebriti SET twitter=null WHERE id='0001';\ncqlsh:db_selebriti> SELECT * FROM tb_selebriti;\n\n id | instagram | nama | twitter | youtube\n------+-----------------+-----------------+------------------------\n 0005 | mastercorbuzier | Deddy Corbuzier | corbuzier | corbuzier\n 0003 | baimwong | Baim Wong | null | null\n 0004 | null | Raffi Ahmad | raffi1234 | null\n 0002 | awkarin | Karin Novilda | awkarin | KarinNovilda97\n 0001 | attahalilintar | Atta Halilintar | null | AttaHalilintar\n 0006 | andreastaulany | Andre Taulany | null | null\n\n(6 rows)\ncqlsh:db_selebriti> UPDATE tb_selebriti SET nama=null WHERE twitter='corbuzier';\nInvalidRequest: Error from server: code=220 [Invalid query] message=\"Some_partition\n\ncqlsh:db_selebriti>\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "id" |
| }, |
| "image_path": "id_acf19ec2274103a15989b52104b3d70f_130_60.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 349, |
| 114, |
| 717, |
| 114, |
| 717, |
| 183, |
| 349, |
| 183 |
| ], |
| "anno_id": 0, |
| "text": "```\nSQL> Select Last_name, title,salary Ann_sal\n2 From S_emp\n3 Where Last_name = 'Dancs';\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 341, |
| 345, |
| 817, |
| 345, |
| 817, |
| 443, |
| 341, |
| 443 |
| ], |
| "anno_id": 2, |
| "text": "```\nSQL> Select *;\n2 From S_emp\n3 Where Salary*12==9600;\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_1d3824a9d5d5602c9655fd96f3c5c88b_118_101.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 95, |
| 151, |
| 907, |
| 151, |
| 907, |
| 1025, |
| 95, |
| 1025 |
| ], |
| "anno_id": 2, |
| "text": "```\na=4; % амплитуда шума\nnoise=zeros(size,nnoise); % начальная инициализация матрицы\n% формирование матрицы пакетов,\n% образованной векторами суммы\nfor i=1:nnoise\n noise(:,i)=2*a*rand(100,1)+da\nend\n% накопление пакетов\nresult=zeros(size,nnoise); % начальная инициализация\nresult(:,1)=noise(:,1);\n% непосредственно цикл суммирования зашумлённых пакетов\n% для наглядности фильтрации пакеты суммируются в матрицу,\n% каждый последующий вектор матрицы\n% образован большим числом пакетов\nfor i=2:nnoise\n result(:,i)=result(:,i-1)+nci\nend\n% нормирование значений\nfor i=2:nnoise\n result(:,i)=result(:,i)/i;\nend\n% визуализация результата\n% результат в 3D\nfigure;\nsurf(result);\n% выборочные результаты 2D\nfigure;\nsubplot(2,2,1); plot(result(:,1));\ntitle('Пакет (сигнал + шум)');\nsubplot(2,2,4); plot(result(:,2));\ntitle('Усреднение по сумме 2 пакетов');\nsubplot(2,2,2); plot(result(:,10));\ntitle('Усреднение по сумме 10 пакетов');\nsubplot(2,2,3); plot(result(:,500));\ntitle('Усреднение по сумме 500 пакетов');\n%===================================================================\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_7d08cb5c7346d41e5bfa1f3ad2e38610_191_67.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 272, |
| 165, |
| 915, |
| 165, |
| 915, |
| 368, |
| 272, |
| 368 |
| ], |
| "anno_id": 0, |
| "text": "```\n short Sonar_iniciar (unsigned short timestamp_n, char num){\n temp = timestamp_n - sonartstamp_ch[(short)num];\n if ( temp > 68) {\n i2c_writebyte (sonaraddr_ch[(short)num],0,81);// modo distancia cm\n sonartstamp_ch[(short)num] = timestamp_n;// nuevo timestamp\n }\n return 0;\n\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "es" |
| }, |
| "image_path": "es_cf6da11596b1cdc681124904512daebc_137_120.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 139, |
| 111, |
| 769, |
| 111, |
| 769, |
| 1194, |
| 139, |
| 1194 |
| ], |
| "anno_id": 0, |
| "text": "```\n public static $browsers = array(\n array(\n 'name' => 'Safari (system Mac OS X)',\n 'browser' => '*safari',\n 'host' => 'mac.testbox',\n 'port' => 4444,\n 'timeout' => 30000\n ),\narray(\n 'name' => 'Firefox (system Windows)',\n 'browser' => '*firefox',\n 'host' => 'windows.testbox',\n 'port' => 4444,\n 'timeout' => 30000\n ),\n array(\n 'name' => 'Chrome (system Windows XP)',\n 'browser' => '*googlechrome',\n 'host' => 'windows.testbox',\n 'port' => 4444,\n 'timeout' => 30000\n ),\n array(\n 'name' => 'Internet Explorer (system Windows XP)',\n 'browser' => '*iexplore',\n 'host' => 'windows.testbox',\n 'port' => 4444,\n 'timeout' => 30000\n )\n );\n \n protected function setUp()\n {\n $this->setBrowserUrl('http://www.przyklad.com/');\n }\n\n public function testSeleniumFile()\n {\n $this->open('http://www.przyklad.com/');\n $this->runSelenese('seleneseTest.html');\n }\n\n}\n?>\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pl" |
| }, |
| "image_path": "pl_8080d45fa7f8a16117c0ea11c6b43372_164_59.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 168, |
| 150, |
| 751, |
| 150, |
| 751, |
| 1441, |
| 168, |
| 1441 |
| ], |
| "anno_id": 0, |
| "text": "```\nimport androidx.activity.viewModels\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.material.Button\nimport androidx.compose Material.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\n\nclass MainActivity: ComponentActivity() {\n private val viewModel: CountViewModel by viewModels()\n\n override fun onCreate(savedInstanceState: Bundle?) {\n super.onCreate(savedInstanceState)\n setContentView {\n CountUp(viewModel = viewModel)\n }\n }\n}\n\n/**\n * カウントアップボタンと現在のカウントの回数を\n * 表示するComposable関数\n *\n * カウントアップボタンが押下されるたびに、ViewModelで\n * 保持されるカウントの回数を1つ増やし、表示を更新する。\n */\n@Composable\nfun CountUp(viewModel: CountViewModel) {\n val count: Int by viewModel.count\n\n Column {\n Text(\n text = \"$count\"\n )\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ja" |
| }, |
| "image_path": "ja_71c4d25273269b7a9789a3b95a818dcf_127_72.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 397, |
| 536, |
| 727, |
| 536, |
| 727, |
| 650, |
| 397, |
| 650 |
| ], |
| "anno_id": 9, |
| "text": "```\ndiv{ width: 600px;\n padding: 10px;\n border: 1px solid black;\n margin: 20px; }\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "de" |
| }, |
| "image_path": "de_9c5867c66d2948d6083854441afc4e08_160_82.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 251, |
| 185, |
| 876, |
| 185, |
| 876, |
| 1421, |
| 251, |
| 1421 |
| ], |
| "anno_id": 1, |
| "text": "```\n matr[i, 3] = node.z\n return np.linalg.det(matr) /6\n\n# Определение числа граней, выходящих\n# на поверхность тела.\ndef get_surface_node_indices(self):\n surface_edges = self.neighbours.count(-1)\n if surface_edges > 1:\n for i in range(4):\n yield i\n elif surface_edges == 1:\n edge_idx = self.neighbours.index(-1)\n for i in range(3):\n yield (edge_idx + i) % 4\n\n# Вычисление матрицы формы элемента\ndef get_shape_matrix(self):\n x1 = self.nodes_coords[0].x\n y1 = self nodes_coords[0].y\n z1 = self.nodes_coords[0].z\n x2 = self.nodes_coords[1].x\n y2 = self.nodes_coords[1].y\n z2 = self.nodes_coords[1].z\n x3 = self.nodes_coords[2].x\n y3 = self.nodes_coords[2].y\n z3 = self.nodes_coords[2].z\n x4 = self.nodes_coords[3].x\n y4 = self.nodes_coords[3].y\n z4 = self.nodes_coords[3].z\n v = self.get_volume()\n mbeta1 = np.array([[1,y2,z2], [1,y3,z3], [1,y4,z4]])\n mbeta2 = np.array([[1,y1,z1], [1,y3,z3], [1,y4,z4]])\n mbeta3 = np.array([[1,y1,z1], [1,y2,z2], [1,y4,z4]])\n mbeta4 = np.array([[1,y1,z1], [1,y2,z2], [1,y3,z3]])\n mgamma1 = np.array([[1,x2,z2], [1,x3,z3], [1,x4,z4]])\n mgamma2 = np.array([[1,x1,z1], [1,x3,z3], [1,x4,z4]])\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_ab66a436165cf5fab98ad2731fd5ea22_87_61.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 114, |
| 156, |
| 949, |
| 156, |
| 949, |
| 1340, |
| 114, |
| 1340 |
| ], |
| "anno_id": 0, |
| "text": "```\n string user = returnData;\n Console.WriteLine(\"Welcome \" + user + \" to the server\");\n //обмен сообщениями сервер с клиентом\n while (true) {\n returnData = reader.ReadLine();\n if (returnData.IndexOf(\"QUIT\") > -1) {\n Console.WriteLine(\"Bye \" + user);\n break;\n }\n Console.WriteLine(user + \": \" + returnData);\n returnData += \"\\r\\n\";\n byte[] dataWrite = Encoding.ASCII.GetBytes(returnData);\n writer.Write(dataWrite, 0, dataWrite.Length);\n }\n clientSocket.Close(); // закрытие сокета на сервере\n }\n}\nclass Program {\n public static int nClients = 0; //кол-во клиентов\n static void Main(string[] args) {\n try{\n // создание сервера по порту 10000\n TcpListener newListener = new TcpListener(10000);\n newListener.Start();\n Console.WriteLine(\"Waiting for connection...\");\n while(true) {\n // прослушивание порта в ожидание запросов от клиентов\n TcpClient client = newListener.AcceptTcpClient();\n // создание потока для работы с клиентом\n ClientHandler cHandler = new ClientHandler();\n cHandler.clientSocket=client;\n Thread clientThread =\n new Thread(new ThreadStart(cHandler.RunClient));\n clientThread.Start();\n }\n newListener.Stop(); //остановка сервера\n }\n catch(Exception exp) { Console.WriteLine(\"Exception:\" + exp); }\n }\n}\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_02d99aa7ad26e8d34f46dd914f93048b_112_29.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 100, |
| 762, |
| 689, |
| 762, |
| 689, |
| 1196, |
| 100, |
| 1196 |
| ], |
| "anno_id": 11, |
| "text": "```\n// LoopFor.cpp\n// Ilustra o uso do\n// loop for.\n#include <iostream.h>\nint main()\n{\n int contador = 0;\n cout << \"\\n*** Usando while ***\";\n while(contador < 10)\n {\n contador++;\n cout << \"\\nContador = \"\n << contador;\n } // Fim de while.\n cout << \"\\n\\n*** Usando for ***\";\n for(contador = 0; contador <= 10; contador++)\n cout << \"\\nContador = \"\n << contador;\n return 0;\n} // Fim de main()\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pt" |
| }, |
| "image_path": "pt_f4ae8c29e4f94e2e8900cf002b95f5bb_193_61.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 104, |
| 1082, |
| 1104, |
| 1082, |
| 1104, |
| 1532, |
| 104, |
| 1532 |
| ], |
| "anno_id": 6, |
| "text": "```\n 1 #include \"vtkPolyDataMapper.h\"\n 2 ...\n 3\n 4 int main()\n 5 {\n 6\n 7 vtkStructuredPointsReader *reader = vtkStructuredPointsReader::New();\n 8 reader -> SetFileName (\"T.vtk\");\n 9 reader -> Update();\n10\n11 vtkDataSetMapper *mapper = vtkDataSetMapper::New();\n12 mapper -> SetInputConnection(reader -> GetOutputPort());\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "ru" |
| }, |
| "image_path": "ru_3ee8d3772d6fd6d4d67ef851f6aaef89_175_74.jpg" |
| }, |
| "extra": {} |
| }, |
| { |
| "layout_dets": [ |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 99, |
| 169, |
| 566, |
| 169, |
| 566, |
| 617, |
| 99, |
| 617 |
| ], |
| "anno_id": 1, |
| "text": "```\n// Destrutor.\nCliente::~Cliente()\n{\n cout << \"\\nDestruindo cliente...\";\n} // Fim de Cliente::~Cliente()\nint Cliente:acessaNumCliente()\n{\n return numCliente;\n} // Fim de Cliente: :acassaNumCliente()\nfloat Cliente:acassaSaldo()\n{\n return saldo;\n} // Fim de Cliente: acassaSaldo()\nvoid Cliente:exibe()\n{\n cout << \"\\nCliente = \"\n << acessaNumCliente()\n << \", Saldo = \"\n << acessaSaldo()\n << \"\\n\";\n} // Fim de Cliente: exibe ()\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| }, |
| { |
| "category_type": "text_block", |
| "poly": [ |
| 101, |
| 1099, |
| 514, |
| 1099, |
| 514, |
| 1400, |
| 101, |
| 1400 |
| ], |
| "anno_id": 9, |
| "text": "```\n// ConstMt.cpp\n// Ilustra o uso\n// de métodos const.\n#include <iostream.h>\n// Define uma classe.\nclass Cliente\n{\n // Por default, estes membros\n // são\n //private:\n int numCliente;\n float saldo;\n // Estes métodos\n // são private e const.\n```", |
| "attribute": { |
| "text_background": "white", |
| "text_rotate": "normal" |
| } |
| } |
| ], |
| "page_info": { |
| "page_attribute": { |
| "language": "pt" |
| }, |
| "image_path": "pt_f4ae8c29e4f94e2e8900cf002b95f5bb_193_124.jpg" |
| }, |
| "extra": {} |
| } |
| ] |