This file contains 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
# Basics of Elliptic Curve Cryptography implementation on Python | |
import collections | |
def inv(n, q): | |
"""div on PN modulo a/b mod q as a * inv(b, q) mod q | |
>>> assert n * inv(n, q) % q == 1 | |
""" | |
for i in range(q): | |
if (n * i) % q == 1: |
This file contains 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 --git a/src/modules/i3.cpp b/src/modules/i3.cpp | |
index 383a39f..e16d2ab 100644 | |
--- a/src/modules/i3.cpp | |
+++ b/src/modules/i3.cpp | |
@@ -160,6 +160,15 @@ namespace modules { | |
// Trim leading and trailing whitespace | |
ws_name = string_util::trim(move(ws_name), ' '); | |
+ if (ws_name.back() == '_' && !ws->visible) { | |
+ continue; |