Welcome! This page is using CodeRay 1.1.2.

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

Page 108, 10 entries

Test 5 lines of C by Tester 202 Bytes Show Edit Expand
1
2
3
4
private ProposalUserAccess GetUserProposalAccess(int proposalId)
{
   var proposalAccess = _proposalAccessManager.GetUserProposalPermission(EmployeeNumber, proposalId);
   return proposalAccess;...
rwx patch for rdocs 84 lines of diff by Quintus 2.26 KB Show Edit Expand
1
2
3
4
From 08d1046812fda3e5073c56a15b695f55abaa3a07 Mon Sep 17 00:00:00 2001
From: Quintus <quintus@quintilianus.eu>
Date: Mon, 16 Dec 2013 11:40:05 +0100
Subject: [PATCH] Add a Rake task for document...
Eat your own dogfood 26 lines of Ruby 860 Bytes Show Edit Expand
1
2
3
4
5
# output as HTML div (using inline CSS styles)
CodeRay.scan('puts "Hello, world!"', :ruby).div

# ...with line numbers
CodeRay.scan("5.times do\n  puts 'Hello, world!'\nend", :ruby).div(:line_n...
asdsd 64 lines of Ruby by asdsda 1.09 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'pp'
P={
  "q0"=>[["a","q1"]],
  "q1"=>[["b","q2"],["b","q1"]],
  "q2"=>[["b","q0"],["a","q3"]],
  "q3"=>[["a","q4"]],
  "q4"=>[["a","q0"]]
}
sigma=["a","b"]
s=["q0"]
f=["q3"]
i=0
P1...
Lfpc3 6 lines of C++ by Me 115 Bytes Show Edit Expand
1
2
3
4
5
6
x=[-pi/2 0 pi/2 pi];
y=[1 0 1 0]
xx=-2:.01:3.5
yy=spline(x,y,xx);
plot(x,y,'k*',xx,yy)
p = polyfit(x, y, 3) 
123 22 lines of XML by 123 1.39 KB Show Edit Expand
1
2
<?xml version="1.0" encoding="UTF-8"?> 
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ds="http://www.w3.org/2000/0...
diff test 8 lines of diff by msr 42 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
2d1
< b
5,7c4
< e
< f
< g
---
> h
test 1 line of JSON by test 5 Bytes Show Edit Expand
1
ne'tz
test 12 lines of JSON by test 265 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
{ 
    "Naam": "JSON",
    "Type": "Gegevensuitwisselingsformaat",
    "isProgrammeertaal": false,
    "Zie ook": [ "XML", "ASN.1" ] 
  },
  { 
    "Naam": "JavaScript",
    "Type": "Progra...
Some JSON string 1 line of JSON by Dmitry Zeldin 1.65 KB Show Edit Expand
1
{"daily_views": {"2013-09-09": 14, "2013-09-08": 14, "2013-10-07": 22, "2013-10-06": 15, "2013-10-05": 15, "2013-10-04": 19, "2013-10-03": 20, "2013-10-02": 17, "2013-10-01": 19, "2013-10-09": 14, ...

Page 108, 10 entries