Skip to content

Instantly share code, notes, and snippets.

View rscottm's full-sized avatar

Scott Moyer rscottm

View GitHub Profile
@rscottm
rscottm / glsurfaceview.rb
Created December 1, 2010 16:03
GLSurfaceView ruboto demo ported from Android demos
require 'ruboto'
java_import "android.opengl.GLSurfaceView"
java_import "javax.microedition.khronos.egl.EGL10"
java_import "javax.microedition.khronos.egl.EGLConfig"
java_import "javax.microedition.khronos.opengles.GL10"
java_import "java.nio.ByteBuffer"
java_import "java.nio.ByteOrder"
@rscottm
rscottm / MyDateSetListener.java
Created November 7, 2010 22:53
Java classes created by the experimental subclass and interfce gen code
package org.scottmoyer.test;
import org.jruby.Ruby;
import org.jruby.javasupport.util.RuntimeHelpers;
import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.javasupport.JavaUtil;
import org.jruby.exceptions.RaiseException;
import org.ruboto.Script;
public class MyDateSetListener implements android.app.DatePickerDialog.OnDateSetListener {
We couldn’t find that file to show.
%##############################################################################################
%#
%# This code takes the @callbacks hash (read out of the interfaces.yml file) and prepares
%# it for use in the code below.
%#
% implements = []
% constants = []
% @callbacks.each do |interface,i_info|
% i_info.each do |method,v|
% v["interface"] = interface.gsub("$", ".")