Welcome! This page is using CodeRay 1.1.1.

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

Page 4, 10 entries

a 112 lines of XML by a 4.03 KB Show Edit Expand
1
2
3
4
5
6
7
8
<Response xmlns="http://www.jnctn.net/ns/rest/2006-01">
   <Context>
      <Action>
         <IsCompleted>true</IsCompleted>
      </Action>
      <Request>
         <IsValid>true</IsValid>
...
qweqwe 7 lines of JavaScript by emanoel 92 Bytes Show Edit Expand
1
2
3
4
5
6
7
function coco() {
  return 'xd'
}

const logit = (e) => console.log(e)

logit('value')
segfault log 14 lines of Plain text 1.68 KB Show Edit Expand
1
2
3
4
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6c7f0a7 in sf::String::String(sf::String const&) () from /usr/lib64/libsfml-system.so.2.3
(gdb) bt
#0  0x00007ffff6c7f0a7 in sf::S...
test for a ruby script with __END__ 27 lines of Ruby by nico-hn 728 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
#!/usr/bin/env ruby

require 'optparse_plus'

first_value, second_value = nil, nil

OptionParser.new_with_yaml do |opt|
  opt.inherit_ruby_options("E") # Currently, -E and -d only are availa...
Qt QNetworkManager Snippet 10 lines of C++ by JD Scott 473 Bytes Show Edit Expand
1
2
3
4
5
6
QNetworkRequest request;
request.setUrl(QUrl("http://qt.nokia.com"));
request.setRawHeader("User-Agent", "MyOwnBrowser 1.0");

QNetworkReply *reply = manager->get(request);
connect(reply, SIGN...
SharePoint app example 3 lines of JavaScript by Ivanov Vladimir 43 Bytes Show Edit Expand
1
2
3
function log(str) {
  console.log(str);
}
sad 1 line of C++ 3 Bytes Show Edit Expand
1
asd
Ti 15 lines of Java 375 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
//Page reference to your VF Page
PageReference pageRef = Page.TestPage;
Test.setCurrentPage(pageRef);
 
//Pass necessary parameter
pageRef.getParameters().put('Id',id); 
 
//init controller ...
Mememe 108 lines of PHP 2.79 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

use Validator;
use Blade;

class AppServiceProvider extends ServiceProvider
{
  /**
   * Bootstrap any applicatio...
Title 4 lines of Ruby by Name 163 Bytes Show Edit Expand
1
2
3
4
def self.database_type
    return 'DEV' + db_suffix if ENV['Environment'] == 'DEV'
    ENV_MAP.fetch(ENV['Environment'].downcase.to_sym, 'QA') + db_suffix
  end

Page 4, 10 entries