Skip to content

Instantly share code, notes, and snippets.

/*! @file rtsp_message.hpp
*
*/
#ifndef STREAMING_LIB_RTSP_MESSAGE_HPP
#define STREAMING_LIB_RTSP_MESSAGE_HPP
#include <string>
#include <cstdint>
#include <unordered_set>
namespace cxx11_support
{
template<class T> std::unique_ptr<T> make_unique( ... ) { ... }
}
#if LIB_HAS_CXX11
namespace cxx11 = std;
#else
namespace cxx11 = cxx11_support;
#endif
@Superlokkus
Superlokkus / assembly
Created September 13, 2016 15:56
try and catch arm dissasembly
173 void just_throw_n_catch() {
just_throw_n_catch():
00009c40: push {r4, r5, r7, lr}
00009c42: sub sp, #8
00009c44: add r7, sp, #0
175 throw std::runtime_error("wut");
00009c46: movs r0, #8
00009c48: bl 0x171c8 <__cxa_allocate_exception>
00009c4c: mov r4, r0
00009c4e: adds r3, r7, #4
@Superlokkus
Superlokkus / Build_Log
Last active June 20, 2016 10:27
Qt Quick /Find Qt4 cmake Linking Issue
/Applications/CLion.app/Contents/bin/cmake/bin/cmake --build /Users/markus/Library/Caches/CLion2016.1/cmake/generated/Prog2BelegMedienverwaltung-551c6070/551c6070/Debug --target Prog2Beleg -- -j 2
[ 25%] Automatic moc for target Prog2Beleg
[ 25%] Built target Prog2Beleg_automoc
[ 50%] Linking CXX executable Prog2Beleg
Undefined symbols for architecture x86_64:
"QDeclarativeEngine::QDeclarativeEngine(QObject*)", referenced from:
_main in main.cpp.o
"QDeclarativeEngine::~QDeclarativeEngine()", referenced from:
_main in main.cpp.o
"QDeclarativeContext::setContextProperty(QString const&, QObject*)", referenced from:
@Superlokkus
Superlokkus / gist:f5d217143c854b9bd0d1
Created June 2, 2015 13:52
Fehlerhafte aber funktionierende Lösung für KI Aufgabe 18
:- [idDfs].
%Es folgt die schlecht umgesetzte aber immerhin funktionierende Lösung für KI Aufgabe 18
adj(X,Y) :- adj0(X,Y); adj0(Y,X).
adj0(X,Y) :- member((X,Y), [
(1,2), (2,3), (4,5),
(2,7), (4,9), (5,10),
(6,7), (7,8), (8,9),
(7,12), (10,15),
(13,14), (14,15),
(11,16), (12,17), (14,19),(15,20),
@Superlokkus
Superlokkus / Notizen_Vorlesung_DB1.md
Last active August 29, 2015 13:59
Datenbanken 1 Vorlesung Notizen --Sporadisch--

##3.2. Definition und Manipulation im Relationenmodell ###3.2.1 Datendefinition ###3.2.2. Datenmanipulation /Relationenalgebra Operation auf Relationen -> Ergebnis: Relation Mengenweise Verarbeitung, NICHT satzweise

a) Mengenoperationen $$\cup \cap \backslash$$

  • Vereinigung: $$R_1 \cup R_2$$