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
#!/bin/bash | |
# prune include files one at a time, recompile, and put them back if it doesn't compile | |
# arguments are list of files to check | |
removeinclude() { | |
file=$1 | |
header=$2 | |
perl -i -p -e 's+([ \t]*#include[ \t][ \t]*[\"\<]'$2'[\"\>])+//REMOVEINCLUDE $1+' $1 | |
} | |
replaceinclude() { | |
file=$1 |
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
local img_fondo; | |
local img_guante; | |
local img_pelota; | |
local pelota_y; | |
local pelota_x; | |
local guante_x; | |
local speed; | |
local f_guante; | |
local f_pelota; |
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
int idle_mode = SCREEN_IDLE_MODE_KEEP_AWAKE; | |
screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_IDLE_MODE, &idle_mode); |
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
diff -up dwm-6.0/config.def.h dwm-6.0-focusonclick/config.def.h | |
--- dwm-6.0/config.def.h 2011-12-19 09:02:46.000000000 -0600 | |
+++ dwm-6.0-focusonclick/config.def.h 2012-11-24 17:48:19.867072611 -0600 | |
@@ -13,6 +13,9 @@ static const unsigned int snap = 32 | |
static const Bool showbar = True; /* False means no bar */ | |
static const Bool topbar = True; /* False means bottom bar */ | |
+/* False means using the scroll wheel on a window will not change focus */ | |
+static const Bool focusonwheelscroll = False; | |
+ |
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
/** | |
* Created by Zaxuhe | |
**/ | |
#include <iostream> | |
#include <time.h> | |
#define SEC2NANO 1000000000.0f | |
using namespace std; |
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
#define glOrtho(a,b,c,d,e,f) glOrthof(a,b,c,d,e,f) | |
#define glOrtho(a,b,c,d,e,f) glOrthof(a,b,c,d,e,f) | |
#define glColor3f(r,g,b) glColor4f(r,g,b,1.0) | |
void gluPerspective(double fovy, double aspect, double zNear, double zFar) | |
{ | |
// Start in projection mode. | |
glMatrixMode(GL_PROJECTION); | |
glLoadIdentity(); | |
double xmin, xmax, ymin, ymax; |