One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #ifdef _MSC_VER | |
| #include <intrin.h> /* for rdtscp and clflush */ | |
| #pragma optimize("gt",on) | |
| #else | |
| #include <x86intrin.h> /* for rdtscp and clflush */ | |
| #endif |
| <!-- | |
| Thanks and kudos to: | |
| Justin Searls https://github.com/searls for jasmine-maven-plugin, | |
| Pivotal Labs http://pivotallabs.com/ for Jasmine, | |
| Jenkins CI http://jenkins-ci.org for Jenkins, | |
| Apache Software Foundation http://apache.org/ for Maven | |
| --> | |
| <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | |
| xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| @Grab(group = 'net.sf.opencsv', module = 'opencsv', version = '2.3') | |
| import au.com.bytecode.opencsv.CSVReader | |
| import au.com.bytecode.opencsv.CSVParser | |
| import au.com.bytecode.opencsv.CSVWriter | |
| def TEST_FILE_NAME = 'test.csv' | |
| def TEST_OUTPUT_FILE_NAME = 'testOut.csv' | |
| List<String[]> rows = new CSVReader(new FileReader(new File(TEST_FILE_NAME)), CSVParser.DEFAULT_SEPARATOR, CSVParser.DEFAULT_ESCAPE_CHARACTER, CSVParser.DEFAULT_QUOTE_CHARACTER, 1).readAll() | |
| def rowsOver100 = rows.findAll {it[1].toInteger() > 100} |