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
cmake_minimum_required(VERSION 2.8) | |
project(gnu-plot CXX) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
find_package(Boost 1.40.0 COMPONENTS filesystem system iostreams REQUIRED) | |
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/externals/gnuplot-iostream") | |
file(GLOB SRCS src/*.cpp) | |
add_executable(${PROJECT_NAME} ${SRCS}) |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int start(const int argc, const char **argv) | |
{ | |
int return_value = 0; | |
/* do start stuff */ | |
return return_value; | |
} |
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> | |
#include <cstring> | |
#include <string> | |
#include <vector> | |
#include "ftd2xx.h" | |
#include "libft4222.h" | |
#include "ftd4222.h" |
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
#!/bin/bash | |
TOTAL=0 | |
for i in "$@" | |
do | |
LINE_COUNT=`wc -l < "$i"` | |
echo "file $i have total $LINE_COUNT lines" | |
TOTAL=$(($TOTAL + $LINE_COUNT)) | |
done |
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
#!/bin/bash | |
#Licensed to the Apache Software Foundation (ASF) under one | |
#or more contributor license agreements. See the NOTICE file | |
#distributed with this work for additional information | |
#regarding copyright ownership. The ASF licenses this file | |
#to you under the Apache License, Version 2.0 (the | |
#"License"); you may not use this file except in compliance | |
#with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
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
#!/bin/bash | |
#The MIT License | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy | |
#of this software and associated documentation files (the "Software"), to deal | |
#in the Software without restriction, including without limitation the rights | |
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
#copies of the Software, and to permit persons to whom the Software is | |
#furnished to do so, subject to the following conditions: | |
# |
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> | |
#include <string> | |
#include <algorithm> | |
bool is_digits(const std::string &s) | |
{ | |
return std::any_of(s.begin(), s.end(), ::isdigit); | |
} | |
bool is_all_lower(const std::string &s) |
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> | |
#include <vector> | |
#include <string> | |
#include <map> | |
#include <chrono> | |
int findMostOcurrence(std::vector<std::string> v, std::string &ocrn) | |
{ | |
auto start = std::chrono::time_point_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now()).time_since_epoch().count(); |
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
cmake_minimum_required(VERSION 2.8) | |
project(rand) | |
add_executable(${PROJECT_NAME} src/main.c) |
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
#DEFINE RSYNC AS CP | |
alias cp='rsync -a --progress' | |
alias scp='rsync -azvh --progress' | |
copy() | |
{ | |
cat $1 | xclip -selection clipboard | |
} | |
paste() |