Skip to content

Commit

Permalink
Add new example structure and some new examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddoria committed Jan 29, 2012
1 parent 1dd913a commit e23d557
Show file tree
Hide file tree
Showing 3,109 changed files with 213,288 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions Bash/Sort/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
itkAclass
itkCclass
itkDclass
itkBclass
5 changes: 5 additions & 0 deletions Bash/Sort/medium/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dog
cat
ardvark
rabbit
kitten
5 changes: 5 additions & 0 deletions Bash/Sort/medium/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ardvark
cat
dog
kitten
rabbit
4 changes: 4 additions & 0 deletions Bash/Sort/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
itkAclass
itkBclass
itkCclass
itkDclass
6 changes: 6 additions & 0 deletions Bash/Sort/simple/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a
c
b
e
d
f
6 changes: 6 additions & 0 deletions Bash/Sort/simple/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a
b
c
d
e
f
1 change: 1 addition & 0 deletions Bash/Sort/simple/sort.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sort input.txt > output.txt
3 changes: 3 additions & 0 deletions Bash/WhitespaceRemoval/orig.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test1
test2
test 3
3 changes: 3 additions & 0 deletions Bash/WhitespaceRemoval/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test1
test2
test 3
2 changes: 2 additions & 0 deletions Bash/WhitespaceRemoval/remove.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sed -i 's/[ \t]*$//' test.txt
# see note on '\t' at end of file
3 changes: 3 additions & 0 deletions Bash/WhitespaceRemoval/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test1
test2
test 3
13 changes: 13 additions & 0 deletions CMake/AddTargetDefinitions/AddTargetDefinitions.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <iostream>

int main()
{
#ifdef INTERACTIVE
std::cout << "ifdef interactive" << std::endl;
#endif

#if defined(INTERACTIVE)
std::cout << "if defined(interactive)" << std::endl;
#endif
return 0;
}
8 changes: 8 additions & 0 deletions CMake/AddTargetDefinitions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 2.6)

PROJECT(AddTargetDefinitions)

ADD_EXECUTABLE(AddTargetDefinitions AddTargetDefinitions.cxx)

# This is apparently no longer a valid command?
#add_target_definitions(AddTargetDefinitions INTERACTIVE)
5 changes: 5 additions & 0 deletions CMake/Boost/BoostProgram.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
int TestFunction()
{

return 0;
}
14 changes: 14 additions & 0 deletions CMake/Boost/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 2.6)

set(Boost_DEBUG 1)

FIND_PACKAGE(Boost 1.47 REQUIRED)
IF (BOOST_FOUND)
INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIR})
ADD_DEFINITIONS( "-DHAS_BOOST" )
ENDIF()

PROJECT(BoostProgram)

add_library(BoostProgram BoostProgram.cpp)

Loading

0 comments on commit e23d557

Please sign in to comment.