Welcome! This page is using CodeRay 1.1.2.

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

Page 284, 10 entries

Java 2 lines of Java 96 Bytes Show Edit Expand
1
2
 //remove persistor - otherwise the original gets overwritten
        hlpGroup.setPersistor(null);
Euclids Algorithm 37 lines of Ruby by chaitanya 740 Bytes Show Edit Expand
1
2
3
4
5
6
class Gcd
  #GCD(m,n)
  # Step 1 : Divide m/n and r is the remainder 0<=r<=n
  # Step 2   if r = 0 then n is the GCD of m,n
  # r !=0 then m =n and n =r go to step 1
  # m can be less than n t...
erwqr 1 line of Ruby 18 Bytes Show Edit Expand
1
linenumber="true" 
factory test 11 lines of Ruby 306 Bytes Show Edit Expand
1
2
3
4
5
6
7
Factory.define :user do |f|
  f.sequence(:username) { |n| "user#{n}" }
  f.password "test"
  f.password_confirmation { |u| u.password }
  f.sequence(:email) { |n| "user#{n}@example.com" }
end
...
check rights 9 lines of Ruby 257 Bytes Show Edit Expand
1
2
3
4
5
6
  def check_rights
    begin
      name = self.class.name.underscore.split("_")[0].capitalize.singularize
      o = eval(name).find(params[:id])
      notowner = o.user != current_user
    res...
Test PHP 32 lines of Delphi 1.06 KB Show Edit Expand
1
2
3
4
5
6
 require_once( ABSPATH . '/wp-includes/registration.php');
 3 
 4 // the configuration array
 5 $wpcas_options = array(
 6   'cas_version' => '2.0',
 7   'include_path' => '/RUTA/DEL/PHPCAS/CA...
JSON 12 lines of JSON 261 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
{
    "id": 1,
    "type": "banner",
    "title": "som title",
    "enabled": true,
    "geo": "geo things",
    "width": 150,
    "height": 300,
    "ext": "",
    "html": "<div>yay, i ca...
JScript Test 0 lines of JSON by nobody 0 Bytes Show Edit Expand
1
Assembler 14 lines of C by NASM 224 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
GLOBAL squaring
SECTION .bss
  res: resb 8
  sav: resb 94
SECTION .text
squaring:
        FNSAVE [sav]
        push ebp
        finit
        fld1
        fld QWORD [esp+8]
  MOV EAX, [esp+...
chartbeat.js 1 line of JavaScript by chartbeat.com 10.8 KB Show Edit Expand
1
if(!pSUPERFLY){var pSUPERFLY={version:2,ready:false,readyList:[],query:{},interval:10*1000,newToSite:0,newToPage:1,count:0,scrolls:0,keydowns:0,mousemoves:0,pagehash:"",domain:"",uid:"",connSpeed:0...

Page 284, 10 entries