Skip to content

Instantly share code, notes, and snippets.

View tshirtman's full-sized avatar

Gabriel Pettier tshirtman

View GitHub Profile
# -------------------------------------------------------------------
# Bluetooth
class Bluetooth(object):
j_env = SDL_ANDROID_GetJNIEnv()
j_class = env.FindClass("org/renpy/android/BluetoothConnection")
cdef __init__(self):
constructor = j_env->GetMethod(j_env, j_class, "<init>", "(C)V")
self._jself = j_env->NewObject(j_env, j_class, constructor)
# -------------------------------------------------------------------
# Bluetooth
cdef class Bluetooth(object):
cdef JNIEnv *j_env = SDL_ANDROID_GetJNIEnv()
cdef jclass *j_class = *j_env->FindClass(j_env,
"org/renpy/android/BluetoothConnection")
cdef __init__(self):
constructor = j_env->GetMethod(j_env, j_class, "<init>", "(C)V")
self._jself = j_env->NewObject(j_env, j_class, constructor)
#:kivy 1.0
#:import kivy kivy
#:import win kivy.core.window
<Container>:
rows: 3
canvas:
Color:
rgb: .94, .93, .93
Rectangle:
from kivy.app import App
from kivy.core.window import Window
from kivy.uix.widget import Widget
class ResizeApp(App):
def build(self):
Window.bind(on_resize=self.plop)
return Widget()
# -------------------------------------------------------------------
# Bluetooth
class class Bluetooth(object):
"""
Bluetooth service class, used to manage global state of bluetooth
device and create connections
"""
cdef JNIEnv *j_env
cdef jclass j_class
cdef jobject j_self
<%= link_to :my_open_issues, :controller => 'issues',
:action => 'index',
:set_filter => 1,
:status_id => open_status,
:project => minister_projects,
:sort => 'updated_on:desc'%>
#!/bin/bash
VERSION_libcrypt=0.03
URL_libcrypt=http://sourceforge.net/projects/libcrypt/files/libcrypt/$VERSION_libcrypt/crypt_${VERSION_libcrypt/./_}.zip
DEPS_libcrypt=()
BUILD_libcrypt=$BUILD_PATH/libcrypt/$(get_directory $URL_libcrypt)
RECIPE_libcrypt=$RECIPES_PATH/libcrypt
function prebuild_libcrypt() {
sed -i "s/-mpentium //" $BUILD_PATH/libcrypt/makefile
--- Python-2.7.2.orig/setup.py 2010-10-31 17:40:21.000000000 +0100
+++ Python-2.7.2/setup.py 2011-11-27 16:49:36.840204364 +0100
@@ -21,7 +21,7 @@
COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount')
# This global variable is used to hold the list of modules to be disabled.
-disabled_module_list = []
+disabled_module_list = ['spwd', '_ctypes','bz2','ossaudiodev','_curses','_curses_panel','readline','_locale','_bsddb','gdbm','dbm','nis','linuxaudiodev','_multiprocessing']
def add_dir_to_list(dirlist, dir):
$correction_window = Irssi::window_find_name('corrections');
if ($correction_window)
{
$w = $correction_window;
}
else
{
$w = $win;
}
my $correction_window = Irssi::window_find_name('corrections');
$correction_window->print($correction_window->{sticky_refnum});
if ($correction_window->{sticky_refnum} ne '0')
{ $correction_window->command('window stick off'); }