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.
http://www.youtube.com/watch?v=NxFQEJF4fPk | |
[bear] | |
/castsequence reset=3 痛擊,揮擊,割碎,揮擊 | |
/cast 槌擊 | |
[virtualbox] | |
http://yuanfarn.blogspot.com/2009/09/virtualbox-network-nat-host-only.html | |
[qt sql] | |
http://doc.trolltech.com/4.6/sql-driver.html#qmysql-for-mysql-4-and-higher | |
[java] | |
http://download.oracle.com/javase/tutorial/deployment/applet/index.html |
#include <memory> | |
#include <iostream> | |
class Node: public std::enable_shared_from_this< Node > { | |
public: | |
typedef std::shared_ptr< Node > NodeSP; | |
typedef std::weak_ptr< Node > NodeWP; | |
static NodeSP create( int value ) { | |
return NodeSP( new Node( value ) ); |
package org.sandbox; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.ClosedChannelException; | |
import java.nio.channels.ClosedSelectorException; | |
import java.nio.channels.SelectionKey; | |
import java.nio.channels.Selector; |
cmake_minimum_required(VERSION 2.8) | |
find_package(Qt5Core REQUIRED) | |
find_package(Qt5Network REQUIRED) | |
set(CMAKE_AUTOMOC ON) | |
find_package(Boost REQUIRED COMPONENTS coroutine system context) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
set(SOURCES "src/main.cpp" "src/task.cpp" "src/task.hpp" "src/task_p.hpp" "src/httpserver.cpp" "src/httpserver.hpp") |
#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 { |
#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 { |
#define _BSD_SOURCE | |
#include <endian.h> | |
// #include "bs.h" | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> |
#! /usr/bin/env python | |
import cookielib | |
import sys | |
import urllib | |
from BeautifulSoup import BeautifulSoup | |
import mechanize | |
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; | |
} |