Idea for homebrew-like kdesrc-build, I'll call it kdesrc-curses
- Scriptable: new program or module should be easily add. Simply add a new file and inherit some classes.
#! /usr/bin/env python3 | |
import sys | |
from PySide import QtGui, QtWebKit | |
app = QtGui.QApplication(sys.argv) |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import argparse | |
a = argparse.ArgumentParser() | |
b = a.add_subparsers(dest='command') | |
b.add_parser('test') | |
c = a.parse_args([]) | |
print(c.command is None) |
#192.168.1.100 ddld.loc.al | |
#127.0.0.1 ddld.loc.al | |
#127.0.0.1 www.gstatic.com | |
127.0.0.1 www.google-analytics.com | |
127.0.0.1 www.googletagmanager.com | |
#127.0.0.1 www.googleadservices.com | |
#127.0.0.1 ade.googlesyndication.com | |
#127.0.0.1 tpc.googlesyndication.com | |
#127.0.0.1 pagead2.googlesyndication.com | |
#127.0.0.1 securepubads.g.doubleclick.net |
/* http://l3net.wordpress.com/2012/12/09/a-simple-telnet-client/ */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <termios.h> | |
#include <fcntl.h> | |
std::vector<std::string> findSubstrings(std::vector<std::string> words, std::vector<std::string> parts) { | |
sort(begin(parts), end(parts), [](const std::string & a, const std::string & b) -> bool { | |
return a.size() > b.size(); | |
}); | |
for (int i = 0; i < words.size(); ++i) { | |
words[i] = highlight(words[i], parts); | |
} | |
return words; | |
} |
#! /usr/bin/env python | |
import cookielib | |
import sys | |
import urllib | |
from BeautifulSoup import BeautifulSoup | |
import mechanize | |
#define _BSD_SOURCE | |
#include <endian.h> | |
// #include "bs.h" | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> |
#include <boost/any.hpp> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/fusion/include/std_pair.hpp> | |
#include <vector> | |
#include <map> | |
#include <iostream> | |
namespace json { |
#include <iostream> | |
#include <chrono> | |
#include <queue> | |
#include <boost/asio/io_service.hpp> | |
#include <boost/asio/steady_timer.hpp> | |
#include <boost/asio/strand.hpp> | |
class Runner { |