This file contains hidden or 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> | |
| template<typename TNum> | |
| constexpr TNum min2 (TNum first, TNum second) | |
| { | |
| return (first < second) ? first : second; | |
| } | |
| template<typename TNum, typename... Args> | |
| constexpr TNum |
This file contains hidden or 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
| function get_parallelogram_area(vertice_a, vertice_b, vertice_c) | |
| implicit none | |
| real*8, dimension(1 : 3) :: vertice_a, vertice_b, vertice_c | |
| real*8, dimension (1 : 3) :: vector_ab, vector_ac | |
| real*8, dimension(1 : 3) :: cross_product | |
| real*8 :: get_parallelogram_area | |
| interface | |
| function get_cross_product (vector_ab, vector_ac) |
This file contains hidden or 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> | |
| using std::cout; | |
| using std::endl; | |
| template<typename T> | |
| struct TypeTraits { | |
| static bool const IsPTR = false; | |
| }; |
This file contains hidden or 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
| require 'nokogiri' | |
| require 'open-uri' | |
| MARK_FILE = "mark.dat" | |
| MAX_THREADS = 5 | |
| def wait_for_threads(threads) | |
| print "Waiting for downloads to finish..." | |
| threads.each { |t| t.join } | |
| puts " ok" |
NewerOlder