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
from enum import Enum | |
class JSKeycodes(Enum): | |
# Physical keys that can be used, appropriate for JavaScript keydown listeners: | |
# http://gcctech.org/csc/javascript/javascript_keycodes.htm | |
LEFT_ARROW = 37 | |
UP_ARROW = 38 | |
RIGHT_ARROW = 39 |
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
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -fPIC -O3 -std=c++11 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -Wall -Wno-unused-function -Wno-unused-variable -Wno-unused-local-typedefs -dynamiclib -Wl,-headerpad_max_install_names -arch x86_64 -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -ldl -framework CoreFoundation -shared -fPIC -o libsegment.dylib -install_name @rpath/libsegment.dylib CMakeFiles/segment.dir/segment_py.cpp.o -lboost_system -lboost_python -lboost_numpy |
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
# CMAKE generated file: DO NOT EDIT! | |
# Generated by "Unix Makefiles" Generator, CMake Version 3.3 | |
# compile CXX with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ | |
CXX_FLAGS = -fPIC -O3 -std=c++11 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -Wall -Wno-unused-function -Wno-unused-variable -Wno-unused-local-typedefs -fPIC -I/Users/bradneuberg/dev/selective_search_py_port/segment -arch x86_64 | |
CXX_DEFINES = -Dsegment_EXPORTS | |
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
Scanning dependencies of target segment | |
[ 50%] Building CXX object CMakeFiles/segment.dir/segment_py.cpp.o | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:5: | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/segment-image.h:25: | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/filter.h:28: | |
/Users/bradneuberg/dev/selective_search_py_port/segment/convolve.h:34:13: warning: | |
implicit conversion loses integer precision: 'size_type' | |
(aka 'unsigned long') to 'int' [-Wshorten-64-to-32] | |
int len = mask.size(); | |
~~~ ^~~~~~~~~~~ |
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
Scanning dependencies of target segment | |
[ 50%] Building CXX object CMakeFiles/segment.dir/segment_py.cpp.o | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:5: | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/segment-image.h:25: | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/filter.h:28: | |
/Users/bradneuberg/dev/selective_search_py_port/segment/convolve.h:34:13: warning: | |
implicit conversion loses integer precision: 'size_type' | |
(aka 'unsigned long') to 'int' [-Wshorten-64-to-32] | |
int len = mask.size(); | |
~~~ ^~~~~~~~~~~ |
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
-- System processor settings: host=x86_64, target=x86_64, cpu=x86_64 | |
-- The C compiler identification is AppleClang 7.0.0.7000072 | |
-- The CXX compiler identification is AppleClang 7.0.0.7000072 | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ |
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
cmake_minimum_required(VERSION 3.3) | |
# Don't try to create universal binaries on Mac OS X, as this causes compilation problems. | |
# On Darwin, the CMakeDetermineSystem.cmake module sets system processor values | |
# using 'uname -p'. On Intel Macs, at least, this always returns "i386" which | |
# is technically not what we want. We want 'uname -m' which returns the machine | |
# architecture. On 64-bit architectures this is the value we want for "host" builds. | |
if(APPLE) | |
exec_program(/usr/bin/uname ARGS -m OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR RETURN_VALUE val) |
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
import test_boost | |
print(test_boost.helloworld()) |
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 <iostream> | |
#include <boost/python.hpp> | |
using namespace std; | |
int helloworld() | |
{ | |
return 10; | |
} |
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
Classifying: 533 images | |
regions/0.jpg: class: cloud prob: 9.84595680237 | |
regions/1.jpg: class: cloud prob: 1.58692479134 | |
regions/2.jpg: class: cloud prob: 4.10534524918 | |
regions/3.jpg: class: cloud prob: 6.38739204407 | |
regions/4.jpg: class: cloud prob: 11.8700017929 | |
regions/5.jpg: class: cloud prob: 1.58692479134 | |
regions/6.jpg: class: cloud prob: 6.88746643066 | |
regions/7.jpg: class: cloud prob: 8.91076469421 | |
regions/8.jpg: class: cloud prob: 8.66692638397 |
NewerOlder