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 struct | |
with open("cube_w100_h100_d100_c1_b8.raw", "wb") as binfile: | |
for _ in range(100 * 100 * 100): | |
value = 127 | |
binary_value = struct.pack("B", value) | |
binfile.write(binary_value) |
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
def main(): | |
# testing code goes here | |
if __name__ == "__main__": | |
main() |
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 sys | |
from mock import Mock, PropertyMock, patch | |
from unittest import TestCase, main | |
class Foo: | |
def getByteOrder(self): | |
return sys.byteorder | |
class TestClass(TestCase): | |
def test_bo(self): |
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 sys | |
from mock import Mock, PropertyMock, patch | |
from unittest import TestCase, main | |
class Foo: | |
def getByteOrder(self): | |
return sys.byteorder | |
class TestClass(TestCase): | |
def test_bo(self): |
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 sys | |
from mock import Mock, PropertyMock, patch | |
from unittest import TestCase, main | |
class Foo: | |
def getByteOrder(self): | |
return sys.byteorder | |
class TestClass(TestCase): | |
def test_bo(self): |
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
#include <ParticleCloud.hpp> | |
#include <Shader.h> | |
ParticleCloud::ParticleCloud(): | |
particleCount_(74000), | |
data_(), | |
vbo_(0), | |
tbo_(0), | |
vao1_(0), | |
vao2_(0), |
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
# Path, X server and arguments (if needed) | |
# Note: -xauth $authfile is automatically appended | |
default_path /bin:/usr/bin:/usr/local/bin | |
default_xserver /usr/bin/X | |
xserver_arguments -nolisten tcp vt07 | |
# Commands for halt, login, etc. | |
halt_cmd /sbin/shutdown -h now | |
reboot_cmd /sbin/shutdown -r now | |
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login" |
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
xrdb -merge ~/.Xresources & | |
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" | |
setxbmap -option compose:ralt | |
xcompmgr & | |
xset +fp /usr/share/fonts/local | |
xset fp rehash & | |
/usr/bin/xscreensaver -no-splash & | |
/usr/bin/wicd-client -t & | |
exec awesome |
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
# Path, X server and arguments (if needed) | |
# Note: -xauth $authfile is automatically appended | |
default_path /bin:/usr/bin:/usr/local/bin | |
default_xserver /usr/bin/X | |
xserver_arguments -nolisten tcp vt07 | |
# Commands for halt, login, etc. | |
halt_cmd /sbin/shutdown -h now | |
reboot_cmd /sbin/shutdown -r now | |
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login" |
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
xrdb -merge ~/.Xresources & | |
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" | |
setxbmap -option compose:ralt | |
xcompmgr & | |
xset +fp /usr/share/fonts/local | |
xset fp rehash & | |
/usr/bin/xscreensaver -no-splash & | |
/usr/bin/wicd-client -t & | |
exec awesome |
NewerOlder