This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const testValues = [_]u64{ 31084, 40541461584, 6208, 306501986, 21276000, 1432991, 17115994, 19961295, 22953531, 18894343830, 4312695565, 391, 25202, 5324514, 658234, 26804472776473, 1503368, 24803314445, 1021069871, 1614, 4258805, 4495130022, 45111648, 2964501691711, 90685578359, 13608006, 4645623, 2569495, 134484, 1143450000, 5449, 23061783, 2930, 2115475, 19449, 4595553, 208314087, 2905504, 963368, 9980664, 652568, 45827, 722, 27652464029930, 6868809, 1175, 2133, 528, 8206806, 37530658373, 65484738025, 2157, 23082508, 29090880, 1262763, 1409848204234, 3304, 1196013120, 124278235, 2735190615, 52192, 573777850, 35694425, 658877085778, 20860682976, 224616, 358087, 6354432, 1923524, 117340, 1234059, 2651349895, 3884759, 633925731, 43555, 4230519, 5489, 82630872, 203340489, 72068, 168389664, 30367442, 2846739576, 78401, 627886555182, 53361, 154268, 525075263, 248294606, 9082152, 1657909631, 484430, 11192683920, 52887178, 896861, 721710054179, 12403134, 33615296, 183192, 124479466114 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const map = [_][]const u8{ "..................#................................................................#........#.....................................", "...#...........#...................................................#........................................#.................#...", "...................................#................#.#...............#.................................................#.........", ".....#......#................#.....................................................................#..........#........#......#...", "............................................................................................#.....................#...............", ".....................#..##...#........................#.................#.......................#..#.........#.......#...#......#.", "............##....................................##..................#...............................#....#......................", ".............#............#.# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const haystack = [_][]const u8{ "AAMXMSMMMSMMSSMMXMASMAMXXMAMAMXXMASMXMXXMMMXMMXMAMXMXSMMMXMXSAMXSASXMAMXAMAMXSXSSSMXXMASAMMMMASXMAMXAMXAXMASXMASAMXSSMMSAMXAXXAMMXXXXSMAAMAM", "SMSSMMMAAMAAAAAXMAXAMAMXASXSSMMSMMAXAXXASAXAAXSMMSAMMAAASXSASASAMXMMSAMXMMAMMMAMMAMAXMXXMMSAMMSASASASASAXMMXXMASXMASAAAMAMXXMAMXMMMXXAMXXMAA", "MAAAAXSMSSMMSXMMXMSSSMMXMAXAXSAXASMXMMSMMASMSMXAASAMAMMMXAMASMMAMXMASASAASAMAMAMSAMSXSSMSXXAXAXAMASAMAAXMMAMXSAXMXMSMMMSSMAASMSMAXAASAMMSSMS", "MMMSMMMAMAXAMXMSAMAMAMMSXMXMMMXMMMMAAMMXMMMXAMMSMSMMXSAMMAMAMASXMAMXSMMMMSAXXSSXXASXMXSMXASXMSMSMXMAMSMSMXAMMMAXMAAXAMAAAMSMAAAMAMSMMAAAMAMX", "SXXXXXMAMSASAXMAXMASMMAMAXMXASMSMAMSMSMAXSASMMAAAMMMASAXSAMMSAMAXMXAXXMAMMAMXMMMSSMAMAMMMMMXAAAAMAMAMAAXMXASAMXASMSXAMMMSMAMMSMMXXXASMMXSAMX", "XAMMMSSSSXAMMMSAMMXMMMAMMMAMSAAAMSXXAAXAMXMMXMSSSMAMXMMMSASAMASMMSMMSMSASMAMXAMMMAAAMAXSASAMXMSMSASASMSMMSASMSSMXAXXXMXXMXMMAMXMMASAMMAMSMSS", "XXSAAXAMXMMMAASAMSXSASMSSXSXXMSMSMAMSMMXSSMXXXAMAMXXMAMXSAMXSAMMAXAMXAMAMMAMMXMAMXMMMXMSASXSXXXASM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const memory = "why()$mul(735,469)^?!what()don't()~~('mul(982,758)what()^-^who()mul(294,364)&#/ )&%)[~mul(285,81)what()[{where()+ mul(129,761)^]why()>$^<>who()mul(53,344)select()%mul(567,352),mul(915,20)/#(>+^how()'mul(141,658){&~!how()from()?~?who()mul(830,116)#%;mul(139,634)?,#+who()@mul(169,719)[)?'-who();mul(18,751)},when(){;/mul(691,391)mul(856,314)^mul(558,88)]('/>how()@where()(,mul(274,100)%who()#~*mul(220,748)@how(){$how()/*%$when()mul(718,754)[!when(617,291)!{(what()+*do()[;<+ /from()[mul(840,803)}?mul(429,848)?select()how()^why()],&#select()mul(519,894){ !>:^@+mul(522,225)@!^^/'[>select(118,66)>mul(847,195)when(585,749)]mul(641,667):>mul(317,349) +:/^*what()mul(352,440)select()mul(349,981))@mul(450,917)why()how()mul(471,401)?where():}select():mul(632,956))mul(727,370)!}$~*%+$don't()why()select()^]who():mul(276,773)*^^mul(757,668):}mul(232,346)%[*@$ where()mul(898,992)who()why()~+['mul(43,434),where()who()>what()mul(908,953)select();do()}!select()when()!mul(676,368)how()f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const ArrayList = std.ArrayList; | |
const reports = [_][]const u8{ "6 8 11 12 14 16 18 16", "73 76 79 80 81 84 86 86", "32 33 34 37 40 44", "9 11 13 14 17 24", "59 61 64 62 65", "33 36 37 39 36 35", "60 62 64 61 62 64 64", "12 15 16 15 17 18 22", "72 73 75 77 79 82 79 85", "60 61 64 64 67 69", "44 45 45 46 48 50 52 51", "9 11 11 13 14 14", "3 5 8 11 11 15", "48 51 52 52 53 54 59", "76 77 80 84 86 87", "30 32 33 35 38 42 41", "91 92 93 97 97", "59 61 63 67 69 73", "59 60 64 67 68 73", "28 30 31 36 39 42", "26 29 32 34 40 39", "64 65 67 74 75 78 79 79", "49 52 59 61 65", "34 35 42 43 44 51", "12 10 11 14 17 18 20 21", "68 67 70 73 71", "80 79 80 81 84 86 88 88", "60 58 60 61 62 66", "14 12 13 14 17 18 21 28", "24 21 24 26 25 26", "30 29 32 35 37 34 33", "45 42 41 44 44", "55 52 49 52 55 58 59 63", "10 9 11 14 16 14 17 24", "44 42 43 44 45 45 48 51", "53 52 52 55 53", "42 39 42 43 45 45 48 48", "86 83 83 86 90", "7 4 7 8 8 11 18", "58 55 56 59 63 66 68 70", "77 75 79 81 78", "93 90 93 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const list1 = [_] i32 {85215, 24582, 98037, 75786, 45656, 70998, 30367, 81780, 90260, 24710, 14018, 43565, 59781, 47761, 85892, 25701, 18264, 33747, 39697, 61838, 70437, 23562, 11216, 63191, 88615, 93481, 29534, 29935, 95190, 51306, 30938, 77253, 66807, 75203, 15696, 73541, 52063, 55826, 79183, 77348, 65423, 65816, 52110, 18201, 27748, 92259, 14988, 58623, 88260, 62079, 45698, 91705, 53661, 93541, 76689, 60498, 25784, 32811, 62264, 41995, 38545, 19555, 73703, 86068, 25850, 49433, 74291, 40711, 37728, 80842, 24677, 29575, 20692, 82910, 33830, 68434, 62401, 82646, 38398, 79408, 63734, 13556, 75123, 61363, 95609, 88545, 50893, 14882, 91379, 60224, 72679, 75505, 10186, 88379, 90496, 73586, 95670, 87141, 13919, 98555, 87897, 21880, 29658, 96248, 15492, 29496, 25334, 20643, 56611, 29416, 74832, 43193, 81875, 61800, 24065, 83853, 17180, 43720, 65647, 51476, 57574, 31072, 75113, 79797, 72214, 13116, 93787, 46134, 40985, 25988, 23062, 79383, 75339, 79708, 13058, 16278, 80414, 16351, 54813, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logResult(winningMove, losingMove, computerWins) { | |
console.log(winningMove + " beats " + losingMove + "! You " + (computerWins ? "lose" : "win") + "! \n Player: " + playerScore + " \n Computer: " + computerScore); | |
} | |
logResult(playerSelection, computerSelection, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func addSubview(subView:UIView, toView parentView:UIView) { | |
parentView.addSubview(subView) | |
var viewBindingsDict = [String: AnyObject]() | |
viewBindingsDict["subView"] = subView | |
parentView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "H:|[subView]|", options: [], metrics: nil, views: viewBindingsDict)) | |
parentView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "V:|[subView]|", options: [], metrics: nil, views: viewBindingsDict)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from textblob import TextBlob | |
linenum = 0 | |
sentiment = [] | |
Apple= [] | |
AmericanExpress= [] | |
BankofAmerica = [] | |
Caterpillar = [] |