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 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
# Find the CUnit headers and libraries | |
# | |
# CUNIT_INCLUDE_DIRS - The CUnit include directory (directory where CUnit/CUnit.h was found) | |
# CUNIT_LIBRARIES - The libraries needed to use CUnit | |
# CUNIT_FOUND - True if CUnit found in system | |
FIND_PATH(CUNIT_INCLUDE_DIR NAMES CUnit/CUnit.h) | |
MARK_AS_ADVANCED(CUNIT_INCLUDE_DIR) |
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
#!/usr/bin/env python | |
import dbus | |
class Client(): | |
def __init__(self): | |
bus = dbus.SessionBus() | |
service = bus.get_object('com.example.service', "/com/example/service") | |
self._message = service.get_dbus_method('get_message', 'com.example.service.Message') | |
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit') |
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
/* Solarized Dark | |
For use with Jekyll and Pygments | |
http://ethanschoonover.com/solarized | |
SOLARIZED HEX ROLE | |
--------- -------- ------------------------------------------ | |
base03 #002b36 background | |
base01 #586e75 comments / secondary content |
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
#!/usr/bin/env python | |
""" | |
Simple module for testing parallel variant of | |
code using Python multiprocessing | |
""" | |
from multiprocessing import Process | |
import time |
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
''' | |
@author: Jiri Vrany | |
''' | |
import hashlib | |
def hash_word(word): | |
''' | |
returns sha512 hash | |
''' |
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
.cproject | |
.project |
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 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
""" | |
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 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
#!/usr/bin/env python | |
""" | |
Simple example of bspline surface created directly (not using Bezier surface) | |
""" | |
from OCC.gp import * | |
from OCC.Geom import * | |
from OCC.TColGeom import * | |
from OCC.TColgp import * |
OlderNewer