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
import bpy | |
from mathutils import Vector | |
# Create the curve data | |
# https://blender.stackexchange.com/a/6751 | |
curveData = bpy.data.curves.new('CameraCurve', type='CURVE') | |
curveData.dimensions = '3D' | |
curveData.resolution_u = 2 | |
curveData.bevel_depth = 0.01 # curve radius in meters | |
polyline = curveData.splines.new('NURBS') |
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
http://blog.john-pfeiffer.com/how-to-set-up-a-pelican-static-blog-site/ | |
http://docs.getpelican.com/ | |
pip install pelican markdown | |
mkdir -p ~/projects/yoursite | |
cd ~/projects/yoursite |
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
Start CYGWIN | |
## Connect to AWS server from Cygwin | |
$ ssh -i ~/WinHome/Work/AE/Corexpert/cxp_frankfurt_dmaas.pem [email protected] | |
## Install python dependencies | |
$ sudo aptitude install python-gevent | |
$ sudo aptitude install python-rdflib | |
$ sudo aptitude install python-simplejson |
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
Start CYGWIN | |
## Connect to AWS server from Cygwin | |
[CYGWIN] $ ssh -i ~/WinHome/Work/AE/Corexpert/cxp_frankfurt_dmaas.pem [email protected] | |
## Setup web server on AWS EC2 server | |
# https://www.digitalocean.com/community/tutorials/how-to-configure-the-apache-web-server-on-an-ubuntu-or-debian-vps | |
$ sudo aptitude update | |
$ sudo aptitude upgrade |
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
# Mount shared folder from windows to U | |
# http://helpdeskgeek.com/virtualization/virtualbox-share-folder-host-guest/ | |
$ mount -t vboxsf VBoxShare ~/VBoxShare | |
$ sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 |
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
http://stackoverflow.com/questions/9751845/apt-get-for-cygwin | |
https://github.com/transcode-open/apt-cyg | |
$ wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg | |
$ install apt-cyg /bin | |
$ apt-cyg install [package] | |
## Install packages for python on windows : | |
https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py |
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/python | |
# Usage: | |
# $ readMapXML.py map.xml > mapcpp.txt | |
import sys # For argv and exit | |
if len(sys.argv) < 2: | |
sys.exit(1) |
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
void mesh::fill_color_from_weight(int nbBones) | |
{ | |
srand(42); | |
std::vector<vec3> boneColor; | |
for(unsigned int b=0; b<nbBones; b++) | |
{ | |
// float iBone = (float)b/(float)nbBones; | |
boneColor.push_back(vec3(float(rand())/RAND_MAX,float(rand())/RAND_MAX,float(rand())/RAND_MAX)); | |
} |
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
int create_EXR_channels_from_LDR_image(IplImage **images, const float *Te, int nimg, float gfunction[256], const int width, const int height, float* EXRDataPtr) | |
{ | |
cvNamedWindow("images LDR", 0); // Tester : supprimer ceci | |
clock_t deb,fin,diff; | |
deb=clock(); | |
CvScalar Z; | |
CvSize size=cvGetSize(images[0]); | |
float numerateur[3]={0.0,0.0,0.0},denominateur[3]={0.0,0.0,0.0}; | |
float *dataf = EXRDataPtr; | |
float *Mdataf; |
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
(added for title) |