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
#include <iostream> | |
#include <string> | |
std::string compress(const std::string &input) { | |
auto read_idx = 0, count = 0; | |
bool sequence_start = true; | |
std::string output; | |
while (read_idx < input.size()) { | |
char c = input[read_idx]; | |
if (std::isalpha(static_cast<unsigned char>(c))) { |
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
=== | |
For compiling 32b executables with gcc on a 64b ubuntu machine | |
> sudo apt-get install libc6-dev-i386 (to get the 32b headers) | |
> use "-m32" flag with gcc (e.g. gcc -m32 a.c -o a.out) |
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
let blacklists = ["chrome://*","https://mail.google.com/*","http://feedly.com/*","https://www.google.com/calendar/*"] |