Welcome! This page is using CodeRay 1.1.2.
We currently have
3049 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
a |
16 lines
of
JavaScript
by
a
|
397 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
actionContext.ajaxClient.get(
'/service/example/v1/test',
{},
{},
{
error: function( err ){
},
success: ... |
|
a |
2 lines
of
YAML
by
a
|
24 Bytes |
Show |
Edit |
Expand |
1
2 |
key1=value1
key2=value2 |
|
a |
52 lines
of
Ruby
by
a
|
1.2 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
class Admin::UsersController < Admin::ApplicationController
before_action :set_user, only: [:show, :edit, :update, :destroy]
respond_to :html
def index
@admin_users = User.page(para... |
|
a |
2 lines
of
Java
by
a
|
24 Bytes |
Show |
Edit |
Expand |
1
2 |
key1=value1
key2=value2 |
|
a |
2 lines
of
JSON
by
a
|
24 Bytes |
Show |
Edit |
Expand |
1
2 |
key1=value1
key2=value2 |
|
rubymonk |
17 lines
of
Ruby
by
aaaa
|
445 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
def add(*numbers)
numbers.reduce(:+)
end
def subtract(*numbers)
numbers.reduce(:-)
|
|
SASS as HTML |
11 lines
of
HTML
|
408 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
@function lines-for-font-size($font-size) {
$lines: if($round-to-nearest-half-line,
ceil(2 * $font-size / $base-line-height) / 2,
ceil($font-size / $base-line-height)
);
// If li... |
|
SASS as CSS |
11 lines
of
CSS
|
408 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
@function lines-for-font-size($font-size) {
$lines: if($round-to-nearest-half-line,
ceil(2 * $font-size / $base-line-height) / 2,
ceil($font-size / $base-line-height)
);
// If li... |
|
c++ t |
5 lines
of
C++
|
55 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
class Objecct
{
int main() {
printf("Hello");}
}; |
|
as |
25 lines
of
C
|
413 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a,b,c,d,e,f,g,h,i,j,k,l;
printf("Enter a five digit number = ");
scanf("%d",&a);
b=a%10;
c=a/10;
d=c%1... |
|