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
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
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
| class Solution { | |
| public: | |
| int longestSubstring(string s, int k) { | |
| unordered_map<char, pair<int, pair<int, int>>> charCount; | |
| for (int i = 0; i < s.length(); i++) | |
| { | |
| if (charCount.find(s[i]) != charCount.end()) | |
| { | |
| charCount[s[i]].first++; | |
| charCount[s[i]].second.second = i; |
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
| def get_trx_id(strt, nd, file_log): | |
| trx_id = [] | |
| chk_error = "Card Declined" | |
| while True: | |
| line = file_log.readlines() | |
| if chk_error in line: | |
| trx_id.append([line.split("|")[6]]) # This gets the unique ID of the entire transaction | |
| return trx_id |