Skip to content

Instantly share code, notes, and snippets.

View jfeick's full-sized avatar

Jan Frederick Eick jfeick

View GitHub Profile
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)
def main():
# testing code goes here
if __name__ == "__main__":
main()
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):
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):
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):
#include <ParticleCloud.hpp>
#include <Shader.h>
ParticleCloud::ParticleCloud():
particleCount_(74000),
data_(),
vbo_(0),
tbo_(0),
vao1_(0),
vao2_(0),
# 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"
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
# 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"
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