Skip to content

Instantly share code, notes, and snippets.

#our cmake
find_package( OpenCV COMPONENTS highgui videoio )
#find_package(OpenCV COMPONENTS world)
if (OPENCV_VIDEOIO_FOUND)
ADD_EXECUTABLE( capture_tags capture_tags.cpp)
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
#TARGET_LINK_LIBRARIES(capture_tags tinytag ${OpenCV_LIBS})
TARGET_LINK_LIBRARIES( capture_tags tinytag libopencv_world.so)
if ("${OpenCV_VERSION_STATUS}" STREQUAL "-dev")
@lighta
lighta / boringssl.diff
Created January 2, 2017 02:50
grpc_crossCompile_v1.0.x
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8493559..93555fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,7 +27,7 @@ if (NOT GO_EXECUTABLE)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- set(C_CXX_FLAGS "-Wall -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden")
+ set(C_CXX_FLAGS "-Wall -Wformat=2 -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden")
@lighta
lighta / raString
Created November 18, 2017 11:16
testing string with maxlen
/*
* File: main.cpp
* Author: lighta
*
* Created on November 18, 2017, 4:17 AM
*/
#include <cstdlib>
#include <string>
#include <iostream>
@lighta
lighta / modif_1
Created November 26, 2017 05:44
endow_test
lvl =0
100, 100, 100, 100, 100, 100, 100, 100, 70, 100, 0, 0,
100, 25, 100, 150, 90, 100, 75, 100, 100, 100, 0, 0,
100, 100, 25, 90, 150, 100, 75, 100, 100, 100, 0, 0,
100, 90, 150, 25, 100, 100, 75, 100, 100, 125, 0, 0,
100, 175, 90, 100, 25, 100, 75, 100, 100, 100, 0, 0,
100, 100, 125, 125, 125, 0, 75, 50, 100, -25, 0, 0,
100, 100, 100, 100, 100, 100, 0, 125, 100, 150, 0, 0,
100, 100, 100, 100, 100, 50, 125, 0, 100, -25, 0, 0,
70, 100, 100, 100, 100, 100, 75, 75, 125, 100, 0, 0,
1 0x406817 ra::unit_tests::crashDump_createDump() + 25
2 0x40685c ra::unit_tests::test_crashDump() + 24
3 0x4067db do_init + 20
4 0x4088d9 main + 348
5 0x7ffff632603a __libc_start_main + 234
6 0x40671a _start + 42
static void duel_set(const unsigned int did, struct map_session_data* sd) {
int lOldChangeMap = sd->state.changemap;
int lOldWarping = sd->state.warping;
sd->state.changemap = 1;
sd->state.warping = 1;
// As you move to a different plane, ground effects need to be cleared
skill_clear_unitgroup(&sd->bl);
skill_unit_move(&sd->bl, gettick(), 2);
skill_cleartimerskill(&sd->bl);
# - Returns a version string from Git tags
#
# This function inspects the annotated git tags for the project and returns a string
# into a CMake variable
# higly adapted from https://raw.githubusercontent.com/google/benchmark/master/cmake/GetGitVersion.cmake
# lighta
#
# get_git_version()
#
# - Example
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
"EXEC_ECLIPSE=eclipse.exe -no-indexer -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data C:\Projets\EPayKit\eclipse_workspace\v860 -build 'CoreWinDesjDll^|CoreWinBaseTest^|HostWinDemoApp^|HostWinDesjTest^|CoreWinDesjDll^|CoreWinBaseTest^|IpdvWinDesjTest^|IpdvWinTransportsTest^|PaymentEngineWinDesjApp^|PaymentEngineWinDesjTest^|PaymentWinTools^|PlatformBridgeWinApp^|SpedVerifoneDesjTest^|SpedWinDemoApp^|UiWinDemoApp^|UiWinDesjTest^|ExposeDictionariesToPython^|TestHarness/Release' --launcher.suppressErrors -vmargs -Dorg.eclipse.cdt.core.console=org.eclipse.cdt.core.systemConsole"
#!/bin/bash
# This script is to build a busybox system
# Requirement
# fedora : curl, ncurses-devel, qemu-system-$BUSYBOX_ARCH
# author : MMoreau
# uncomment next lines for debugging (logging)
#logfile=/tmp/build_busybox.log