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
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
#include <iostream> | |
#include <map> | |
// Compile: g++ map_example.cc | |
// Run: ./a.out | |
int main(void) | |
{ | |
std::map<unsigned char*, int> paleta; | |
unsigned char rgb1[3], rgb2[3]; |
This gist contains several Python scripts using class VerseLayer
from module
Verse Entities: https://github.com/verse/verse-entities
The script that is used for creating new layer is called verse_layer_create.py
.
This script creates new Node, then this node is moved to the parent of scene nodes.
Thus this node will not be destroyed after client logout. New layer is created in
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 print JSON from HTTP GET/POST method. | |
""" | |
# | |
# To test the application run application with: | |
# | |
# python ./webpy_json.py | |
# | |
# and type following URI in browser addres bar: |
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
$def with (content) | |
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>$content.title</title> | |
</head> | |
<body> | |
$:content |
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 | |
import bmesh | |
def element_id_layer(bm, elems, id_name): | |
""" | |
This function will create/print verts/edges/faces layer | |
""" | |
# Try to get layer of elem IDs | |
elems_iter = getattr(bm, elems) |
OlderNewer