Python2.6 0.14
Python2.6 CTypes 0.71
Python2.7 0.15
Python2.7 CTypes 0.77
Python3.3 0.14
Python3.3 CTypes 0.71
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
# This module tries to find libWebsockets library and include files | |
# | |
# LIBWEBSOCKETS_INCLUDE_DIR, path where to find libwebsockets.h | |
# LIBWEBSOCKETS_LIBRARY_DIR, path where to find libwebsockets.so | |
# LIBWEBSOCKETS_LIBRARIES, the library to link against | |
# LIBWEBSOCKETS_FOUND, If false, do not try to use libWebSockets | |
# | |
# This currently works probably only for Linux | |
FIND_PATH ( LIBWEBSOCKETS_INCLUDE_DIR libwebsockets.h |
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
/** | |
* \brief Wslay WebSocket infinite loop | |
*/ | |
void *websocket_loop(void *arg) | |
{ | |
struct Context *C = (struct vContext*)arg; | |
/* | |
* This structure is passed as *user_data* in callback functions. | |
*/ | |
struct Session *session = CTX_current_session(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
import vrsent as v | |
s = v.VerseSession(hostname='localhost', service='12344', \ | |
callback_thread=True, username='your_name', password='your_pass') | |
for n in s.nodes.values(): | |
print(n) | |
n = v.VerseNode(s, custom_type=10) | |
print(n) | |
tg = v.VerseTagGroup(n, custom_type=100) | |
print(tg) | |
tg = v.VerseTag(tg=tg, value=(1.0,), custom_type=1000) |
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 vrsent as v | |
class CustomNode(v.VerseNode): | |
""" | |
Custom subclass of VeseNode | |
""" | |
custom_type = 10 | |
def __str__(self): |
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 <vector> | |
#include <stdlib.h> | |
// Not templated abstract class | |
class DataBase { | |
public: | |
DataBase() {}; |
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
USER_AUTH_FAILURE | |
0 1 1 | |
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 | |
+---------------+---------------+ | |
| OpCode=8 | Length=2 | | |
+---------------+---------------+ | |
USER_AUTH_SUCCESS |
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 bpy | |
obj = bpy.context.active_object | |
obj.select = False | |
bpy.context.scene.objects.active = None | |
obj.hide_select = True |
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
#!/usr/bin/env python | |
""" | |
Simple module for testing parallel variant of | |
code using Python multiprocessing | |
""" | |
from multiprocessing import Process | |
import time |
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
.cproject | |
.project |
OlderNewer