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
| // Triangle_opengl_3_1 | |
| // A cross platform version of | |
| // http://www.opengl.org/wiki/Tutorial:_OpenGL_3.1_The_First_Triangle_%28C%2B%2B/Win%29 | |
| // with some code from http://www.lighthouse3d.com/opengl/glsl/index.php?oglexample1 | |
| // and from the book OpenGL Shading Language 3rd Edition, p215-216 | |
| // Daniel Livingstone, October 2010 | |
| #include <GL/glew.h> | |
| #define FREEGLUT_STATIC | |
| #include <GL/freeglut.h> |
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
| #!/bin/sh | |
| # Use BeyondCompare as difftool for git in cygwin. | |
| # git config --global difftool.bc3.cmd "beyondcompare-diff.sh \"\$LOCAL\" \"\$REMOTE\"" | |
| # git difftool -t bc3 branch1..branch2 | |
| # Reference: http://www.tldp.org/LDP/abs/abs-guide.pdf | |
| library=githelperfunctions.sh | |
| #[ -f $library ] && . $library |
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
| ## get the weather condition (rainy, cloudy) for any given city | |
| ## by @limitedmage julianapena.com | |
| import urllib2 | |
| def getWeather(city): | |
| #create google weather api url | |
| url = "http://www.google.com/ig/api?weather=" + urllib2.quote(city) |
NewerOlder