Skip to content

Instantly share code, notes, and snippets.

#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))) {
@shantanugoel
shantanugoel / Compiling
Created January 3, 2017 16:42
Snippets for compiling related stuff
===
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)
let blacklists = ["chrome://*","https://mail.google.com/*","http://feedly.com/*","https://www.google.com/calendar/*"]