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
import dbus | |
import commands | |
import sys | |
if not 'banshee' in commands.getoutput('ps -A'): | |
print("nothing, since banshee isn't open\n") | |
sys.exit() | |
bus = dbus.SessionBus() |
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 count = 0, str_len = strlen(str), sub_len = strlen(substr), i, j; | |
for(i = 0; i < str_len - sub_len; ++i) { | |
j = 0; | |
while(str[i++] == substr[j++]) {} | |
if(j == sub_len) count++; | |
} |
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
vrms -e | |
Non-free packages installed on localhost | |
fglrx Video driver for the ATI graphics accelerators | |
fglrx-amdcccle Catalyst Control Center for the ATI graphics accelerat | |
jruby 100% pure-Java implementation of Ruby | |
nvidia-cg-toolkit Cg Toolkit - GPU Shader Authoring Language | |
unrar Unarchiver for .rar files (non-free version) | |
Non-free packages with status other than installed on localhost |
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
public static void main() { | |
int a = 5; | |
string s = @"a = $a"; | |
stdout.printf(s); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Cabin+Sketch:bold&v1"> | |
<title>OMGWTF</title> | |
<style type="text/css"> | |
h1 { | |
font-size: 480px; | |
font-family: "Cabin Sketch", arial, sans-serif; | |
text-shadow: 5px 5px 5px #aaa; |
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
g++ -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -I../ -I../GosuImpl `sdl-config --cflags` `pkg-config pangoft2 --cflags` -DHAVE_SDL_TTF_H -DHAVE_PNG_H -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c RubyGosu_wrap.cxx | |
RubyGosu_wrap.cxx: In function ‘VALUE _wrap_zImmediate_get(VALUE)’: | |
RubyGosu_wrap.cxx:3373: warning: ‘Gosu::zImmediate’ is deprecated (declared at ../Gosu/GraphicsBase.hpp:24) | |
RubyGosu_wrap.cxx: In function ‘VALUE _wrap_Font_draw_rot(int, VALUE*, VALUE)’: | |
RubyGosu_wrap.cxx:5758: warning: ‘void Gosu::Font::drawRot(const std::wstring&, double, double, Gosu::ZPos, double, double, double, Gosu::Color, Gosu::AlphaMode) const’ is deprecated (declared at ../Gosu/Font.hpp:68) | |
g++ -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -I../ -I../GosuImpl `sdl-config --cflags` `pkg-config pangoft2 --cflags` -DHAVE_SDL_TTF_H -DHAVE_PNG_H -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c Utility.cpp | |
g++ -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -I../ -I../GosuImpl `sdl-config --cflags` `pkg-config pangoft2 |
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/metodo/i386/hal/mm/memory.c b/src/metodo/i386/hal/mm/memory.c | |
index 714143a..1315126 100644 | |
--- a/src/metodo/i386/hal/mm/memory.c | |
+++ b/src/metodo/i386/hal/mm/memory.c | |
@@ -13,7 +13,7 @@ void *kmalloc_int(unsigned int size, unsigned int flags) | |
// Initialize if needed. | |
if (placement == 0) | |
- placement = end; | |
+ placement = (unsigned)&end; |
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 x = 123 + (int)(int*)&panicking; | |
while(x < 0x123123) { | |
kputc((int)&x ^ x / 2 + x); | |
x /= x ^ x; | |
} | |
kputs((const char*)(x % (int)80085)); |
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
void list::clearList( node*& ptr ) | |
{ | |
node* doom = ptr; | |
while ( ptr != NULL ) | |
{ | |
doom = ptr->next; | |
delete ptr; | |
ptr = doom; | |
} | |
} |
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
In file included from Box2D/Box2D/Box2D/Collision/Shapes/b2Shape.h:23, | |
from Box2D/Box2D/Box2D/Collision/Shapes/b2CircleShape.h:22, | |
from Box2D/Box2D/Box2D/Box2D.h:36, | |
from include/world.hpp:5, | |
from include/scene.hpp:4, | |
from src/scene.cpp:1: | |
Box2D/Box2D/Box2D/Common/b2Math.h: In function ‘bool b2IsValid(float32)’: | |
Box2D/Box2D/Box2D/Common/b2Math.h:33: warning: comparing floating point with == or != is unsafe | |
Box2D/Box2D/Box2D/Common/b2Math.h: In member function ‘b2Mat22 b2Mat22::GetInverse() const’: | |
Box2D/Box2D/Box2D/Common/b2Math.h:264: warning: comparing floating point with == or != is unsafe |