Based on "Creating your first addon for OpenERP" by Naysan Saran ([email protected])
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
void Ogre::DotSceneLoader::processEnvironment(TiXmlElement *XMLNode) | |
{ | |
const String attrNames [] = {"fog", "skyBox", "skyDome", "skyPlane", "clipping"}; | |
void (Ogre::DotSceneLoader::*funcNames[]) (TiXmlElement*) = { | |
&Ogre::DotSceneLoader::processFog, | |
&Ogre::DotSceneLoader::processSkyBox, | |
&Ogre::DotSceneLoader::processSkyDome, | |
&Ogre::DotSceneLoader::processSkyPlane, | |
&Ogre::DotSceneLoader::processClipping}; |
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 | |
import sys | |
if sys.version_info >= (3,): | |
xrange = range | |
raw_input = input | |
from re import sub | |
from numpy import log10 | |
def trim(string): |
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 python2 | |
"""\ | |
We are computing the probability of features 1 through 16. | |
Each feature represents a pixel in a 4 x 4 bitmap. | |
We are taking into account the probability that a pixel is black. | |
This simplifies calculations as the probability of white is equal to | |
the probability of !black. | |
""" | |
import numpy, math |
NewerOlder