Welcome! This page is using CodeRay 1.1.0 (beta).

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

Page 126, 10 entries

irb 5 lines of Plain text by zed 133 Bytes Show Edit Expand
1
2
3
4
5
ruby-1.9.2-p290 :001 > 2+2
 => 4 
ruby-1.9.2-p290 :002 > "a.b.c.d".split('.')
 => ["a", "b", "c", "d"] 
ruby-1.9.2-p290 :003 > ^D
php with jquery and html 21 lines of PHP by plambata 599 Bytes Show Edit Expand
1
2
3
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="...
rstring.c - In-place ASCII string reversal 82 lines of C by Troy J. Farrell 2.84 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
/* Troy J. Farrell <troy at entheossoft dot com>
 * MIT license
 */

#include <stdio.h>
#include <string.h>

/* prototype our function */

int reverseString( char * );

int main( int arg...
zend_builtin_functions.c 19 lines of diff 455 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
@@ -303,13 +300,14 @@
    Get string length */
 ZEND_NAMED_FUNCTION(zend_if_strlen)
 {
-  zval **str;
+  char *s1;
+  int s1_len;
 
-  if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &str...
sdsd 1 line of XML 5 Bytes Show Edit Expand
1
teszt
nom 25 lines of C 495 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
 1 class("mutter")
 2 
 3 function mutter.new(name)
 4    return {name = name}
 5 end
 6 
 7 function mutter:print()
 8    print("Ausgabe: " .. self.name
 9 end
10 
11 class("kind", mutte...
Cipher 30 lines of PHP by Mateusz 861 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
<?php

class Cipher
{
    protected static $key = "NasZSup3rTajnYHash";
    
    // Metoda szyfrująca ciąg znakowy $STRING
    public static function Encode($STRING)
    {
        $encrypt...
test 1 line of Python by king 13 Bytes Show Edit Expand
1
print "Hello"
dfd 3 lines of ERb 35 Bytes Show Edit Expand
1
2
3
<script>
var toto = 10;
</script>
tt 10 lines of ERb 436 Bytes Show Edit Expand
1
2
3
4
5
<%- title "Edit Page" -%>
<div class="page-form">
  <h1>Edit Page</h1>
  <%= error_messages_for :page %>
  <%= form_for(@page, :url => page_path(:id => @page), :html => {:multipart => true, :me...

Page 126, 10 entries