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 --git a/src/Interface/ComboBox.cpp b/src/Interface/ComboBox.cpp | |
index d90b08d..e6923ef 100644 | |
--- a/src/Interface/ComboBox.cpp | |
+++ b/src/Interface/ComboBox.cpp | |
@@ -28,6 +28,9 @@ | |
namespace OpenXcom | |
{ | |
+ const int ComboBox::LIST_MARGIN; | |
+ const int ComboBox::MAX_ITEMS ; |
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
pi@raspberrypi ~ $ lsusb | |
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. | |
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. | |
Bus 001 Device 004: ID 15a2:003f Freescale Semiconductor, Inc. | |
pi@raspberrypi ~ $ sudo mount -t vfat /dev/sda /mnt/badge/ | |
pi@raspberrypi ~ $ ls /mnt/badge/ | |
READY.TXT |
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
def test_function1(): | |
# Do some test code | |
# return True on Pass, False on Fail | |
return True | |
def test_function2_EXPECTED_FAIL(): | |
# Do some test (more) code | |
# return True on Pass, False on Fail | |
return 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
# Improvement over https://gist.github.com/803854 | |
import optparse | |
def test_function1(): | |
# Do some test code | |
# return True on Pass, False on Fail | |
return True | |
def test_function2_EXPECTED_FAIL(): |
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 hookpost-step | |
list | |
end | |
define hookpost-stepi | |
x /i $pc | |
end | |
define hookpost-continue | |
backtrace |
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
xinput list | |
xinput set-prop 12 "Device Enabled" 0 | |
https://help.ubuntu.com/community/SynapticsTouchpad |
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
Mercurial - using "hg serve" to push changes | |
I've just discovered Mercurial. It's amazing!!! It's a distributed version control system, similar in its flows to git and others from the bunch so if you're already familiar with the concept you'll have no issues working with it. | |
One thing however is really amazing: it contains a built-in web user interface! Just while being inside the repository type "hg serve" and browse to http://localhost:8000. And there's more to it. "hg serve" can serve as a real server! | |
There's one thing worth mentioning. If you'd like to use it for hosting a repository there's one thing you have to add to .hgrc (or Mercurial.ini in case you're working in Windows) to make it work: | |
[web] | |
allow_push = * | |
push_ssl = 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
dpkg-query -W -f='${Installed-Size} ${Package}\n' | sort -n |
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
// http://agateau.wordpress.com/2008/04/17/gdb-trick-the-poor-man-loop/ | |
(gdb) set $pos=0 | |
(gdb) print array[$pos++] | |
content of array[0] | |
(gdb) | |
content of array[1] | |
(gdb) | |
content of array[2] |
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 --git a/src/Engine/OpenGL.cpp b/src/Engine/OpenGL.cpp | |
index 50a694e..bc4e8bf 100644 | |
--- a/src/Engine/OpenGL.cpp | |
+++ b/src/Engine/OpenGL.cpp | |
@@ -60,7 +60,7 @@ std::string strGLError(GLenum glErr) | |
#define glGetProcAddress(name) SDL_GL_GetProcAddress(name) | |
- | |
+#ifndef __APPLE__ |
OlderNewer