This file contains 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
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") |
This file contains 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
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; |
This file contains 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 <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 ) ); |
This file contains 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
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 |
NewerOlder