Welcome! This page is using CodeRay 1.1.1.

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

Page 120, 10 entries

este 7 lines of C 180 Bytes Show Edit Expand
1
2
3
4
5
6
7
#ifdef LITE_VERSION
//Stuff for Lite version 
self.labelAppName.text=@Sample App Lite; 
#else 
//Stuff for Full version 
self.labelAppName.text=@Sample App Full; 
#endif 
php unzip 15 lines of PHP 392 Bytes Show Edit Expand
1
2
3
4
5
6
7
<?php
$zip = zip_open("zip.zip");
if ($zip) {
  while ($zip_entry = zip_read($zip)) {
    $fp = fopen("zip/".zip_entry_name($zip_entry), "w");
    if (zip_entry_open($zip, $zip_entry, "r")) {
...
c++ test 2 lines of C++ by Limi 92 Bytes Show Edit Expand
1
2
  CCMenu* pMenu = CCMenu::create(pCloseItem, NULL);
  CCMenu::create(CCMenuItem* item, ...)
test 30 lines of SQL 774 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
SELECT 
    User.id
    ,User.login
    ,User.password
    ,City.name
    ,School.name
    ,(CASE WHEN User.failed_transactions_count > 0 THEN
        1 
    ELSE
        0
    END) AS ha...
Ray 160 lines of Ruby 4.88 KB Show Edit Expand
1
2
3
4
5
6
7
8
module CodeRay
  
  $CODERAY_DEBUG ||= false
  
  CODERAY_PATH = File.join File.dirname(__FILE__), 'coderay'
  
  # Assuming the path is a subpath of lib/coderay/
  def self.coderay_path *pa...
test some code 156 lines of PHP by guest1 6.46 KB Show Edit Expand
1
2
3
4
5
6
<?php
echo tag('link', array('rel'=>'stylesheet', 'type'=>'text/css', 'media'=>'screen', 'href'=>'/~qannah/css/website/cat.css'));

function fileExists($path)
{
    return (@GetImageSize($path...
tetstt 19 lines of diff 642 Bytes Show Edit Expand
1
2
3
4
5
6
--- lao  Sat Jan 26 23:30:39 1991
+++ tzu  Sat Jan 26 23:30:50 1991
@@ -1,7 +1,6 @@
-The Way that can be told of is not the eternal Way;
-The name that can be named is not the eternal name.
 The...
test 4 lines of Python by test 186 Bytes Show Edit Expand
1
2
3
4
    try:
        lat, long = float(params['lat']), float(params['long'])
    except (KeyError, ValueError):
        return json_error('where would you like your waffle today?', 400)
Test 16 lines of C++ 142 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class C
{
public:
  C();
  ~C();
  void somefn() const;
private:
}

bool bTest;
if (bTest)
{
  C c;
  callfn();
  c.somefn();
}
xml 14 lines of XML by me 175 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14

  4.0.0

  com.liferay.sample
  sample-project
  1.0-SNAPSHOT
  pom

  sample-project
  http://www.liferay.com

  
    /path/to/liferay/bundle/deploy
    6.1.0

Page 120, 10 entries