This file contains hidden or 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
# controllers/foo.rb | |
# | |
class FooController < ApplicationController | |
def index | |
render :text => Foo.value | |
end | |
end |
This file contains hidden or 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
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 |
This file contains hidden or 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 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() |
This file contains hidden or 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
/** | |
* 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(); |
NewerOlder