This file contains 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
# -*- Makefile -*- | |
# Mac OSX makefile for FreeImage | |
# This file can be generated by ./gensrclist.sh | |
include Makefile.srcs | |
# General configuration variables: | |
CC_X86_64 = clang | |
CPP_X86_64 = clang++ | |
COMPILERFLAGS = -Os -fexceptions -fvisibility=hidden -DNO_LCMS -D__ANSI__ -DDISABLE_PERF_MEASUREMENT |
This file contains 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 <cassert> | |
#include "opencv2/opencv.hpp" | |
auto ConvertCVMatToBMP (cv::Mat frame) -> HBITMAP | |
{ | |
auto convertOpenCVBitDepthToBits = [](const int32_t value) | |
{ | |
auto regular = 0u; | |
This file contains 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
Language: Cpp | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: true | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: true |
This file contains 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
[ | |
{ "keys": ["super+shift+["], "command": "prev_view" }, | |
{ "keys": ["super+shift+]"], "command": "next_view" }, | |
{ "keys": ["super+alt+left"], "command": "fold" }, | |
{ "keys": ["super+alt+right"], "command": "unfold" }, | |
{ "keys": ["super+alt+["], "command": "swap_line_up" }, | |
{ "keys": ["super+alt+]"], "command": "swap_line_down" }, |
This file contains 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
/* | |
Losely based on http://stackoverflow.com/questions/18154630/c-see-if-argument-is-numeric | |
and other related answers on stackoverflow.com | |
*/ | |
auto IsNumber(const std::string& maybeNumber) -> bool | |
{ | |
auto decimal = false; | |
for (char c : maybeNumber) | |
{ | |
if (c == '.' && !decimal) |
This file contains 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
# script expects to be at the root folder where ROSE was already downloaded | |
# so if you: | |
# mkdir ROSE | |
# cd ROSE | |
# git clone https://github.com/rose-compiler/rose . | |
# This script should be in the ROSE folder | |
set -o errexit | |
set -o pipefail | |
set -o nounset |
This file contains 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 | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# Inspired by | |
# https://github.com/mgrebenets/boost-xcode5-iosx/blob/master/boost.sh | |
download_boost() { | |
printf "*********************************\\n%s\\n" "${FUNCNAME[0]}" |
This file contains 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
set -o nounset | |
SetupCatch() | |
{ | |
printf "*********************************\n${FUNCNAME[0]}\n" | |
if [[ ! -d components/catch/ ]]; then | |
mkdir -p components/catch/include/ | |
cd components/catch/include/ |
This file contains 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
set -o nounset | |
SetupIntelTBB() | |
{ | |
printf "*********************************\n${FUNCNAME[0]}\n" | |
if [[ ! -d $CURRENT_PATH/components/intel/tbb ]]; then | |
mkdir -p $CURRENT_PATH/components/intel/tbb | |
fi |
OlderNewer