Welcome! This page is using CodeRay 1.1.1.

We currently have 2563 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 120, 10 entries

Hello! 3 lines of Ruby 40 Bytes Show Edit Expand
1
2
3
def index
  render :text => 'hello'
end
Hello world 12 lines of Ruby by Rinat 222 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
class Range
  def to_json(*a)
    {
      'json_class'   => self.class.name,
      'data'         => [ first, last, exclude_end? ]
    }.to_json(*a)
  end

  def self.json_create(o)
    ne...
404 7 lines of Ruby by Zweitag 127 Bytes Show Edit Expand
1
2
3
4
5
6
7
Zweitag::Application.routes.draw do

  post "url" => lambda {
    mock_the_visitor && pretend_you_werent_there
  }

end
test 5 lines of Ruby by yuan 46 Bytes Show Edit Expand
1
2
3
4
5
def say(word)
  puts word
end

say 'hello'
Test function 7 lines of PHP by Just me 85 Bytes Show Edit Expand
1
2
3
4
5
6
7
function($variable)
{
    if($this == 1)
    {
        $doThis == TRUE;
    }
}
test bash? 8 lines of Plain text 271 Bytes Show Edit Expand
1
2
3
4
5
6
7

  sudo apt-get install git-core
  sudo apt-get install protobuf-compiler
  sudo apt-get install python-setuptools
  sudo apt-get install python-twisted
  sudo apt-get install python-mysqldb
...
a 11 lines of diff 262 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
diff --git a/src/abc.cc b/src/abc.cc
index c00ff33..c0fff33 100644
--- a/src/abc.cc
+++ b/src/abc.cc
@@ -1050,7 +1050,7 @@ void foo::bar()
 
             123
             std::vector<glm::ve...
test 8 lines of C++ 323 Bytes Show Edit Expand
1
2
3
4
5
        /// <summary>
        /// validate an Xml from a StringXML
        /// </summary>
        /// <param name="xmlSource">StringXML</param>
        /// <param name="xsddir">Xsd Validator Pa...
test 4 lines of diff 280 Bytes Show Edit Expand
1
2
3
        echo "`date` | Copie du jeu..." >> ${PATH_LOG}/srv_gamesteam.log
        scp -r $PATH_SOURCE/* $IP_SERVER:$PATH_HOME/
        echo "scp $PATH_SOURCE/steam_css.tar.bz2 $IP_SERVER:$PATH_HOM...
tester123 8 lines of JavaScript 361 Bytes Show Edit Expand
1
2
3
$("#pending_approvals").html("#{get_partial("approvals/pending")}")
$("#addressed_approvals").html("#{get_partial("approvals/addressed")}")
$("#approvals_wating").text("#{@employee.approvals.wher...

Page 120, 10 entries