Skip to content

Instantly share code, notes, and snippets.

View domantasjurkus's full-sized avatar
:shipit:
Processing triggers for man-db

Domantas Jurkus domantasjurkus

:shipit:
Processing triggers for man-db
View GitHub Profile
000100 IDENTIFICATION DIVISION.
000200 PROGRAM-ID. NUMBERS.
000300 AUTHOR. TEEBEE.
000400****************************************************************
000500* Simply transfer the present program to your favorite *
000600* mainframe computer, compile it, link it and submit some *
000700* appropriate JCL to run it. Its output tells the answer. *
000800****************************************************************
000900 ENVIRONMENT DIVISION.
001000 CONFIGURATION SECTION.
pewter scooter
@domantasjurkus
domantasjurkus / sorting_comparison.cpp
Last active October 9, 2017 15:20
C++ Sequential and Parallel Sort Comparison
#include <iostream>
#include <functional>
#include <algorithm>
#include <parallel/algorithm>
#include <vector>
#include <omp.h>
typedef std::vector<int>::iterator itr;
double execute_and_get_time(void (*sortingFunction)(itr a, itr b), std::vector<int> v) {