This file contains hidden or 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
class PostHandler(web.RequestHandler): | |
""" | |
only authorized parties can post messages | |
""" | |
def post(self): | |
if hmac_key and not 'signature' in self.request.arguments: return 'false' | |
if 'message' in self.request.arguments: | |
message = self.request.arguments['message'][0] | |
group = self.request.arguments.get('group',['default'])[0] | |
print '%s:MESSAGE to %s:%s' % (time.time(), group, message) |
This file contains hidden or 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
foreach($images as $image) { | |
if($image->accountPublisher != '' && !in_array($image->accountPublisher, $resultAccounts)) { | |
$resultAccounts[] = $image->accountPublisher; | |
} | |
} | |
$this->view->accounts = $resultAccounts; | |
$this->view->images = $images; |
This file contains hidden or 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
function outter() { | |
var out = ''; | |
function inner() { | |
if(typeof out === 'undefined') { | |
console.log('undef'); | |
} else { | |
console.log('def'); | |
} | |
var out = 3; | |
} |
This file contains hidden or 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
diff --git a/src/main/display.cc b/src/main/display.cc | |
index 156d226..e532023 100644 | |
--- a/src/main/display.cc | |
+++ b/src/main/display.cc | |
@@ -1137,10 +1137,10 @@ GTKChapDisp::getVerseBefore(SWModule &imodule) | |
key->setAutoNormalize(oldAutoNorm); | |
+ key->setTestament(curTest); | |
key->setBook(curBook); |
This file contains hidden or 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
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() |
This file contains hidden or 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 <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(), |
This file contains hidden or 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
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(); | |
} |
This file contains hidden or 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
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> |
This file contains hidden or 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
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) |
This file contains hidden or 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
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 |
OlderNewer