Skip to content

Instantly share code, notes, and snippets.

View greg-hellings's full-sized avatar

Greg Hellings greg-hellings

View GitHub Profile
- name: set facts
set_fact:
arg_name: test_true
when: foo
- name: set facts
set_fact:
arg_name: test_false
when: not foo
[
{ "Name1": 2 },
{ "Name2": 2 },
{ "Name1": 5 },
{ "Name3": 2 },
{ "Name2": 1 }
]
var someThings = [1, 2, 3, 4];
someThings.each(function(thing) {
x = thing + 1;
});
var x;
alert(x);
__ZN5sword14SWOptionFilterC2EPKcS2_PKNSt3__14listINS_5SWBufENS3_9allocatorIS5_EEEE T c11a0 0
__ZN5sword14SWOptionFilterC2Ev T c1030 0
__ZN5sword14SWOptionFilterD0Ev T c1580 0
__ZN5sword14SWOptionFilterD1Ev T c15d0 0
__ZN5sword14SWOptionFilterD2Ev T c1670 0
Linking CXX executable BibleTime
Undefined symbols for architecture x86_64:
"sword::SWOptionFilter::SWOptionFilter(char const*, char const*, std::list<sword::SWBuf, std::allocator<sword::SWBuf> > const*)", referenced from:
Filters::BtOSISMorphSegmentation::BtOSISMorphSegmentation() in btosismorphsegmentation.cpp.o
Filters::BtOSISMorphSegmentation::BtOSISMorphSegmentation() in btosismorphsegmentation.cpp.o
"sword::SWMgr::findConfig(char*, char**, char**, std::list<sword::SWBuf, std::allocator<sword::SWBuf> >*, sword::SWConfig**)", referenced from:
CSwordBackend::reloadModules(CSwordBackend::SetupChangedReason) in cswordbackend.cpp.o
"sword::SWMgr::createModule(char const*, char const*, sword::multimapwithdefault<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf> >&)", referenced from:
vtable for CSwordBackend in moc_cswordbackend.cpp.o
"sword::SWMgr::AddRawFilters(sword::SWModule*, sword::multimapwithdefault<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf> >&)", referenced f
IF(Qt5Core_FOUND)
TARGET_LINK_LIBRARIES("bibletime"
${CLucene_LIBRARY}
${Sword_LDFLAGS}
)
IF(${BIBLETIME_FRONTEND} STREQUAL "MOBILE")
qt5_use_modules("bibletime" Widgets Qml Quick Network)
ELSE()
IF(BT_Use_DBus)
In file included from /Users/greg/Builds/bibletime-2.10.0/src/bibletime_dbus_adaptor.cpp:12:
/Users/greg/Builds/bibletime-2.10.0/src/bibletime_dbus_adaptor.h:20:10: fatal error: 'QDBusAbstractAdaptor' file not found
#include <QDBusAbstractAdaptor>
wchar_t* _str_to_utf16(const char *str) {
static sword::UTF8UTF16 filter;
sword::SWBuf swStr = str;
printf("input:\t\t%s\n", swStr.c_str());
filter.processText(swStr, NULL, NULL);
printf("output:\t\t%ls\n", (wchar_t*)swStr.getRawData());
return (wchar_t*) swStr.getRawData();
}
#include <swmgr.h>
#include <swmodule.h>
#include <versekey.h>
#include <stdio.h>
void out(sword::VerseKey* key, int expected) {
printf("intro: %i\nbk (%i): %i\nch (%i): %i\nvs (%i): %i\n-----------------\n",
key->isIntros(),
expected, key->getBook(),
expected, key->getChapter(),
In [1]: import Sword
In [2]: mgr = Sword.SWMgr()
UTF8Transliterator: ICU: no resource index to load
UTF8Transliterator: ICU: status U_MISSING_RESOURCE_ERROR
In [3]: mod = mgr.getModule('KJV')
In [4]: key = mod.getKey()