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 135, 10 entries

test 47 lines of C++ by clmk 1.12 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
#ifndef __ROOM_SCENE_H__
#define __ROOM_SCENE_H__

#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include <stdlib.h>
#include "CCEditBox.h"

#include "TileList.h"
#include "UpdateTes...
afscript 11 lines of JavaScript 575 Bytes Show Edit Expand
1
2
3
4
var selected = fmQueryResult.getSelectedRow(); //被選取的資料欄
if (selected != -1) {
    var fmMultiSelectedList = Form.getValue("multiSelectedList"); //這是個分號分隔的字串 (a;b;c;...)
    var selectedModel = ...
test 13 lines of Java 417 Bytes Show Edit Expand
1
2
3
4
5
6
ProcessTestObject proc = startBrowser("https:///");
sleep(5); // give time for RFT started IE to load JVM
login();

root = RootTestObject.getRootTestObject();
browsers =  root.find(atChild(".c...
json 17 lines of JSON 199 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
  {
    "just": "write some"
  }, 
  {
    "yaml": [
      [
        "here", 
        "and"
      ], 
      {
        "it": "updates", 
        "in": "real-time"
      }
    ]
  }
]
Ember.js 27 lines of JavaScript 566 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
App = Ember.Application.create();

App.Person = Ember.Object.extend({
  firstName: null,
  lastName: null,

  fullName: function() {
    return this.get('firstName') +
           " " + this...
asdasd 18 lines of HTML 2.01 KB Show Edit Expand
1
2
3
4
5
    <div class="large-12 columns">
        <h2>Section heading</i><span class="icon-home right"></span></h2>
        
        <h3>Sub topic title</h3>
        <script src="https://gist.github.com/transf3r/abf7cf...
phpinfo 3 lines of PHP by Andrey 21 Bytes Show Edit Expand
1
2
3
<?php
phpinfo();
?>
blackjack 262 lines of Ruby by Joe Jackson 6.09 KB Show Edit Expand
1
2
3
4
5
6
7
# Interactive command line blackjack game


def calculate_total(cards) 
  # [['3', 'H'], ['Q', 'S'], ... ]
  localarray = cards.map{|e| e[0] }  
# Go through cards array and pull out the card...
hello 7 lines of ERb by abc 221 Bytes Show Edit Expand
1
2
3
4
5
6
<% javascript 'admin/admin.js' %>
<%= title 'Admin : Config' %>

<ul class="text">
    <li><%= link_to 'Email Preview', admin_mailer_path %></li>
    <li><%= link_to 'Interviews', admin_interv...
ordanizlie 14 lines of JavaScript 356 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
Number.prototype.ordinalize = function() {
    var abs = Math.abs(this);
    
    if (abs % 100 >= 11 && abs % 100 <= 13) {
        return this + 'th';
    }
    
    abs = abs % 10;
    if...

Page 135, 10 entries