Skip to content

Instantly share code, notes, and snippets.

View pocmo's full-sized avatar
🚀
Just passing by.

Sebastian Kaspari pocmo

🚀
Just passing by.
View GitHub Profile
@pocmo
pocmo / DeckView Demo (Deckster.java)
Created January 8, 2010 18:32
Demo of "DeckView" for Android, see Video at: http://www.youtube.com/watch?v=sv74m0Mcmms
package org.yaaic.deckster;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Display;
import android.view.KeyEvent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Gallery;
#!/usr/bin/ruby1.9.1
# Brainfuck Interpreter
# (C) Sebastian Kaspari 2009
# Usage: bf4 [FILE]
# This code is much much faster than the last one, which did
# a lot of unnecessary loops which could also lead to bugs
#
# There's now a bracket map which stores starting and ending
# brackets for direct "jumps", that should speed up things too
#!/usr/bin/ruby
# Brainfuck Interpreter
# (C) Sebastian Kaspari 2009
# Usage: bf2 [FILE]
require 'rubygems'
require "highline/system_extensions"
include HighLine::SystemExtensions
code = ARGF.read # code