Skip to content

Instantly share code, notes, and snippets.

# controllers/foo.rb
#
class FooController < ApplicationController
def index
render :text => Foo.value
end
end
require 'rubygems'
# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
begin
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
rescue Bundler::GemNotFound => e
STDERR.puts e.message
public class Post {
public static final int STATUS_DRAFT = 0;
public static final int STATUS_PENDING_REVIEW = 1;
public static final int STATUS_PUBLISHED = 2;
private int status = STATUS_DRAFT;
public String getStatus()
/**
* OUTPUT:
* NetConnection.Connect.Success
* Error opening URL 'http://video-origin.hola.com/cine/no-existe.flv'
* NetStream.Play.StreamNotFound
*/
import com.akamai.net.*;
import org.openvideoplayer.events.*;
var video:Video = new Video();