Welcome! This page is using CodeRay 1.1.2.
We currently have
3061 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Example 1a |
15 lines
of
HTML
|
445 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello!</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="w... |
|
Example 1a |
9 lines
of
JavaScript
|
207 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
const para = document.querySelector('p');
para.addEventListener('click', updateName);
function updateName() {
let name = prompt('Enter a new name');
para.textContent = 'Player 1:
' + ... |
|
Example 1a |
8 lines
of
JavaScript
|
205 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
const para = document.querySelector('p');
para.addEventListener('click', updateName);
function updateName() {
let name = prompt('Enter a new name');
para.textContent = 'Player 1: ' + na... |
|
test |
1 line
of
Python
|
3 Bytes |
Show |
Edit |
Expand |
|
ruby |
5 lines
of
Ruby
|
32 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
class X
def y
puts 2
end
end |
|
d |
1 line
of
Ruby
|
22 Bytes |
Show |
Edit |
Expand |
|
Javascript Code example |
329 lines
of
JavaScript
|
13.1 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
if (typeof jQuery === 'undefined') { throw new Err... |
|
PHP Code example |
62 lines
of
PHP
|
2.66 KB |
Show |
Edit |
Expand |
1
2
3
4
5 |
<?php
function get_data($userName, $userPassword, $filter, $process, $verbetype, $updatetype, $requesttype) {
... |
|
sql |
3 lines
of
SQL
|
39 Bytes |
Show |
Edit |
Expand |
1
2
3 |
select *
from tes
where a=1 AND b=2; |
|
dsafdas |
1 line
of
Plain text
by
aaaa
|
94 Bytes |
Show |
Edit |
Expand |
1 |
compile group:'${project.groupId}', name:'${project.artifactId}', version:'${project.version}' |
|