Welcome! This page is using CodeRay 1.1.2.
We currently have
3068 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
| 1232 |
35 lines
of
C
by
3213
|
854 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
require 'coderay'
module EntriesHelper
def parse_message(entry)
message = entry.content
if entry.code_entry?
message = syntax_highlight(message)
elsif !entry.file_entr... |
|
| javascript test |
0 lines
of
JavaScript
by
$()
|
0 Bytes |
Show |
Edit |
Expand |
|
|
| Trivial C function |
3 lines
of
C
|
50 Bytes |
Show |
Edit |
Expand |
1
2
3 |
void test(int a) {
printf("%d\n",a);
}
|
|
| test |
3 lines
of
Ruby
|
29 Bytes |
Show |
Edit |
Expand |
1
2
3 |
require 'test'
puts 'test' |
|
| test |
26 lines
of
C
|
340 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
#include <stdio.h>
void stack(int i) {
unsigned int j;
printf("%3d: %X\n", i, &j);
asm ("movl %%esp, %0;"
:"=r"(j)
: |
|
| ash |
0 lines
of
Ruby
|
0 Bytes |
Show |
Edit |
Expand |
|
|
| ash |
295 lines
of
Ruby
|
5.22 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 |
// Enable keyboard navigation
_enable_keyboard_navigation();
}
/**
* Enable a support to keyboard navigation
*
*/
function _enable_keyboard_navigation() {
... |
|
| ash |
295 lines
of
YAML
|
5.22 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 |
// Enable keyboard navigation
_enable_keyboard_navigation();
}
/**
* Enable a support to keyboard navigation
*
*/
function _enable_keyboard_navigation() {
... |
|
| ash |
295 lines
of
ERb
|
5.22 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 |
// Enable keyboard navigation
_enable_keyboard_navigation();
}
/**
* Enable a support to keyboard navigation
*
*/
function _enable_keyboard_navigation() {
... |
|
| ash |
295 lines
of
JavaScript
|
5.22 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 |
_enable_keyboard_navigation();
}
function _enable_keyboard_navigation() {
... |
|