Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
shell |
10 lines
of
JSON
by
333yyy
|
235 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
#!/bin/bash
set -e
# Add native library before start container
if ! type "make" > /dev/null; then
echo "Installing gcc and make ..."
apt-get update
# apt-get install -y gcc make
ap... |
|
A |
7 lines
of
Ruby
|
54 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
p <<"A#{b}C"
#{
<<"A#{b}C"
A#{b}C
}
str
A#{b}C |
|
java |
9 lines
of
Java
|
114 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
} |
|
powershell |
1 line
of
C
|
9 Bytes |
Show |
Edit |
Expand |
|
react-lifecycle |
36 lines
of
HTML
by
xialvjun
|
1 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
<Lifecycle
props={{ list }}
getDerivedStateFromProps={(props, state) => {
const plist = props.list,
slist = state.list;
if (plist.length > slist.length) {
return {... |
|
Kersha |
3 lines
of
C
by
asfwf
|
25 Bytes |
Show |
Edit |
Expand |
1
2
3 |
#include"Sdfsdf"
saf
|
|
Test |
109 lines
of
HTML
|
3.83 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>CodeRay</title>
<link href="/assets/application-f8ea5ce63e3a069fd3ab6fec1775baef.css" media="screen" rel="stylesheet" type="text/css... |
|
PHP |
44 lines
of
PHP
by
nnwebdesign
|
1.13 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 |
if ($this->commandsRegistered) {
return;
}
$this->commandsRegistered = true;
$this->kernel->boot();
$container = $this->kernel->getContainer();
fo... |
|
c++ |
3 lines
of
C++
|
49 Bytes |
Show |
Edit |
Expand |
1
2
3 |
void loop() {
int tiltValue = compute(value);
} |
|
rb.html |
14 lines
of
HTML
by
test
|
344 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
{{#data}}
<div{{#if spacingTweak}} class="ex-topSpacingTweak-{{spacingTweak}}"{{/if}}>
<div class="t0-b-frame-bPlacer">
<div class="t0-b-frame">
<div class="t0-b-frame__hd">
... |
|