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
apply plugin: 'jetty' | |
apply plugin: 'java' | |
apply plugin: 'groovy' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
providedRuntime 'org.mortbay.jetty:jetty-ajp:6.1.26' |
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
# COPYRIGHT (C) Florian Wolters 2014 | |
# | |
# Author: Florian Wolters <[email protected]> | |
cmake_minimum_required (VERSION 2.8.12.2 FATAL_ERROR) | |
# Set options for this project. | |
set (PROJECT_NAME "hello_boost_with_cmake" CXX) | |
project (${PROJECT_NAME}) | |
set (PROJECT_SOURCE_DECLARATION_DIRECTORY ${PROJECT_SOURCE_DIR}/include) |
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 <iostream> | |
#include <utility> | |
#include <typeinfo> | |
#include <type_traits> | |
#include <string> | |
template <size_t arg1, size_t ... others> | |
struct static_max; | |
template <size_t arg> |
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 main | |
import ( | |
"fmt" | |
"errors" | |
) | |
type Maybe interface { | |
Return(value interface{}) Maybe | |
Bind(func(interface{}) Maybe) Maybe |
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 main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
//function types | |
type mapf func(interface{}) interface{} |
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
apply plugin: 'java' | |
configurations.all { | |
resolutionStrategy { | |
eachDependency { DependencyResolveDetails details -> | |
//specifying a fixed version for all libraries with 'org.gradle' group | |
if (details.requested.group == 'org.springframework') { | |
details.useVersion "$springVersion" | |
} | |
} |
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
//Export War file from Eclipse Web Project with Gradle | |
// we need to use war plugin | |
apply plugin: 'war' | |
//default webAppDirName in gradle is not "WebContent" but | |
// it is default in eclise so change it according to eclipse layout | |
// it encapsulates all files under webAppDirName | |
webAppDirName = 'WebContent' |
NewerOlder