Welcome! This page is using CodeRay 1.1.2.

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

Page 253, 10 entries

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...
MetaTags 156 lines of Ruby by http://github.com/kpumuk/meta-tags/tree/master 4.68 KB Show Edit Expand
1
2
3
4
5
6
# Contains methods to use in views and helpers.
module MetaTags
  # Set meta tags for the page.
  #
  # Method could be used several times, and all options passed will
  # be merged. If you wi...
test bash 2 lines of Plain text 52 Bytes Show Edit Expand
1
2
# emerge --sync
# emerge -av portage-utils crossdev
some ruby transaction 6 lines of Ruby by Stupot 99 Bytes Show Edit Expand
1
2
3
4
5
6
def transact
  Person.transaction do
    @person.eat_final_meal!
    @person.expire!
  end
end
testing 26 lines of Ruby 447 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
def view_type_name
    ForecastSearch::VIEW_TYPES[self.view_type]
  end
  
  def probability_ids
    @probability_ids ||= []
  end
  
  def status_level_ids
    @status_level_ids ||= []
 ...

Page 253, 10 entries