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
diff -Naur ns-allinone-3.34/ns-3.34/src_orig/aodv/model/aodv-routing-protocol.cc ns-allinone-3.34/ns-3.34/src/aodv/model/aodv-routing-protocol.cc | |
--- ns-allinone-3.34/ns-3.34/src_orig/aodv/model/aodv-routing-protocol.cc 2021-07-14 18:31:06.000000000 +0100 | |
+++ ns-allinone-3.34/ns-3.34/src/aodv/model/aodv-routing-protocol.cc 2021-08-16 12:25:40.915620956 +0100 | |
@@ -296,6 +296,12 @@ | |
StringValue ("ns3::UniformRandomVariable"), | |
MakePointerAccessor (&RoutingProtocol::m_uniformRandomVariable), | |
MakePointerChecker<UniformRandomVariable> ()) | |
+ .AddAttribute ("IsMalicious", "Is the node malicious", | |
+ BooleanValue (false), | |
+ MakeBooleanAccessor (&RoutingProtocol::SetMaliciousEnable, |
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
(defn country->flag | |
"Convert an ISO 3166 Alpha-2 country code to its unicode flag." | |
[country] | |
(str/replace | |
(str/upper-case country) | |
#"." | |
#(.fromCodePoint js/String (+ (.charCodeAt %1 0) 127397)))) |
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
#!/usr/bin/env python3 | |
for i in range(98): | |
"eat pie" | |
x = 'a' * 1000000 | |
squiggly = 5 ** 0.5 | |
print("hi") |