Welcome! This page is using CodeRay 1.1.2.

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

Page 242, 10 entries

Attribute presets 17 lines of Ruby by Jay McGavren 679 Bytes Show Edit Expand
1
2
3
4
def save_preset
    t = Time.new
    file_name = sprintf("%04d-%02d-%02d_%02d%02d%02d", t.year, t.month, t.day, t.hour || 0, t.min || 0, t.sec || 0)
    File.open(File.join(preset_directory, fil...
JavaScript test 17 lines of JavaScript by murphy < Jamis Buck 543 Bytes Show Edit Expand
1
2
3
4
5
document.observe("dom:loaded", function() {
  $(document.body).observe("click", function(event) {
    var element = event.findElement("a[data-toggle]");
    if(element) {
      var action = ele...
curious 7 lines of C++ 137 Bytes Show Edit Expand
1
2
3
4
5
6
7
{
  Foo foo;
  foo.function(parameter);
  foo.anotherFunction(anotherParameter);
  Bar bar(1024,1024);
  bar.function(parameter);
}
Cisco IOS 18 lines of Plain text 552 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
!
interface FastEthernet0/4
 switchport access vlan 10
 switchport mode access
 switchport port-security
 switchport port-security maximum 5
 switchport port-security aging time 2
 switchpor...
test 1 line of SQL by write 26 Bytes Show Edit Expand
1
SELECT UNIX_TIMESTAMP();
Test html 14 lines of HTML 515 Bytes Show Edit Expand
1
2
3
4
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv=Content-Type content="text/html;...
Sample XMPP demo for facebook 28 lines of Ruby by Prudhvi 841 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
require 'rubygems'
require 'xmpp4r'


    # Connect to the server and set presence to available for chat.
    puts 'Enter your username with full domain'
    uname = gets
    puts 'Enter you...
Tests 32 lines of Ruby by joshuaborn 939 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
require 'test_helper'

class CategoryTest < ActiveSupport::TestCase

  should have_many(:articles)

  context "The Category class" do

    should "return a list of categories in order" do
...
Test 1 line of Ruby by murphy < WoNáDo 110 Bytes Show Edit Expand
1
s.encode("utf-16BE", "utf-8", invalid: :replace, undef: :replace).encode("utf-8", "utf-16BE").delete("\uFFFD")
SQL 1 line of SQL 64 Bytes Show Edit Expand
1
ALTER TABLE ТаблиÑа1 ALTER estilo TYPE character varying;

Page 242, 10 entries